Dimension scores are derived from public data and fields; weighted into the composite. Reference only.
Open Trivia DB is a free, user-contributed database of trivia questions, with 5,296 verified questions shown on the main page at the time of review. It offers developers a completely free JSON API for retrieving quiz questions in programming projects. No API key is required; you simply generate a URL according to the documentation and request the data. The question database is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
Functionally, it covers the basic needs of quiz applications: you can specify the number of questions, category, difficulty, question type, and encoding format. Categories include general knowledge, entertainment, science, history, geography, sports, anime, video games, and more. The API also provides Session Tokens, which track questions already returned and help avoid repeats within the same session; tokens are deleted after 6 hours of inactivity. Supporting endpoints include category listing, per-category question counts, and global question counts, making it easier for developers to dynamically build question-bank selectors on the frontend or backend.
For a lightweight API, the documentation is fairly clear. It explains basic usage, response codes, token status, encoding types, and limitations. Response codes cover success, no results, invalid parameters, missing tokens, exhausted token question pools, and rate limiting. One important limitation is that each IP can access the API only once every 5 seconds; a single request can retrieve up to 50 questions, and only one category can be requested at a time. These constraints make it more suitable for small projects, classroom demos, and low-frequency applications, rather than as a direct dependency for high-concurrency commercial quiz platforms.
Its pricing advantage is obvious: it is completely free and requires no authentication, so the barrier to entry is very low. The main page does not mention an official SDK, SLA, enterprise support, paid plans, or self-hosting options; integration mainly relies on the standard HTTP JSON API. The website includes entries such as Browse, Add New Questions, Discuss, and Login, indicating that maintenance of the question bank depends on community contributions.
The strengths are that it is free, simple, easy to get started with, and its Session Token feature is useful for continuous quiz sessions. The downsides are strict rate limits, a limited question-bank size, and a lack of production-grade support information. It is well suited to learning projects, mini-games, classroom interaction, chatbot Q&A modules, or prototype validation. The source text provides no information about access from China, so it is unclear whether it can be reached directly; if access is unstable, a local question bank, open-source Q&A dataset, or self-built trivia API may be a better alternative.
⚠ This review is compiled from public sources and does not constitute a purchase recommendation. Verify all facts on the vendor's official site. Verify on opentdb.com official site.
opentdb.com is an United States API & Data provider. TG4G tracks its product information, an overall rating of 8.0/10, and a China-accessibility score of China direct-connect friendly. Click "Visit Official Site" to reach opentdb.com directly.