Take the hard work out of building your Trivia app

  • Over 11,000 questions available with one simple request
  • Customise your query, including category and difficulty
  • Reach customers across the world with translations

Get quiz questions with a single request

Simply send a GET request to https://the-trivia-api.com/v2/questions to get started!

fetch('https://the-trivia-api.com/v2/questions')
[
  {
    "category": "history",
    "id": "63989c195c9a75021f310480",
    "correctAnswer": "Absolute Monarchy",
    "incorrectAnswers": [
      "Democracy",
      "Constitutional Monarchy",
      "Parliamentary Democracy"
    ],
    "question": {
      "text": "What kind of government dominated most of Europe during the 17th century?"
    },
    "tags": [
      "history",
      "1600s",
      "europe"
    ],
    "type": "text_choice",
    "difficulty": "medium",
    "regions": [],
    "isNiche": false
  },
  {
    "category": "society_and_culture",
    "id": "622a1c357cc59eab6f94fd14",
    "correctAnswer": "Karl Marx",
    "incorrectAnswers": [
      "Ludwig Wittgenstein",
      "Socrates",
      "Friedrich Nietzsche"
    ],
    "question": {
      "text": "Which philosopher famously said 'Religion is the sign of the oppressed ... it is the opium of the people'?"
    },
    "tags": [
      "philosophy",
      "quotes",
      "society_and_culture"
    ],
    "type": "text_choice",
    "difficulty": "hard",
    "regions": [],
    "isNiche": false
  },
  {
    "category": "film_and_tv",
    "id": "622a1c347cc59eab6f94f8df",
    "correctAnswer": "Dennis Hopper",
    "incorrectAnswers": [
      "Kevin Spacey",
      "James Stewart",
      "Robert Mitchum"
    ],
    "question": {
      "text": "Which actor played the role of Frank Booth in Blue Velvet?"
    },
    "tags": [
      "people",
      "acting",
      "film",
      "film_and_tv"
    ],
    "type": "text_choice",
    "difficulty": "hard",
    "regions": [],
    "isNiche": false
  },
  {
    "category": "arts_and_literature",
    "id": "63afff982d1dcedfbb654568",
    "correctAnswer": "The Tempest",
    "incorrectAnswers": [
      "Othello",
      "A Midsummer Night's Dream",
      "Romeo and Juliet"
    ],
    "question": {
      "text": "In which of Shakespeare's plays does the character 'Prospero' appear?"
    },
    "tags": [
      "arts_and_literature",
      "shakespeare",
      "theater",
      "fictitious_characters"
    ],
    "type": "text_choice",
    "difficulty": "hard",
    "regions": [],
    "isNiche": false
  },
  {
    "category": "music",
    "id": "622a1c387cc59eab6f950b46",
    "correctAnswer": "The Velvet Underground",
    "incorrectAnswers": [
      "Alice in Chains",
      "Marilyn Manson",
      "Fall Out Boy"
    ],
    "question": {
      "text": "Which band includes 'Nico'?"
    },
    "tags": [
      "music"
    ],
    "type": "text_choice",
    "difficulty": "hard",
    "regions": [],
    "isNiche": false
  },
  {
    "category": "food_and_drink",
    "id": "622a1c367cc59eab6f9502dc",
    "correctAnswer": "Gin ",
    "incorrectAnswers": [
      "Rum",
      "Vodka",
      "Avocaat"
    ],
    "question": {
      "text": "The Term 'Dutch Courage' Originally Came From The Consumption Of Which Drinkt?"
    },
    "tags": [
      "food_and_drink"
    ],
    "type": "text_choice",
    "difficulty": "medium",
    "regions": [],
    "isNiche": false
  },
  {
    "category": "history",
    "id": "639ae2bb929b90846f2fc8b1",
    "correctAnswer": "Harald Hardrada",
    "incorrectAnswers": [
      "Ragnar Lothbrok",
      "Ivar the Boneless",
      "Sweyn Forkbeard"
    ],
    "question": {
      "text": "What is the name of the legendary Viking warrior who fought in the Battle of Stamford Bridge?"
    },
    "tags": [
      "history",
      "vikings",
      "uk"
    ],
    "type": "text_choice",
    "difficulty": "medium",
    "regions": [],
    "isNiche": false
  },
  {
    "category": "society_and_culture",
    "id": "622a1c3b7cc59eab6f951712",
    "correctAnswer": "Pantomime",
    "incorrectAnswers": [
      "Colosseum",
      "Theatrical",
      "Cabaret"
    ],
    "question": {
      "text": "Which word comes from a Greek word meaning 'imitator of all'?"
    },
    "tags": [
      "society_and_culture",
      "words",
      "language"
    ],
    "type": "text_choice",
    "difficulty": "hard",
    "regions": [],
    "isNiche": false
  },
  {
    "category": "society_and_culture",
    "id": "622a1c3a7cc59eab6f9511b1",
    "correctAnswer": "Eris",
    "incorrectAnswers": [
      "Razr",
      "Mercury",
      "Zeus"
    ],
    "question": {
      "text": "Who is the Greek equivalent of the Roman god Discordia?"
    },
    "tags": [
      "ancient_greece",
      "mythology",
      "society_and_culture"
    ],
    "type": "text_choice",
    "difficulty": "hard",
    "regions": [],
    "isNiche": false
  },
  {
    "category": "science",
    "id": "622a1c377cc59eab6f95047a",
    "correctAnswer": "heat",
    "incorrectAnswers": [
      "the future",
      "the future",
      "a neologism for the Pilates method, a system of physical exercise"
    ],
    "question": {
      "text": "What is Thermology the study of?"
    },
    "tags": [
      "science"
    ],
    "type": "text_choice",
    "difficulty": "easy",
    "regions": [],
    "isNiche": false
  }
]
  • The internet's largest Trivia API with 10,655 approved questions.

Provide translations for users across the world

(Available with a Complete subscription)

Dutch
🇳🇱
Het schilderij "American Gothic" van Grant Wood maakt deel uit van welke kunststroming?
  • Modernisme
  • Pointillisme
  • Primitivisme
  • Ukiyo-e

The only API to offer picture questions

(Available with a Complete subscription)

Which image shows the Scottish city of Edinburgh?
This montage was created from images already available on Wikicommons.
Clockwise from top-left: View from Calton Hill, University of Edinburgh Old College, View of Edinburgh Old Town, Edinburgh Castle, Princes Street as seen from Calton Hill.
Composite of seven photos for use in the Las Vegas Strip article. Top is "Night Panorama of the Las Vegas Strip, featuring Project City Center construction to the right"; second row is "the Las Vegas Sign. June 2005" (left) and "Las Vegas strip" (right); third row is "Caesars Palace - Across Bellagio Lake" (left) and "Tropicana - Las Vegas Boulevard intersection" (right); fourth (bottom) row is "View northwards of en:Las Vegas Boulevard, taken from the Tropicana Avenue intersection, between the New York, New York and MGM Grand hotels." (left) and "Canals at the Venetian Resort Hotel Casino, a Venice-themed hotel and casino located on the famed Las Vegas Strip in Las Vegas, Nevada, on the site of the old Sands Hotel. The Venetian is owned and operated by the Las Vegas Sands Corporation." (right).
Clockwise: View of Johannesburg CBD from 
Braamfontein, The Central Business District as seen from the top of the 
Carlton Centre, The Wits University East Campus, and the Sentech 

Tower.

Try it now

Search across the range of tags applied to our questions

Subcategories for this question, e.g. 'capital_cities', 'europe'

FAQs

What is The Trivia API?

The Trivia API is an API that provides multiple choice quiz questions across a range of categories. It is designed to let developers build quiz apps without needing to manage a large database of questions. For paying subscribers there is also additional functionality:

  • Create sessions so that users don't receive duplicate questions
  • Image questions
  • Translate all questions into other languages, including French, Hindi, Spanish, Dutch & Turkish.
  • Create quizzes so that you can give the same questions to different users.

The API is under active development; new questions and features are being added all the time!

How do I get questions from the API?

To get started, simply send a GET request to https://the-trivia-api.com/v2/questions. You can also filter the questions by a number of parameters. For full information see our documentation.

Do I need a license?

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 to use some of the API's advanced features, this is offered as a paid subscription.

Where do the questions come from?

The questions come from a range of sources:

  • User submissions
  • SPARQL queries to Wikidata used to procedurally generate questions.
  • Large Language Models backed by ground truth
  • Scripts to scrape and build questions from information on public websites.

All questions are reviewed before being made available through the API.