Data
Number / date / year fact (Numbers API) API
Return a trivia, math, date, or year fact about a number from the Numbers API (numbersapi.com). Answers 'fact about the number 42','a math fact about 7','what happened on this date','something about the year 1969'.
Price$0.01per request
MethodPOST
Route/v1/data/misc-number-fact
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
datanumberfactnumbersapimathdateyeartrivia
API URL
Integration docshttps://x402.hexl.dev/v1/data/misc-number-factExample request
{
"number": 42,
"type": "trivia"
}Example response
{
"number": 42,
"type": "trivia",
"fact": "42 is the answer to the Ultimate Question of Life, the Universe, and Everything.",
"found": true
}Input schema
{
"type": "object",
"required": [],
"properties": {
"number": {
"type": [
"number",
"string"
],
"examples": [
42
]
},
"type": {
"type": "string",
"enum": [
"trivia",
"math",
"date",
"year"
],
"default": "trivia"
},
"month": {
"type": "number",
"examples": [
2
]
},
"day": {
"type": "number",
"examples": [
29
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}