Open Trivia Database · JSON Structure

Open Trivia Category Question Count Structure

Question counts for a single category broken down by difficulty.

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

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

Properties

total_question_count total_easy_question_count total_medium_question_count total_hard_question_count

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-question-count-structure.json",
  "name": "CategoryQuestionCount",
  "description": "Question counts for a single category broken down by difficulty.",
  "type": "object",
  "properties": {
    "total_question_count": {"type": "int32", "description": "Total questions across all difficulty levels."},
    "total_easy_question_count": {"type": "int32", "description": "Number of easy questions."},
    "total_medium_question_count": {"type": "int32", "description": "Number of medium questions."},
    "total_hard_question_count": {"type": "int32", "description": "Number of hard questions."}
  },
  "required": [
    "total_question_count",
    "total_easy_question_count",
    "total_medium_question_count",
    "total_hard_question_count"
  ]
}