Product

How Jentic Works

From API assessment to production deployment in four simple steps.

Product Overview

PLATFORM

API DirectoryBrowse 10,000+ APIs ready for AI agent integrationAPI ScorecardAssess your APIs for AI-readiness with automated scoringAgentic SandboxSafely simulate AI agents with your production APIsJenticSign in to the Jentic web app

CAPABILITIES

IntegrationConnect AI agents to your existing systemsWorkflowsDiscover and capture successful agent workflowsGovernanceDefine, observe, and enforce AI policies

TOOLS

Arazzo UIVisualize Arazzo workflows as interactive documentationArazzo EditorBuild and edit multi-step API workflows visually
Pricing
Developers

GET STARTED

DocumentationGuides and API referenceQuickstartGet up and running in minutes

COMMUNITY

GitHubOpen source projects and examples
Resources
BlogLatest articles and insightsPress & MediaBrand assets and press contactOpen StandardsBuilt on open specs. Never locked in.NewsletterAPIs, AI agents, mixed with architecture and strategy.
Company
About UsOur mission and teamCareersJoin our teamContactGet in touch
Install Jentic OneBook a Demo
How Jentic WorksAPI DirectoryAPI ScorecardAgentic SandboxJenticIntegrationWorkflowsGovernanceArazzo UIArazzo Editor
Pricing
DocumentationQuickstartGitHub
BlogPress & MediaOpen StandardsNewsletter
About UsCareersContact
Request a demoInstall Jentic One
Jentic
For Enterprises
  • Product Overview
  • Agentic Sandbox
  • Book a Demo
For Developers
  • Jentic One
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
ISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

Terms & Conditions•Privacy Policy•
© 2026 Jentic. All rights reserved.
APIs / Education / Open Trivia Database API
Open Trivia Database API logo

Opentdb Open Trivia Database API

✓ Official Vendor SpecEducationAssessmentnone5 EndpointsREST

For Agents

Fetch trivia questions filtered by category, difficulty, and type, and manage session tokens to avoid repeats.

Use for: Get 10 hard science trivia questions, Fetch 5 multiple-choice history questions, Generate a new session token to avoid repeats, List all the trivia categories available

Not supported: Does not handle quiz scoring, user accounts, or curriculum tracking — use for fetching trivia questions and category metadata only.

The Open Trivia Database API serves a free, user-contributed library of trivia questions across categories like history, science, entertainment, and sports. Endpoints provide configurable question retrieval (amount, category, difficulty, type), session token management to avoid repeat questions, category metadata, and per-category and global question counts. The service is openly accessible with no authentication required and is widely used for quiz games, educational apps, and developer learning projects.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the Open Trivia Database API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Open Trivia Database API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with Open Trivia Database API.

Fetch up to 50 trivia questions per request via /api.php with category, difficulty, and type filters

Request multiple-choice, true/false, or both question types from /api.php

Generate or reset a session token with /api_token.php to avoid repeat questions across rounds

List all available trivia categories with /api_category.php

Get the question count for a single category via /api_count.php

Get global question counts across the entire database with /api_count_global.php

Use Cases

Patterns agents use Open Trivia Database API for, with concrete tasks.

★ Quiz Game Question Source

Mobile and web quiz games can power their question feed from /api.php, requesting batches of 10-20 questions with the desired category, difficulty, and type. Pair with /api_token.php session tokens so the same question doesn't appear twice in a single user's run. The Open Trivia DB has thousands of community-contributed questions covering 24+ categories, eliminating the need to build and maintain a private question bank.

GET /api.php?amount=10&category=21&difficulty=hard&type=multiple to fetch 10 hard sports multiple-choice questions

Educational Practice App

Learning apps that drill students on a topic can pull from /api.php with the relevant category and difficulty, then track progress per session using a token from /api_token.php. The /api_count.php endpoint exposes how many questions remain in a category so the app can warn the learner before exhausting available content. No API key is needed, simplifying classroom deployment.

Generate a token via /api_token.php, then loop GET /api.php?amount=20&category=18&difficulty=easy&token=... until /api_count.php is exhausted

Trivia Bot for Chat Platforms

A Discord, Slack, or Telegram bot can post a trivia question on a schedule by calling /api.php?amount=1 and rendering the question and answers in the channel. Use /api_category.php at startup to expose category-selection commands to users. Because Open Trivia DB has no auth and no per-key rate limit, the bot can be deployed without operator configuration.

GET /api_category.php to list categories, then GET /api.php?amount=1&category={chosen}&type=boolean for a true/false question

AI Agent Trivia Host

An AI agent acting as a trivia host can fetch questions from the Open Trivia DB through Jentic without managing rate limits or HTML decoding wrappers. Jentic resolves the natural-language intent ('get me a hard history question') into the right /api.php call with category and difficulty params and returns the structured JSON the agent renders to the user.

Through Jentic, search 'get a trivia question', resolve to GET /api.php, and execute with amount=1, category=23 (history), difficulty=hard

Key Endpoints

5 endpoints — the open trivia database api serves a free, user-contributed library of trivia questions across categories like history, science, entertainment, and sports.

METHOD

PATH

DESCRIPTION

GET

/api.php

Fetch trivia questions with filters

GET

/api_token.php

Create or reset a session token

GET

/api_category.php

List all trivia categories

GET

/api_count.php

Get question count for a category

GET

/api_count_global.php

Get global question counts

GET

/api.php

Fetch trivia questions with filters

GET

/api_token.php

Create or reset a session token

GET

/api_category.php

List all trivia categories

GET

/api_count.php

Get question count for a category

GET

/api_count_global.php

Get global question counts

Why Jentic?

Three things that make agents converge on Jentic-routed access.

Credential management

Credential isolation

Open Trivia DB needs no credentials, so Jentic routes the request directly. The agent context never carries any secrets for this API.

Intent-based discovery

Intent-based discovery

Agents search Jentic for intents like 'get a trivia question' or 'list trivia categories' and Jentic returns the matching Open Trivia operation with its parameter schema.

Time to first call

Time to first call

Direct integration with Open Trivia DB: 30 minutes including HTML-entity decoding of returned text. Through Jentic: under 10 minutes — search, load, execute.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Alternative

API Ninjas

→

API Ninjas exposes a trivia and quiz endpoint plus many other utility data APIs.

Choose API Ninjas when you also need other utility APIs (jokes, quotes, exercises) under one provider; choose Open Trivia DB for the largest free trivia question bank.

Alternative

Numverify API

→

Different domain entirely, included as a comparison point for free public-data APIs that require no auth.

Reference for understanding the no-auth public-data API pattern; use Open Trivia DB for trivia content.

Complementary

Discord API

→

Post trivia questions fetched from Open Trivia DB into Discord channels via bot integration.

Pair with Open Trivia DB when building a Discord trivia bot.

FAQs

Specific to using Open Trivia Database API through Jentic.

What authentication does the Open Trivia Database API use?

None — the API is fully open and requires no API key. Through Jentic the request is dispatched without any credential handling, so there is nothing to provision in the vault for this API.

Can I avoid repeat questions across rounds with the Open Trivia Database API?

Yes — call /api_token.php to generate a session token, then pass token={token} on subsequent /api.php calls. The token tracks which questions have been served and the API will return a response code 4 once the category is exhausted, at which point you can reset the token.

What are the rate limits for the Open Trivia Database API?

Open Trivia DB enforces a fair-use policy of one request every 5 seconds per IP. There are no documented hard caps for low-traffic apps. /api_count_global.php and /api_count.php can be polled less frequently to plan question budgets.

How do I fetch a hard multiple-choice question through Jentic?

Search Jentic for 'get a trivia question', load the GET /api.php schema, and execute with amount=1, type=multiple, difficulty=hard. Jentic returns the question and shuffled answer list in JSON.

Is the Open Trivia Database API free for commercial use?

Yes — Open Trivia DB content is licensed under Creative Commons Attribution-ShareAlike 4.0. Attribution and redistribution rules apply; check opentdb.com for the current licensing notice before shipping a commercial product.

What categories does the Open Trivia Database API cover?

Categories include General Knowledge, Books, Film, Music, TV, Video Games, Science & Nature, Mathematics, History, Geography, Politics, Sports, and more. Call /api_category.php for the live list of category IDs and names.

GET STARTED

Start building with Open Trivia Database API

Explore with Jentic
View OpenAPI Document