Last 7 days, UTC

Average Latency
2ms

Average Uptime
100.0%

Current Status
Online

  • No information
  • Outage
  • Disruption
  • Normal
Average latency determined from Mashape to API Response time

Endpoints

HTTP 200 : string GET/{month}/{day}/date
Get date fact

Get a fact about a day of year


Test console
Description
Parameter
string

The 1-indexed month (eg. 6 for June)
Example: 6

month

Required

string

The day of the month
Example: 21

day

Required

string

Add "?fragment=true" to return the fact as a sentence fragment that can be easily included as part of a larger sentence. This means that the first word is lowercase and ending punctuation is omitted. For trivia and math, a noun phrase is returned that can be used in a sentence like “We now have more users than [fact as fragment]!”.
Example: true

fragment

Optional

string

Specify "true" to return result as JSON instead of plaintext.
Example: true

json

Optional

HTTP 200 : string GET/{number}/math
Get math fact

Get a mathematical property about a number


Test console
Description
Parameter
string

The integer of interest
Example: 1729

number

Required

string

Add "?fragment=true" to return the fact as a sentence fragment that can be easily included as part of a larger sentence. This means that the first word is lowercase and ending punctuation is omitted. For trivia and math, a noun phrase is returned that can be used in a sentence like “We now have more users than [fact as fragment]!”.
Example: true

fragment

Optional

string

Specify "true" to return result as JSON instead of plaintext.
Example: true

json

Optional

HTTP 200 : string GET/random/{type}
Get random fact

Get result by random number


Test console
Description
Parameter
string

One of "trivia", "math", "date", or "year"
Example: trivia

type

Required

string

Minimum number, inclusive
Example: 10

min

Optional

string

Maximium number, inclusive
Example: 20

max

Optional

string

Add "?fragment=true" to return the fact as a sentence fragment that can be easily included as part of a larger sentence. This means that the first word is lowercase and ending punctuation is omitted. For trivia and math, a noun phrase is returned that can be used in a sentence like “We now have more users than [fact as fragment]!”.
Example: true

fragment

Optional

string

Specify "true" to return result as JSON instead of plaintext.
Example: true

json

Optional

HTTP 200 : string GET/{number}/trivia
Get trivia fact

Get a trivia fact about a number


Test console
Description
Parameter
string

The integer of interest
Example: 42

number

Required

string

Add "?fragment=true" to return the fact as a sentence fragment that can be easily included as part of a larger sentence. This means that the first word is lowercase and ending punctuation is omitted. For trivia and math, a noun phrase is returned that can be used in a sentence like “We now have more users than [fact as fragment]!”.
Example: true

fragment

Optional

string

Specifies what to return if the number is not found. Value can be "default" (to return a canned message), "floor" (to round down to the largest number that does have an associated fact, and return that fact), or "ceil" (which is like floor but rounds up to the smallest number that has an associated fact).
Example: floor

notfound

Optional

string

Specify "true" to return result as JSON instead of plaintext.
Example: true

json

Optional

HTTP 200 : string GET/{year}/year
Get year fact

Get a fact about a year


Test console
Description
Parameter
string

The year of interest
Example: 1492

year

Required

string

Add "?fragment=true" to return the fact as a sentence fragment that can be easily included as part of a larger sentence. This means that the first word is lowercase and ending punctuation is omitted. For trivia and math, a noun phrase is returned that can be used in a sentence like “We now have more users than [fact as fragment]!”.
Example: true

fragment

Optional

string

Specify "true" to return result as JSON instead of plaintext.
Example: true

json

Optional

Consume this API completely for free!


By joining the mashape API marketplace you can start using Numbers API today!

Login to your account or signup: Create Account

or
   Signup with GitHub

By signing up you agree to our terms of service.