FreeAPIHub
HomeAPIsAI ModelsAI ToolsBlog
Favorites
FreeAPIHub

The central hub for discovering, testing, and integrating the world's best AI models and APIs.

Platform

  • Categories
  • AI Models
  • APIs

Company

  • About Us
  • Contact
  • FAQ

Help

  • Terms of Service
  • Privacy Policy
  • Cookies

© 2026 FreeAPIHub. All rights reserved.

GitHubTwitterLinkedIn
  1. Home
  2. Categories
  3. Education
  4. Open Trivia DB API
published

Open Trivia DB API

The Open Trivia DB API provides developers with free access to over 50,000 verified trivia questions, ideal for quiz apps and educational tools.

Developed by Open Trivia DB

Live API
99.90%Uptime
200msLatency
4.2kStars
No AuthAuth
NoCredit Card
RESTStyle
1.0Version

Reference

API Endpoints

Endpoints

Available routes, request structures, and code examples.

Retrieve random trivia questions from various categories

Endpoint URL
https://opentdb.com/api.php
Code Example
curl -X GET 'https://opentdb.com/api.php'
Request Payload
{
  "type": "multiple",
  "amount": "10",
  "category": "18",
  "difficulty": "medium"
}
Expected Response
{
  "results": [
    {
      "category": "Science: Computers",
      "question": "What does CPU stand for?",
      "correct_answer": "Central Processing Unit",
      "incorrect_answers": [
        "Central Process Unit",
        "Computer Personal Unit"
      ]
    }
  ],
  "response_code": 0
}
Version:v1

Integration

Quick Start

cURL ExampleREST
curl -X GET "https://opentdb.com/api.php/api.php?amount=10&category=9&type=multiple"

Docs

Technical Documentation

What this API does

The Open Trivia DB API offers developers seamless access to a large collection of over 50,000 verified trivia questions spanning 24 diverse categories, including science, history, and entertainment. This API supports filtering by difficulty level and question type, enabling customized queries to fit any quiz or educational game format.

How it works

Developers can make simple HTTP GET requests to retrieve trivia questions. The API allows for filtering by category, difficulty, and type, providing JSON responses that can be easily integrated into web, mobile, or chatbot platforms. For instance, you can specify parameters such as the amount of questions needed, the desired category, or the level of difficulty.

Authentication

No authentication is required for the Open Trivia DB API. Developers can start using the API immediately without registration or the need for API keys.

Example usage

  • /api.php?amount=10&type=multiple - Fetches 10 multiple-choice trivia questions.
  • /api.php?amount=5&category=17 - Retrieves 5 questions from the Science & Nature category.
  • /api.php?amount=3&difficulty=easy - Gets 3 easy questions across all categories.

Limits

No specific rate limits are documented for the Open Trivia DB API, allowing for flexible usage without restrictions.

Ideal use cases

  • Creating quiz applications for educational purposes.
  • Developing trivia games for entertainment.
  • Integrating trivia question functionality into chatbots.
  • Enhancing learning platforms with interactive quiz features.

Examples

Real-World Applications

  • Creating educational quizzes and trivia applications
  • Developing interactive trivia games for user engagement
  • Integrating trivia functionality into chatbots for enhanced user experience
  • Building learning tools for schools and training programs
  • Conducting live trivia events and competitions

Evaluation

Advantages & Limitations

Advantages
  • ✓ Completely free with no signup or API key required
  • ✓ Large database of over 50,000 verified trivia questions
  • ✓ Wide variety of categories and difficulty levels
  • ✓ Simple RESTful JSON API that's easy to integrate
Limitations
  • ✗ No official SDKs available
  • ✗ No rate limits documentation which may affect large-scale use
  • ✗ Limited response formats (JSON only)
  • ✗ No built-in support for analytics or user tracking

Support

Frequently Asked Questions

Important Notice

Verify Before You Decide

Last verified · Apr 30, 2026

The details on this page — including pricing, features, and availability — are based on our last review and may not reflect the provider's current offering. Providers update their products frequently, sometimes without prior notice.

What may have changed

Pricing Plans
Features & Limits
Availability
Terms & Policies

Always visit the official provider website to confirm the latest pricing, terms, and feature availability before subscribing or integrating.

Check official site

External Resources

Documentation Official Website Pricing Details Postman Collection

API Specifications

1.0
Pricing Model
Free
Credit Card
Not Required
Response Formats
JSON
Supported Languages
7 Languages
SDK Support
REST Only
Rate Limit

No documented limits

Time to Hello World

Minutes

Free Tier

Full access to all endpoints and data without restrictions or usage limits.

Best For

Developers building quiz apps, educational platforms, trivia games, and chatbot integration

Not Ideal For

Applications requiring complex analytics, commercial usage with guaranteed SLA, or non-JSON formats

Tags

#opentdb#questions#no-auth#free-api#quiz#trivia#education#games

You Might Also Like

More APIs Similar to Open Trivia DB API

Free Dictionary API

The Free Dictionary API provides developers free access to detailed definitions, pronunciations, synonyms, and example sentences, ideal for language applications.

publicREST

Universities List API

The Universities List API enables developers to access comprehensive data on universities across the globe without authentication, ideal for educational platforms and applications.

PublicREST

Wordnik API

The Wordnik API gives developers free access to extensive English dictionary data, including definitions, synonyms, antonyms, and example sentences, making it ideal for language learning and content creation.

publicREST