Numbers API
All about Numbers. REST access with json/xml/jsonp result support. Below is the documentation for the Numbers API. You can try them out right here. Find more…
Data & analytics#openapi#open-data
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
All about Numbers. REST access with json/xml/jsonp result support. Below is the documentation for the Numbers API. You can try them out right here. Find more information and subscribe at math.tools
Endpoints 26
Number of the day
- GETGET /numbers/nod
/numbers/nodGet the number of the day for current day
Number Facts
- GETGET /numbers/fact
/numbers/fact?number=0Get a random fact about a number
Number Generation
- GETGET /numbers/random
/numbers/random?min=0&max=0&total=0Generate random number(s)
Spell
- GETGET /numbers/cardinal
/numbers/cardinal?number=0&language=stringGet the cardinal of the given number - GETGET /numbers/currency
/numbers/currency?number=0&language=stringSpells out the number as a currency - GETGET /numbers/ordinal
/numbers/ordinal?number=0Get the ordinal of the given number
Base Conversion
- GETGET /numbers/base
/numbers/base?number=0&from=0&to=0Convert a given number from one base to another base - GETGET /numbers/base/binary
/numbers/base/binary?number=0&from=0Convert a given number to binary - GETGET /numbers/base/hex
/numbers/base/hex?number=0&from=0Convert a given number to hexadecimal - GETGET /numbers/base/octal
/numbers/base/octal?number=0&from=0Convert a given number to octal
Number Systems Conversion
- GETGET /numbers/numeral/chinese
/numbers/numeral/chinese?number=0Convert base 10 representation of a given number to chinese numeral. - GETGET /numbers/numeral/egyptian
/numbers/numeral/egyptian?number=0Convert base 10 representation of a given number to egyptian numeral. - GETGET /numbers/numeral/roman
/numbers/numeral/roman?number=0Convert base 10 representation of a given number to roman numeral.
Prime
- GETGET /numbers/prime/factors
/numbers/prime/factors?number=0Get the prime factors of a given number. - GETGET /numbers/prime/is-fermat-prime
/numbers/prime/is-fermat-prime?number=0Checks whether a given number is a known fermat prime number or not. - GETGET /numbers/prime/is-fibonacci-prime
/numbers/prime/is-fibonacci-prime?number=0Checks whether a given number is a known fibonacci prime number or not. - GETGET /numbers/prime/is-mersenne-prime
/numbers/prime/is-mersenne-prime?number=0Checks whether a given number is a known mersenne prime number or not. - GETGET /numbers/prime/is-partition-prime
/numbers/prime/is-partition-prime?number=0Checks whether a given number is a known partition prime number or not. - GETGET /numbers/prime/is-pell-prime
/numbers/prime/is-pell-prime?number=0Checks whether a given number is a known pell prime number or not. - GETGET /numbers/prime/is-perfect
/numbers/prime/is-perfect?number=0Checks whether a given number is a perfect number or not. - GETGET /numbers/prime/is-prime
/numbers/prime/is-prime?number=0Checks whether a given number is a known prime number or not.
PI
- GETGET /numbers/pi
/numbers/pi?from=0&to=0Get digits of pi (Ï€)
Number Checks
- GETGET /numbers/is-cube
/numbers/is-cube?number=0Checks whether a given number is a cube number or not. - GETGET /numbers/is-palindrome
/numbers/is-palindrome?number=0Checks whether a given number is a palindrome number or not. - GETGET /numbers/is-square
/numbers/is-square?number=0Checks whether a given number is a square number or not. - GETGET /numbers/is-triangle
/numbers/is-triangle?number=0Checks whether a given number is a triangle number or not.
API details
- Base URL
https://api.math.toolshttp://api.math.tools- Authentication
- An API key in the X-Mathtools-Api-Secret header
- Operations
- 26 operations on 26 pathsGET 26
- Main resources
- Number Checks 11Prime 8Base Conversion 4Number Systems Conversion 3Spell 3Number Facts 1Number Generation 1Number of the day 1PI 1
- Response formats
application/json- Description format
- OpenAPI 3.0.0, API version
1.5 - Links
- OpenAPI document
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Numbers API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Numbers API collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the X-Mathtools-Api-Secret header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “GET /numbers/nod” (GET /numbers/nod), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Numbers API?
All about Numbers. REST access with json/xml/jsonp result support. Below is the documentation for the Numbers API. You can try them out right here. Find more… It is listed under Data & analytics and has 26 endpoints.
Who publishes the Numbers API?
It is listed from Math's public API description (an OpenAPI document), not published by Math on Swastik Codes. Anyone who controls math.tools can claim the profile by adding a DNS TXT record.
What is the base URL of the Numbers API?
Its description lists 2 base URLs: https://api.math.tools, http://api.math.tools. The first is the usual one; the others are typically sandbox or regional servers.
How do I authenticate with the Numbers API?
With an API key in the X-Mathtools-Api-Secret header.
How many endpoints does the Numbers API have?
26 operations on 26 paths (26 GET). The largest groups are Number Checks, Prime, Base Conversion, Number Systems Conversion.
Is forking the Numbers API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.