Properties
| Name | Type | Description |
|---|---|---|
| category | string | |
| id | string | Unique identifier for the question |
| tags | array | Secondary categories for the question. More freeform than category (can take any value), and can have multiple tags per question. |
| difficulty | string | How difficult the question is perceived to be by the moderators of the API. |
| regions | array | If the question is regional (i.e. only reasonable to ask people from a particular set of countries), then the ISO 3166-1 alpha-2 country codes for those countries are specified here. For most question |
| isNiche | boolean | Will be true if the question is a niche question, i.e. if it is considered too difficult to return unless the tag is specifically requested. |
| question | object | |
| correctAnswer | string | The correct answer |
| incorrectAnswers | array | Array of incorrect answers |
| hint | string | A one-sentence clue to show before the player answers, if they ask for one. It points towards the answer without giving it away. Optional: not every question has one yet, and it is currently only retu |
| explanation | string | One or two sentences to show after the player answers, saying why the correct answer is right or adding a related fact. It names the correct answer, so do not show it before the player has answered. O |
| type | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/the-trivia-api-com/json-schema/the-trivia-api-com-text-choice-question-schema.json",
"title": "TextChoiceQuestion",
"x-generated": "2026-11-13",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/the-trivia-api-com-openapi.yml#/components/schemas/TextChoiceQuestion",
"allOf": [
{
"$ref": "#/$defs/BaseQuestion"
},
{
"type": "object",
"properties": {
"question": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "String formulation of the questions"
}
},
"required": [
"text"
]
},
"correctAnswer": {
"type": "string",
"description": "The correct answer"
},
"incorrectAnswers": {
"type": "array",
"description": "Array of incorrect answers",
"items": {
"type": "string",
"description": "An incorrect answer"
}
},
"hint": {
"type": "string",
"description": "A one-sentence clue to show before the player answers, if they ask for one. It points towards the answer without giving it away. Optional: not every question has one yet, and it is currently only returned for English requests."
},
"explanation": {
"type": "string",
"description": "One or two sentences to show after the player answers, saying why the correct answer is right or adding a related fact. It names the correct answer, so do not show it before the player has answered. Optional: not every question has one yet, and it is currently only returned for English requests."
},
"type": {
"type": "string",
"enum": [
"text_choice"
]
}
},
"required": [
"question",
"correctAnswer",
"incorrectAnswers",
"type"
]
}
],
"$defs": {
"BaseQuestion": {
"type": "object",
"properties": {
"category": {
"type": "string",
"$ref": "#/$defs/Category"
},
"id": {
"type": "string",
"description": "Unique identifier for the question"
},
"tags": {
"type": "array",
"description": "Secondary categories for the question. More freeform than category (can take any value), and can have multiple tags per question.",
"items": {
"type": "string"
}
},
"difficulty": {
"type": "string",
"enum": [
"easy",
"medium",
"hard"
],
"description": "How difficult the question is perceived to be by the moderators of the API."
},
"regions": {
"type": "array",
"items": {
"type": "string"
},
"description": "If the question is regional (i.e. only reasonable to ask people from a particular set of countries), then the ISO 3166-1 alpha-2 country codes for those countries are specified here.\n\nFor most questions, this will be an empty array, meaning that the question is suitable to ask to people from anywhere in the world."
},
"isNiche": {
"type": "boolean",
"description": "Will be true if the question is a niche question, i.e. if it is considered too difficult to return unless the tag is specifically requested."
}
},
"required": [
"category",
"id",
"tags",
"isNiche",
"difficulty"
]
},
"Category": {
"type": "string",
"enum": [
"music",
"sport_and_leisure",
"film_and_tv",
"arts_and_literature",
"history",
"society_and_culture",
"science",
"geography",
"food_and_drink",
"general_knowledge"
]
}
}
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema 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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/the-trivia-api-com-text-choice-question"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.