Science & MathPublic API
Numbers
Number of the day, random number, number facts and anything else you want to do with numbers
Before you call it
What this listing means in practice
You will need an API key
Register with the provider, create a key and send it in the header or query parameter their documentation specifies. Keys usually belong in environment variables, never in client-side code.
HTTPS supported
Requests can be made over TLS. Use HTTPS endpoints in production so browsers do not block the call as mixed content.
CORS not confirmed
If CORS is not enabled, call this API from a server, serverless function or build step and proxy the response to your frontend.
Start with the provider's own documentation. It is the only place where endpoints, rate limits, pricing and terms are authoritative.
https://math.tools/api/numbers/No API calls are proxied by this directory. Links go directly to the provider.
API listings describe access requirements, not endorsements. Review each provider's privacy policy, terms and rate limits.
Overview
About Numbers
Numbers needs an API key, like 6 other science & math APIs in the directory. If you want something to test with straight away, 51 science & math APIs need no key at all.
It supports HTTPS but CORS is not confirmed, so plan to call it from a server or serverless function. That is true for 33 of the 59 APIs in this category.
Documentation is on math.tools.
Science & Math APIs in general
Science APIs cover space, physics, chemistry, maths and research papers. NASA and similar agencies publish some of the best-documented free APIs anywhere.
What people build with them
- Space and astronomy apps
- Looking up chemical or element data
- Searching academic papers
Watch out for
Scientific datasets can be huge. Use paging and filters instead of downloading everything.
First request
Calling Numbers
Check the docs for the exact header or query parameter name. Some providers use X-API-Key or ?apikey= instead of a Bearer token.
JavaScript (server)// Keep the key in an environment variable, never in frontend code
const res = await fetch("https://math.tools/api/numbers/<endpoint>", {
headers: { Authorization: `Bearer ${process.env.NUMBERS_API_KEY}` },
});
const data = await res.json();Compare
Numbers vs similar APIs
| API | Auth | HTTPS | CORS |
|---|---|---|---|
| Numbers | API key | Yes | No |
| Solar System OpenData | No key | Yes | Yes |
| Remote Calc | No key | Yes | Yes |
| RCSB PDB | No key | Yes | Yes |
| OpenAlex | No key | Yes | Yes |
| Oliver's mTOR Atlas | No key | Yes | Yes |
FAQ
Common questions about Numbers
Does Numbers need an API key?
Yes. You need to register with Numbers and send your key with each request, as described in its documentation.
Can I call Numbers from the browser?
CORS is not confirmed, so the browser may block direct calls. Call it from your server or a serverless function and pass the result to your frontend.
Is Numbers free?
We do not track pricing. Many keyed APIs have a free tier with limits. The Numbers documentation lists current plans.
What are some alternatives to Numbers?
Other science & math APIs in the directory include Solar System OpenData (no key), Remote Calc (no key), RCSB PDB (no key). The comparison table on this page shows how they differ on authentication, HTTPS and CORS.
Same category
More Science & Math APIs
Next step
Keep looking until the constraints fit.
Filter the directory by authentication, HTTPS and CORS, or start from a category and work backwards.