API Directory › 🎉 Fun & Random › Useless Facts
No authHTTPSCORS

Useless Facts API

Random (and useless) trivia facts served as JSON — free, no key.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Useless Facts docs ↗

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

https://uselessfacts.jsph.pl/api/v2/facts

Authentication

None. /random?language=en (also de), /today?language=en.

Code examples

curl
curl -s "https://uselessfacts.jsph.pl/api/v2/facts/random?language=en"
Python
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

idFact id — permalink is /api/v2/facts/{id}
textThe fact
source / source_urlWhere the fact comes from
languageen or de
permalinkCanonical URL for the fact

Common errors

404Unknown fact id.
400Unsupported 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Fun & Random APIs

← Back

More Fun & Random APIs · All 196 APIs