The Trivia API

Multiple-choice trivia questions

😄 FunHEALTHYchecked 4h ago
AUTH NONECORS AGENT HTTPS COMMERCIAL ?

Quiz questions with categories and difficulty filters. Returns structured JSON arrays — no key on the public questions route.

96HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: 96 · healthy
Uptime history
100%90 days
100%30 days
308P50 · ms
629P95 · ms
operationalpartialdownno data
Response time · last 48 checks
Fastest 187 ms, slowest 610 ms, most recent 187 ms.
Live response samplecaptured by our last successful check
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"
  }
]
Call itcurl · fetch · python
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())
Endpoints · 3HealthyFULL DOCS ↗
Monitored path responding — GET /questions?limit=1308 mschecked 4h ago
GET/questions?limit=1PROBED

Multiple-choice trivia questions

GET/questions?limit=5

Questions — documented GET route.

GET/questions?page=1

Questions — documented GET route.

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

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.