Open Trivia Database API

User-contributed trivia questions and answers by category, difficulty and type

Publisher source

Access & credit

access.methods
api
Free JSON API; no API key; optional session token; 1 request per 5 seconds per IP · publisher evidence · checked 2026-11-23 · recheck after 2027-02-21
api.docs_url
https://opentdb.com/api_config.php
Official technical documentation; not a callable base endpoint. · publisher evidence · checked 2026-11-23 · recheck after 2027-02-21
api.key
none
No API key; optional session token is for repeat suppression, not identity. · publisher evidence · checked 2026-11-23 · recheck after 2027-02-21
api.rate_limit
1 request per 5 seconds per IP; up to 50 questions and one category per call.
· publisher evidence · checked 2026-11-23 · recheck after 2027-02-21
api.free_tier
Free JSON API; no API key; optional session token; 1 request per 5 seconds per IP
Free JSON API; no API key; optional session token; 1 request per 5 seconds per IP · publisher evidence · checked 2026-11-23 · recheck after 2027-02-21
Unlisted fields: not checked.

Use permissions

Call from a live site
not checked
Bundle or redistribute
not checked
Commercial use
not checked
Train an AI model
not checked

Listing context

Access
Free JSON API; no API key; optional session token; 1 request per 5 seconds per IP
Rights and restrictions
Open: API data is CC BY-SA 4.0; provide attribution and apply ShareAlike to distributed adaptations
terms or rights guidance · checked 2026-11-23 · terms recheck after 2027-02-21 · access recheck after 2027-02-21

Discovery class: Open. Not permission for a specific use.