Open Trivia Database · JSON Structure

Open Trivia Question Structure

A single trivia question with its category, difficulty, and answers.

Type: object Properties: 6 Required: 6
TriviaGames And ComicsQuizOpen DataPublic APIsOpen-Source

Question is a JSON Structure definition published by Open Trivia Database, describing 6 properties, of which 6 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

type difficulty category question correct_answer incorrect_answers

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/json-structure/open-trivia-question-structure.json",
  "name": "Question",
  "description": "A single trivia question with its category, difficulty, and answers.",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "Question format — multiple-choice or true/false.",
      "enum": ["multiple", "boolean"]
    },
    "difficulty": {
      "type": "string",
      "description": "Difficulty level assigned to the question.",
      "enum": ["easy", "medium", "hard"]
    },
    "category": {
      "type": "string",
      "description": "Human-readable category name (HTML-entity encoded by default)."
    },
    "question": {
      "type": "string",
      "description": "The trivia question prompt, encoded per the encode parameter."
    },
    "correct_answer": {
      "type": "string",
      "description": "The correct answer to the question."
    },
    "incorrect_answers": {
      "type": "array",
      "description": "One incorrect answer for boolean questions, or three for multiple-choice.",
      "items": {"type": "string"}
    }
  },
  "required": [
    "type",
    "difficulty",
    "category",
    "question",
    "correct_answer",
    "incorrect_answers"
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/open-trivia-question-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.