Open Trivia Database API
JSON REST API that returns multiple-choice and true/false trivia questions drawn from a community-curated database of over 5,000 verified questions across 24 categories. Supports filtering by category, difficulty, and question type, optional response encoding (HTML entities, URL legacy, RFC 3986, Base64), and session tokens to prevent duplicate questions within a six-hour window.
Documentation
Documentation
https://opentdb.com/api_config.php
RateLimits
https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/rate-limits/open-trivia-rate-limits.yml
Specifications
Schemas & Data
JSONSchema
https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/json-schema/open-trivia-question-schema.json
JSONSchema
https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/json-schema/open-trivia-category-schema.json
JSONStructure
https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/json-structure/open-trivia-question-structure.json
Other Resources
JSONLD
https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/json-ld/open-trivia-context.jsonld
NaftikoCapability
Questions Capability
NaftikoCapability
Categories Capability
NaftikoCapability
Statistics Capability
NaftikoCapability
Tokens Capability
SpectralRules
https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/rules/open-trivia-rules.yml
Vocabulary
https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/vocabulary/open-trivia-vocabulary.yml
Examples
https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/examples/open-trivia-question-response-example.json
SignUp
https://opentdb.com/api_config.php
ContributeQuestions
https://opentdb.com/contribute.php
BrowseQuestions
https://opentdb.com/browse.php
GameLink
https://opentdb.com/game.php
Statistics
https://opentdb.com/api_count_global.php