Useless Facts API
Random (and useless) trivia facts served as JSON — free, no key.
What it does
The Useless Facts API returns a random (usually true, always trivial) fact, or the ‘fact of the day’, in several languages, each with a source URL and a permalink.
Base URL
Authentication
None. /random?language=en (also de), /today?language=en.
Code examples
curl -s "https://uselessfacts.jsph.pl/api/v2/facts/random?language=en"
import requests
f = requests.get("https://uselessfacts.jsph.pl/api/v2/facts/random",
params={"language": "en"}, timeout=10).json()
print(f["text"], "-", f["source"])Rate limits & quotas
No key and no documented hard rate limit — be reasonable and cache /today for the day. The /random endpoint may repeat within a short window.
Key response fields
| id | Fact id — permalink is /api/v2/facts/{id} |
| text | The fact |
| source / source_url | Where the fact comes from |
| language | en or de |
| permalink | Canonical URL for the fact |
Common errors
| 404 | Unknown fact id. |
| 400 | Unsupported language value. |
| (v1 deprecated) | Use /api/v2/ — the v1 path is retired. |
When to use it (and alternatives)
‘Did you know’ widgets, loading-screen trivia, fact-of-the-day emails. For facts about specific numbers use Numbers API; for jokes, JokeAPI.
FAQ
Are the facts actually true?
Mostly — each comes with a source_url you can check. ‘Useless’ refers to their triviality, not their accuracy.
How do I get a consistent daily fact?
Use /today — it returns the same fact for everyone for the current day, so you can cache it.
Which languages are supported?
English and German (language=en|de). Other values fall back or error.
New to APIs?
Short guides for working with this API — and any other.