API · /opentdb-api

Open Trivia Database API

healthy 4,428 Subscribers

Trivia questions via the open Open Trivia Database (OpenTDB) — no key. The questions endpoint returns multiple-choice and true/false questions filtered by category, difficulty (easy, medium, hard) and type, each with the question text, the correct answer and the incorrect options; answers are decoded server-side to clean text. The categories endpoint lists all 24 trivia categories with their ids, and count returns a category's question-count breakdown by difficulty. A random endpoint pulls a single question with the same filters. Real trivia data straight from OpenTDB, fetched fresh — no key. 5 endpoints. Ideal for quiz and trivia games, pub-quiz generators, icebreakers, study apps and chatbot mini-games.

api.oanor.com/opentdb-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/opentdb-api/openapi.json
/api/opentdb-api/llms.txt

Discovery: GET /api/index.json lists every API.

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
474 ms
Server probes · 24h
Subscribers
4,428
active
Total calls
40
last 7 days
status Full status page → · 15 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 6,400 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 6,400 calls/month
  • 2 req/sec
  • Questions + categories
  • No credit card
Sign in to subscribe

Basic

€7.50 /month

  • 85,500 calls / month
  • 8 requests / second
  • Hard cap (429 above quota, no overage)
  • 85.5k calls/month
  • 8 req/sec
  • Filters + counts + random
  • Email support
Sign in to subscribe

Pro

€26.00 /month

  • 548,500 calls / month
  • 20 requests / second
  • Hard cap (429 above quota, no overage)
  • 548.5k calls/month
  • 20 req/sec
  • Quiz-app scale
  • Priority support
Sign in to subscribe

Mega

€79.00 /month

  • 2,690,000 calls / month
  • 50 requests / second
  • Hard cap (429 above quota, no overage)
  • 2.69M calls/month
  • 50 req/sec
  • Platform scale
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

National Dishes API

The dish most associated with each country as an API — a small, fun reference for travel, food, quiz and trivia apps. Built on the open country-json national-dish dataset and enriched with each country's ISO 3166-1 alpha-2 code and Unicode flag emoji. Look up a country's national dish by country name or code, search dishes and countries by keyword (for example, find every country whose national dish involves rice), or list them all. Served from memory — always fast.

api.oanor.com/nationaldishes-api

Useless Facts API

Random and daily trivia facts via the open Useless Facts API — no key. The random endpoint returns a surprising, mostly-useless fact; the today endpoint returns the fact of the day; and both are available in English or German, each fact carrying its source attribution, source URL and a permalink. Real curated facts, with the daily fact cached for speed — no key. 3 endpoints. Ideal for daily-fact widgets, newsletters, chatbots, loading screens and onboarding delight.

api.oanor.com/uselessfacts-api

Cat Facts & Breeds API

Cat trivia and breed data via the open Cat Fact API (catfact.ninja) — no key. The fact endpoint returns a single random cat fact, optionally bounded to a maximum length; the facts endpoint pages through the full fact collection; and the breeds endpoint lists and searches cat breeds with their country, origin, coat and pattern. Real data, with the breed list cached for speed — no key. 4 endpoints. Ideal for pet apps, fun facts widgets, daily-fact bots, quizzes and onboarding delight.

api.oanor.com/catfact-api

Quiz & Trivia API

A ready-to-use trivia engine with more than 44,000 multiple-choice questions across 20 categories — animals, brain teasers, celebrities, entertainment, kids, general knowledge, geography, history, hobbies, humanities, literature, movies, music, people, religion, science & technology, sports, television, video games and world. Pull a random question or a batch (optionally filtered by category, with the answer hidden for gameplay and the options shuffled), fetch a specific question by id, verify a submitted answer, search questions by keyword, and list every category with its question count. Every endpoint accepts input via the query string or the request body and returns lean JSON. Pure server-side data (no third-party upstream), so responses are instant and always available. Ideal for quiz and trivia games, pub-quiz and party apps, learning tools, chatbots and Discord/Slack bots.

api.oanor.com/quiz-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for Open Trivia Database API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call Open Trivia Database API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for Open Trivia Database API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does Open Trivia Database API cost?
Open Trivia Database API has a free tier with 100 calls / month. Paid plans start at €7.50 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is Open Trivia Database API GDPR-compliant?
All requests to Open Trivia Database API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

Pick an endpoint from the list on the left to see its details and try it.

Code snippets

Sign up to get an API key, then call any path under your slug.

curl https://api.oanor.com/opentdb-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/opentdb-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/opentdb-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
    "https://api.oanor.com/opentdb-api/SOME_PATH",
    headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())

Ratings

Sign in to rate.

No reviews yet.

Discussion

Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.

Sign in to start a thread or reply.

Sign in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 This thread is locked — no new replies.

  • No threads yet — start the discussion.

Support

Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.

Sign in to open a support ticket.

Sign in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.