A REST API for facts
Exclusivly built this for Bink Chrome Extension project and decided to publish for others to use as well. The database currently includes more than 5000 facts all around the world.
Note - You won't see more than 10 facts on page if you click on url. If you want all facts in your application then you should use npm package.
npm install allfacts
Returns a single random fact from the server.
https://freefacts.herokuapp.com/facts/random
name: string (required)
[
{
id: "601cf8cb3a683514a0200c9d",
message: "Peanuts aren’t technically nuts",
},
];
Returns all facts.
https://freefacts.herokuapp.com/facts/
name: string (required)
{
"count": "5700",
"All_facts: {
"facts" : [
"_id": "601cf11396e9c813e0e46c61",
"name": "The first oranges weren’t orange"
]
}
}
If you are using my API in your application, get featured here. Make an issue with your application.
All feedback and contributions are welcome!