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.
Open Trivia Database publishes 4 APIs on the APIs.io network, including Categories API, Questions API, Statistics API, and 1 more. Tagged areas include Trivia, Games And Comics, Quiz, Open Data, and Public APIs.
The Open Trivia Database catalog on APIs.io includes 1 JSON-LD context and 2 Spectral governance rulesets.
Open Trivia Database’s developer surface includes documentation, support, tooling, code examples, and 16 more developer resources.
Kin Score
APIs 4
Individual APIs this provider publishes, each with its own machine-readable definition.
Open Trivia Database Categories API
Operations for discovering trivia category metadata and counts.
Open Trivia Database Questions API
Operations for retrieving trivia questions from the database.
Open Trivia Database Statistics API
Operations for inspecting overall database statistics.
Open Trivia Database Tokens API
Operations for managing session tokens that prevent duplicate questions.
Open Collections 1
Open, tool-agnostic API collections (OpenAPI-derived and Bruno).
Open Trivia Database API
OPEN COLLECTIONRate Limits 1
Documented rate limits and quota policies.
Open Trivia Rate Limits
RATE LIMITSSemantic Vocabularies 1
JSON-LD contexts and semantic vocabularies used across these APIs.
Open Trivia Context
JSON-LDSpectral Rules 2
Spectral governance rulesets for linting and validating these APIs.
Open Trivia Database API Rules
SPECTRALOpen Trivia Database API Rules
SPECTRALJSON Schema 9
Standalone JSON Schema definitions for this provider's data models.
CategoryCountResponse
JSON SCHEMACategoryListResponse
JSON SCHEMACategoryQuestionCount
JSON SCHEMACategory
JSON SCHEMAGlobalCountResponse
JSON SCHEMAGlobalCounts
JSON SCHEMAQuestionResponse
JSON SCHEMAQuestion
JSON SCHEMATokenResponse
JSON SCHEMAScroll for all 9
JSON Structure 9
JSON Structure definitions describing this provider's data shapes.
Open Trivia Category Count Response Structure
JSON STRUCTUREOpen Trivia Category List Response Structure
JSON STRUCTUREOpen Trivia Category Question Count Structure
JSON STRUCTUREOpen Trivia Category Structure
JSON STRUCTUREOpen Trivia Global Count Response Structure
JSON STRUCTUREOpen Trivia Global Counts Structure
JSON STRUCTUREOpen Trivia Question Response Structure
JSON STRUCTUREOpen Trivia Question Structure
JSON STRUCTUREOpen Trivia Token Response Structure
JSON STRUCTUREScroll for all 9
Examples 9
Example request and response payloads for these APIs.
Open Trivia Category Example
EXAMPLEOpen Trivia Question Example
EXAMPLEScroll for all 9
Security Posture 1
Authentication, domain security, vulnerability disclosure, and trust-center signals.
Agentic Access 1
Recommended x-agentic-access execution contracts for AI agents.
Resources
Documentation 1
Reference material describing how the API behaves
Agent Surfaces 1
MCP servers, agent skills, and machine-readable catalogs
Build 11
SDKs, sample code, and the tooling you integrate with
Scroll for all 11
Access & Security 1
Authentication, authorization, and security posture
Operate 1
Status, limits, changes, and where to get help
Commercial 2
Pricing, plans, and the legal terms of use
Company 1
The organization behind the API
Other 2
Properties that don't map to a standard resource type