Skip to content

Trivia API

The Open Trivia Database provides a completely free JSON API for use in programming projects. Use of this API does not require a API Key, just generate the URL below use it in your own application to retrieve trivia questions.

Open documentation ↗
AuthHTTPSCORSGames & Comics

Verified 4 days ago: 100% uptime

API key

Unconfirmed

HTTPS

Supported

Browser calls

Yes, CORS enabled

Status

Live · 98/100

What our checks found

Health score
98/100
Reliability
100%
Average latency
1082ms

Last checked 2026-09-18. Measured independently, not self-reported by the provider.

How to call it

A starting template for Trivia API. Replace ENDPOINT with the path from the official documentation, which we link above rather than guess at.

# Authentication requirement is unconfirmed. Check the documentation before relying on this.
curl -s "https://opentdb.com/ENDPOINT" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Accept: application/json"

Where this listing comes from

Aggregated from one public source (freepublicapis), then normalised and checked by us. If something here is wrong, tell us and we will correct it.

Other Games & Comics APIs

See all 142

CheapShark

Games & Comics

Steam/PC Game Prices and Deals

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

Crafatar

Games & Comics

API for Minecraft skins and faces

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

Disney

Games & Comics

Information of Disney characters

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

DotaSense Timings

Games & Comics

Reviewed Dota 2 objective timings in JSON and CSV

No keyCORSHTTPS

Verified 4 days ago: 100% uptime

View Details

Trivia API — common questions

Answered from what our own scheduled checks found, not from the provider's marketing.

Is Trivia API free to use?

Trivia API is listed in our free catalogue, but it requires some form of authentication, so you will need to register before your first call. Providers frequently reserve higher limits and commercial use for paid plans.

Does Trivia API need an API key?

Trivia API requires some form of authentication. Check the provider's documentation for which scheme it expects.

Can I call Trivia API from browser JavaScript?

Yes. Trivia API returned CORS headers when we checked it, so a browser will let your page read the response. You can fetch it directly from client-side JavaScript with no proxy and no backend.

Is Trivia API still working?

Yes, as of 2026-09-18. Our automated check reached Trivia API and recorded a 100% reliability score with a median response time of 1082 ms. We re-check on a schedule, and this page updates with the result.

Is Trivia API available over HTTPS?

Yes. Trivia API serves over HTTPS, so you can call it from a secure page without triggering a mixed-content block.