Free Trivia & Games API

Ready-to-use quiz questions — multiple choice or true/false, three difficulty levels, dozens of categories from general knowledge to anime — plus a stateful deck of playing cards you can shuffle and draw from, and Pokémon stats, types and abilities by name or national dex number, ideal for quiz apps, party games, card games and Discord bots.

Endpoints

MethodEndpointDescriptionSource
GET /api/v1/games/trivia?amount=10&category=&difficulty=&type= Trivia questions (difficulty: easy/medium/hard, type: multiple/boolean) Open Trivia DB
GET /api/v1/games/trivia/categories List of valid category ids Open Trivia DB
GET /api/v1/games/cards/new-deck?deckCount=1 Create a new shuffled deck of playing cards Deck of Cards API
GET /api/v1/games/cards/{deckId}/draw?count=1 Draw one or more cards from a deck Deck of Cards API
GET /api/v1/games/pokemon/{nameOrId} Pokémon stats, types, abilities and sprite by name or id PokeAPI

Full request/response details for every endpoint are in the API documentation.

Example request

curl "https://freeopenapi.dev/api/v1/games/trivia?amount=10&difficulty=easy" \
  -H "X-Api-Key: YOUR_API_KEY"

Works the same with ?apiKey=... as a query parameter. Every response carries X-RateLimit-Limit / X-RateLimit-Remaining headers so you can track your budget.

Frequently asked questions

Is the trivia API really free?

Yes. The free tier includes 100 requests per day and only requires a verified email address — no credit card. Paid Pro and Business tiers raise the daily limit.

How many questions can I request at once?

Up to 50 questions per call, filtered by category, difficulty (easy/medium/hard) and type (multiple choice or true/false).

Are the answers included?

Yes, every question comes with the correct answer and the incorrect options, so you can render and score quizzes entirely client-side.

How does the card deck work?

Create a shuffled deck with /cards/new-deck to get a deckId, then call /cards/{deckId}/draw to draw one or more cards — the deck's remaining cards are tracked server-side between calls.

Does it include Pokémon data?

Yes — the pokemon endpoint returns stats, types, abilities and a sprite image for any Pokémon by name or national dex number, courtesy of PokeAPI.

How do I get an API key?

Request a key with your email address on the Docs page, click the confirmation link we send you, and your key is active immediately on the free tier.

More free APIs, same key