Properties
| Name | Type | Description |
|---|---|---|
| questions | array | The questions that match the search criteria |
| totalHits | number | The total number of questions that match the search criteria |
| perPage | number | The number of questions returned per page |
| pageNumber | number | The page number returned |
| totalPages | number | The total number of pages when the current search criteria is applied. Sending a request with a page number greater than this will return an empty array of questions. |
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-search-questions-response-schema.json",
"title": "SearchQuestionsResponse",
"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/SearchQuestionsResponse",
"type": "object",
"properties": {
"questions": {
"type": "array",
"description": "The questions that match the search criteria",
"items": {
"$ref": "#/$defs/V2Question"
}
},
"totalHits": {
"type": "number",
"description": "The total number of questions that match the search criteria"
},
"perPage": {
"type": "number",
"description": "The number of questions returned per page"
},
"pageNumber": {
"type": "number",
"description": "The page number returned"
},
"totalPages": {
"type": "number",
"description": "The total number of pages when the current search criteria is applied. Sending a request with a page number greater than this will return an empty array of questions."
}
},
"required": [
"questions",
"totalHits",
"perPage",
"pageNumber",
"totalPages"
],
"$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"
]
},
"ImageChoiceQuestion": {
"allOf": [
{
"$ref": "#/$defs/BaseQuestion"
},
{
"type": "object",
"properties": {
"question": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "String formulation of the questions"
}
},
"required": [
"text"
]
},
"correctAnswer": {
"type": "array",
"items": {
"$ref": "#/$defs/ImageOption"
}
},
"incorrectAnswers": {
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "#/$defs/ImageOption"
}
}
},
"type": {
"type": "string",
"enum": [
"image_choice"
]
}
},
"required": [
"question",
"correctAnswer",
"incorrectAnswers",
"type"
]
}
]
},
"ImageOption": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Full URL of the image"
},
"height": {
"type": "number",
"description": "Height of the image in pixels"
},
"width": {
"type": "number",
"description": "Width of the image in pixels"
},
"size": {
"type": "number",
"description": "Size of the image in bytes"
},
"author": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The author's name"
},
"url": {
"type": [
"string",
"null"
],
"description": "URL to the author's website or social media profile"
}
}
},
"source": {
"type": "object",
"properties": {
"url": {
"type": [
"string",
"null"
],
"description": "Where the image is originally credited"
}
}
},
"description": {
"type": "string",
"description": "Description of what the image is showing, can be used as alt text."
},
"license": {
"type": "object",
"properties": {
"url": {
"type": [
"string",
"null"
],
"description": "URL to the license of the image"
},
"name": {
"type": "string",
"description": "Name of the license"
}
}
}
},
"required": [
"url",
"height",
"width",
"size",
"author",
"source",
"description",
"license"
]
},
"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"
]
}
]
},
"TextInputQuestion": {
"allOf": [
{
"$ref": "#/$defs/BaseQuestion"
},
{
"type": "object",
"properties": {
"question": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "String formulation of the question"
}
},
"required": [
"text"
]
},
"correctAnswer": {
"type": "string",
"description": "The \"gold standard\" correct answer"
},
"acceptedAnswers": {
"type": "array",
"description": "Cached list of accepted answer variations (only returned if showAnswer=true)",
"items": {
"type": "string"
}
},
"correctAnswerRatio": {
"type": "object",
"description": "How often this question has been answered correctly vs incorrectly",
"properties": {
"correct": {
"type": "number",
"description": "Number of correct answers recorded"
},
"incorrect": {
"type": "number",
"description": "Number of incorrect answers recorded"
}
},
"required": [
"correct",
"incorrect"
]
},
"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 it is not returned when showAnswer=false. Optional: not every question has one yet, and it is currently only returned for English requests."
},
"type": {
"type": "string",
"enum": [
"text_input"
]
}
},
"required": [
"question",
"correctAnswer",
"correctAnswerRatio",
"type"
]
}
]
},
"V2Question": {
"oneOf": [
{
"$ref": "#/$defs/TextChoiceQuestion"
},
{
"$ref": "#/$defs/ImageChoiceQuestion"
},
{
"$ref": "#/$defs/TextInputQuestion"
}
]
}
}
}
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-search-questions-response"
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.