CategoryCountResponse

Response returned by /api_count.php.

TriviaGames And ComicsQuizOpen DataPublic APIsOpen Source

Properties

Name Type Description
category_id integer Numeric identifier for the requested category.
category_question_count object
View JSON Schema on GitHub

JSON Schema

open-trivia-category-count-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/open-trivia/refs/heads/main/json-schema/open-trivia-category-count-response-schema.json",
  "title": "CategoryCountResponse",
  "description": "Response returned by /api_count.php.",
  "type": "object",
  "required": ["category_id", "category_question_count"],
  "properties": {
    "category_id": {
      "type": "integer",
      "description": "Numeric identifier for the requested category.",
      "example": 9
    },
    "category_question_count": {
      "$ref": "open-trivia-category-question-count-schema.json"
    }
  }
}