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 is listed with 4 APIs on the APIs.io network, including Categories API, Questions API, Statistics API, and 1 more. Tagged areas include Trivia, Quiz, Open Data, Public APIs, and Open Source.
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 17 more developer resources.
Kin Score
Standards implemented 1
Standards this provider implements or carries. De facto ones are profiled and measured by the API Commons; formal ones come from the standards directory and are linked by the provider's own tags. The evidence column says how each claim was established — not that it was made.
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 5
Open, tool-agnostic API collections (OpenAPI-derived and Bruno).
Open Trivia Database Categories API
OPEN COLLECTIONOpen Trivia Database Categories Questions API
OPEN COLLECTIONOpen Trivia Database Categories Statistics API
OPEN COLLECTIONOpen Trivia Database Categories Tokens API
OPEN COLLECTIONOpen Trivia Database API
OPEN COLLECTIONOpen Trivia Database API pricing
Rate limits
- Per-IP global throttle: 0.2 requests per second
Compiled by API Evangelist, not yet checked against Open Trivia Database's documentation. Rate-limit details →
Rate 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
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 2
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
Source (apis.yml)
Open Trivia Database API — frequently asked questions
Does Open Trivia Database have an API?
Yes. APIs.io lists 4 APIs from Open Trivia Database, including Open Trivia Database Categories API, Open Trivia Database Questions API and Open Trivia Database Statistics API, and 1 more.
Is there an OpenAPI specification for the Open Trivia Database API?
Yes. APIs.io indexes 4 OpenAPI specifications for Open Trivia Database, each linked for download from this page.
Is the Open Trivia Database API ready for AI agents?
Open Trivia Database has a Kin Score of 25.8 out of 100 (emerging) and an Agent Readiness score of 25.5 (agent-aware), scored by API Evangelist on 2026-11-06.
Work with this as data
Every provider here is available over the APIs.io API and to AI agents over MCP.