All free APIs
Free APIKnowledgeNo keyOfficial

Open Trivia Database (OpenTDB)

Thousands of verified, categorized trivia questions and answers as JSON, no key

The Open Trivia Database is a free, user-contributed bank of verified multiple-choice and true/false trivia questions across many categories and difficulties. The JSON API returns questions with the correct answer, distractors, category and difficulty, plus session tokens to avoid repeats. No authentication is needed.

Free tier

Free, no key. Data is CC BY-SA 4.0

Rate limits

One request per IP every 5 seconds

Auth

No key

Base URL

https://opentdb.com

What you'd build with it

  • Build a quiz game or trivia bot
  • Generate evaluation questions for a learning automation
  • Seed a study-flashcard app with categorized Q&A
  • Add an icebreaker trivia feature to a community product

Key endpoints

  • GET/api.php?amount={n}Fetch n random questions (filter by category/difficulty/type)
  • GET/api_category.phpList all available categories and IDs
  • GET/api_token.php?command=requestGet a session token so questions never repeat
Members

Members get the runnable recipe

Sign in free to copy the example request, see a sample response, and read the gotchas.

Tags

knowledgetriviaquizgamesreference