Know All About Numbers with the Numbers API

Romin Irani, March 16th, 2012

NumbersWhat is the answer to the Ultimate Question of Life, the Universe and Everything? The answer is 42. If you are interested in such number facts and were looking at a source of all such information aggregated from various internet sources, there is good news. Since we track APIs over here at ProgrammableWeb, it should come as no surprise that there is a Numbers API now that gets you access to all kinds of interesting information.

The Numbers API has been developed by university students, David Hu and Mack Duan. David announced the Numbers API at his blog and describes how an internship at the Khan Academy led to this project. David and Mack put this API together in a few weekends. The technology used is NodeJS and Express on the Server side and they utilized Sass + Compass on the front-end.  The data has been extracted from sources like Wikipedia and processed into consistent grammatical form.

The Home page itself is interesting and you could spend hours there with trivia about numbers that you never possibly knew. Alternately, you could use the Numbers API, to throw up a quick web mashup or mobile application if you want to go that route. The API is REST-based, returns plain text and currently does not use any authentication or rate limits. The request from the developers is to be nice to their servers. The API Usage stats are already being tracked.

The API documentation clearly states how you can get various kinds of information. The URL is of the following format:

http://numbersapi.com/number/type

where type is one of trivia, math, date and year and number is an integer or a keyword random or a day of the year , if the type is date.

Examples are given below:

Refer to the home page for documentation on various ways you can access and embed the information in your applications.

Interestingly, the Numbers API was selected by David from one of his ideas that he collected over a 30 day period last year. He jotted down over 286 ideas in 29 days, a living IDEA machine shall we say? If David is reading this, how about adding the following trivia for the number 5000 : Did you know ProgrammableWeb now lists more than 5000 APIs?

Both comments and pings are currently closed.

5 Responses to “Know All About Numbers with the Numbers API”

March 16th, 2012
at 4:53 pm
Comment by: Laura

Hmmm. I like the listing idea idea and this API seems pretty cool. What could I do with it…

March 18th, 2012
at 8:01 am
Comment by: 58 New APIs: AT&T, goMobi and Social Shopping

[...] week we had 58 new APIs added to our API directory including a number reference service, multimedia messaging service, mobile website creation service, social shopping platform and a [...]

March 18th, 2012
at 9:04 am
Comment by: 58 New APIs: AT&T, goMobi and Social Shopping | TopStocks2011.com

[...] week we had 58 new APIs added to our API directory including a number reference service, multimedia messaging service, mobile website creation service, social shopping platform and a [...]

March 19th, 2012
at 12:13 am
Comment by: George Dina

I like the idea, it’s brilliant!

December 24th, 2012
at 7:47 pm
Comment by: how often should I take quantrim

Thanks for sharing your thoughts about api.
Regards

Follow the PW team on Twitter

ProgrammableWeb
APIs, mashups and code. Because the world's your programmable oyster.

John Musser
Founder, ProgrammableWeb

Adam DuVander
Executive Editor, ProgrammableWeb. Author, Map Scripting 101. Lover, APIs.