The Trivia API

Multiple-choice trivia questions

😄 FunUNMONITORED
AUTH NONECORS AGENT ?HTTPS COMMERCIAL ?

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

HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: — · unmonitored
ON PROBE SCHEDULE

We probe a documented GET and expect 2xx JSON — full uptime and health score. Open provider docs ↗

Uptime historystarts after first probe

On our probe schedule. Uptime charts appear after the first check lands.

Example responsefrom provider docs — not verified by us
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 · 3On scheduleFULL DOCS ↗
On schedule — GET /questions?limit=1 awaits first probe
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

Not tracked yet. Shape-change history starts once this API joins our probe schedule.

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 (Unpublished).

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?

The Trivia API is catalogued but not yet on our probe schedule, so we don't publish a live status for it. Check the provider's own status page or docs for its current state.