Open Trivia Database · JSON Structure

Open Trivia Category Structure

A trivia category identifier and name pair.

Type: object Properties: 2 Required: 2
TriviaGames And ComicsQuizOpen DataPublic APIsOpen Source

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

Properties

id name

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-category-structure.json",
  "name": "Category",
  "description": "A trivia category identifier and name pair.",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32",
      "description": "Numeric category identifier.",
      "minimum": 9,
      "maximum": 32
    },
    "name": {
      "type": "string",
      "description": "Human-readable category name."
    }
  },
  "required": ["id", "name"]
}