The Trivia API
Multiple-choice trivia questions
Quiz questions with categories and difficulty filters. Returns structured JSON arrays — no key on the public questions route.
GET https://the-trivia-api.com/api/questions?limit=1
[
{
"category": "Geography",
"id": "6463394f01d576cfac3aa33b",
"correctAnswer": "Alaska & Hawaii",
"incorrectAnswers": [
"Maine & New Hampshire",
"Vermont & Massachusetts"
],
"question": "Which 2 US states share no land border with other states?",
"tags": [
"usa",
"us_states"
],
"type": "Multiple Choice",
"difficulty": "easy"
}
]curl "https://the-trivia-api.com/api/questions?limit=1"const res = await fetch("https://the-trivia-api.com/api/questions?limit=1");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://the-trivia-api.com/api/questions?limit=1")
print(res.json())/questions?limit=1PROBEDMultiple-choice trivia questions
/questions?limit=5Questions — documented GET route.
/questions?page=1Questions — documented GET route.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
The Trivia API: common questions
Is The Trivia API free to use?
Yes — The Trivia API is a free fun API. Free tier: Free — limits not published. Whether the free tier allows commercial use is unclear — check the provider docs.
Does The Trivia API need an API key?
No — The Trivia API needs no API key or signup. You can call it straight away; rate limits still apply (20 req/window · 19 remaining · resets 4).
Can I call The Trivia API from the browser?
Yes — The Trivia API returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is The Trivia API up right now?
As of our last scheduled check, The Trivia API is healthy with 100% uptime over 90 days and a 308 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.