Blog

Guides for building quiz apps, games and bots with The Trivia API.

  • 4 min read

    How to get free trivia questions from an API

    How to fetch random trivia questions as JSON, filter them by category, difficulty and tag, and use them from JavaScript, TypeScript or Python.

  • 7 min read

    How to build a quiz app with React

    A step-by-step guide to building a multiple choice quiz app in React and TypeScript, with questions from The Trivia API, a results screen and tests.

  • 6 min read

    How to build a quiz app with Vue

    Build a multiple choice quiz app with Vue 3, TypeScript and The Trivia API, using script setup, typed props and emits, and tests with Testing Library.

License

Information about the Creative Commons license for The Trivia API.

The API and all data returned from it are licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Creative Commons License

This means that the API and the questions it returns are free for noncommercial use. If you have somewhere suitable in your app, then please credit the API somewhere discreet — we love having our hard work shared!

If you would like to use the API commercially, or would like enhanced functionality, this service is offered through a paid subscription.

Sign in

Sign in to access your API key and manage your account.

or continue with email