Science & Math — entry 018 of 28

Numbers

Verified Jul 2026

Math Tools' Numbers endpoints return structured JSON about a number — nominal, cardinal, and ordinal names, currency formatting, base conversion, and a rotating "number of the day" — under the same platform that also powers Math Tools' other calculator APIs. A public, keyless tier is rate-limited to a small number of calls per hour; higher volume requires registering for a free account and passing an API key.

numberstriviamathbase-conversion
AuthenticationAPI KeySign up with the provider to obtain credentials.
HTTPSSupportedTraffic is encrypted in transit.
CORSEnabledCallable directly from browser JavaScript.
PricingFreemiumA usable free tier exists, with paid plans for more volume.
FormatsJSONResponses can be requested as JSON.

GreatAPIs Score

Score81out of 100
Authentication15/25API key required
Pricing17/20Freemium tier available
Docs20/20Machine-readable spec file bundled
Formats9/15Single response format
Freshness20/20Verified within 6 months

Embed this badge

Scored 81 on greatapis.com
<a href="https://greatapis.com/api/numbers/"><img src="https://greatapis.com/badge/numbers.svg" alt="Scored 81 on greatapis.com"></a>

Auth quickstart

  1. Sign up with the provider to get an API key.
  2. Send it on every request as a headerX-Mathtools-Api-Secret: <key>
Stored keyNo key stored

Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.

Endpoints

Servers
https://api.math.toolshttp://api.math.tools
Auth
X-Mathtools-Api-Secret
Number of the day1

Number of the day. This API is free (rate limited).

GET/numbers/nod
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
Number Facts1

Get random interesting fact about a given number.

GET/numbers/fact
Parameters
NameInRequiredType
numberqueryyesinteger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
Number Generation1

Generate Random and interesting numbers.

GET/numbers/random
Parameters
NameInRequiredType
minquerynointeger
maxquerynointeger
totalquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
Spell3

Spell out a number ordinal, cardinal or currency. This API is free (rate limited).

GET/numbers/cardinal
Parameters
NameInRequiredType
numberquerynointeger
languagequerynostring
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/currency
Parameters
NameInRequiredType
numberquerynointeger
languagequerynostring
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/ordinal
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
Base Conversion4

Convert from one base to another. This API is free (rate limited).

GET/numbers/base
Parameters
NameInRequiredType
numberqueryyesinteger
fromquerynointeger
toqueryyesinteger
Responses
StatusDescriptionSchema
200200 success response
401401 Unauthorized response
GET/numbers/base/binary
Parameters
NameInRequiredType
numberqueryyesinteger
fromquerynointeger
Responses
StatusDescriptionSchema
200200 success response
401401 Unauthorized response
GET/numbers/base/hex
Parameters
NameInRequiredType
numberqueryyesinteger
fromquerynointeger
Responses
StatusDescriptionSchema
200200 success response
401401 Unauthorized response
GET/numbers/base/octal
Parameters
NameInRequiredType
numberqueryyesinteger
fromquerynointeger
Responses
StatusDescriptionSchema
200200 success response
401401 Unauthorized response
Number Systems Conversion3

Convert from one number system to another.

GET/numbers/numeral/chinese
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/numeral/egyptian
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/numeral/roman
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
Prime8

Things to do with Prime numbers

GET/numbers/prime/factors
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/prime/is-fermat-prime
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/prime/is-fibonacci-prime
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/prime/is-mersenne-prime
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/prime/is-partition-prime
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/prime/is-pell-prime
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/prime/is-perfect
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/prime/is-prime
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
PI1

Digits of PI and more.This API is free (rate limited).

GET/numbers/pi
Parameters
NameInRequiredType
fromquerynointeger
toquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
Number Checks4

Check Property of a given number.

GET/numbers/is-cube
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/is-palindrome
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/is-square
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response
GET/numbers/is-triangle
Parameters
NameInRequiredType
numberquerynointeger
Responses
StatusDescriptionSchema
200200 Success response
401401 Unauthorized response

Try it

Developer reference

Base URLhttps://api.math.tools
Rate limit

Public, keyless calls are capped at 60 requests per day, distributed as 5 per hour. Passing an API key (free registration) raises the limit according to the account's service level/plan; paid-tier caps are shown in the account dashboard, not the public docs page.

Key endpoints
  • GET/numbers/fact
  • GET/numbers/base