Open Trivia Database
The Open Trivia Database (OpenTDB) is a free, user-contributed trivia question database operated by Pixeltail Games LLC. It offers a JSON REST API for retrieving thousands of community-verified trivia questions across 24 categories and three difficulty levels, with optional session tokens to prevent duplicate questions. The service is licensed Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0), is free at the point of use, and enforces a single throttling rule: one request per IP every five seconds.
1 APIs
0 Features
TriviaGames And ComicsQuizOpen DataPublic APIsOpen Source
APIs
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. Support...
Semantic Vocabularies
API Governance Rules
Resources
🔗
Website
Website
🔗
Documentation
Documentation
💬
Support
Support
📜
TermsOfService
TermsOfService
🔗
License
License
🔗
Donate
Donate
🔗
PublicAPIsListing
PublicAPIsListing
🔗
Community SDKs and Integrations
CommunityIntegrations
📦
Open Trivia DB Wrapper (TypeScript / JavaScript)
SDK
📦
Python Trivia API (Python)
SDK
📦
OpenTDB4j (Java)
SDK
📦
opentdb-api (JavaScript)
SDK
🔧
MCP Server (Community — pipeworx-io)
Tools
🔧
Discord Trivia Bot (Community)
Tools
🔧
OTDB Source Download Script (Community)
Tools
💻
Ignite Bowser Trivia App (TypeScript)
CodeExamples
💻
React Native Trivia Quiz (JavaScript)
CodeExamples
💻
Vue Quiz App (Vue 3)
CodeExamples