Sign Up

Log In

Numbers

FREE
By divad12
Updated 5 months ago
Education
9.6/10
Popularity Score
181ms
Latency
99%
Success Rate

Numbers API Documentation

An API for interesting facts about numbers. Provides trivia, math, date, and year facts about numbers.

For example, "5 is the number of platonic solids", "42 is the number of little squares forming the left side trail of Microsoft's Windows 98 logo", "February 27th is the day in 1964 that the government of Italy asks for help to keep the Leaning Tower of Pisa from toppling over"

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

GETGet date fact
GETGet math fact
GETGet random fact
GETGet trivia fact
GETGet year fact
GETGet date fact

Get a fact about a day of year

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
monthSTRING
REQUIREDThe 1-indexed month (eg. 6 for June)
daySTRING
REQUIREDThe day of the month
Optional Parameters
fragmentSTRING
OPTIONALAdd "?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]!”.
jsonSTRING
OPTIONALSpecify "true" to return result as JSON instead of plaintext.
Request Snippet
unirest.get("https://numbersapi.p.rapidapi.com/{month}/{day}/date?fragment=undefined&json=undefined")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://numbersapi.p.rapidapi.com/{month}/{day}/date?fragment=undefined&json=undefined")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard