Open Trivia Database · JSON Structure

Open Trivia Global Count Response Structure

Response returned by /api_count_global.php.

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

GlobalCountResponse 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

overall categories

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-global-count-response-structure.json",
  "name": "GlobalCountResponse",
  "description": "Response returned by /api_count_global.php.",
  "type": "object",
  "properties": {
    "overall": {"$ref": "#/definitions/GlobalCounts"},
    "categories": {
      "type": "object",
      "description": "Per-category breakdown keyed by numeric category identifier as a string.",
      "additionalProperties": {"$ref": "#/definitions/GlobalCounts"}
    }
  },
  "required": ["overall", "categories"],
  "definitions": {
    "GlobalCounts": {
      "type": "object",
      "properties": {
        "total_num_of_questions": {"type": "int32"},
        "total_num_of_pending_questions": {"type": "int32"},
        "total_num_of_verified_questions": {"type": "int32"},
        "total_num_of_rejected_questions": {"type": "int32"}
      },
      "required": [
        "total_num_of_questions",
        "total_num_of_pending_questions",
        "total_num_of_verified_questions",
        "total_num_of_rejected_questions"
      ]
    }
  }
}