{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-batch-get-stats-response-schema.json",
  "title": "BatchGetStatsResponse",
  "description": "Response for the Videos.stats API. Returns VideoStat information about a batch of videos. VideoStat contains a subset of the information in Video that is relevant to statistics and content details. BatchGetStats is intentionally not atomic to provide a better user experience. BatchGetStatsResponse returns a summary to help users understand the outcome of the operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtube-youtube-videos-api-openapi.yml#/components/schemas/BatchGetStatsResponse",
  "type": "object",
  "properties": {
    "kind": {
      "default": "youtube#batchGetStatsResponse",
      "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#batchGetStatsResponse\".",
      "type": "string"
    },
    "etag": {
      "type": "string",
      "description": "Etag of this resource."
    },
    "items": {
      "description": "The videos' stats information.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/VideoStat"
      }
    }
  },
  "$defs": {
    "VideoStat": {
      "type": "object",
      "properties": {
        "contentDetails": {
          "$ref": "#/$defs/VideoStatsContentDetails",
          "description": "Output only. The VideoStatsContentDetails object contains information about the video content, including the length of the video."
        },
        "snippet": {
          "$ref": "#/$defs/VideoStatsSnippet",
          "description": "Output only. The VideoStatsSnippet object contains basic details about the video, such publish time."
        },
        "id": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The ID that YouTube uses to uniquely identify the video."
        },
        "statistics": {
          "$ref": "#/$defs/VideoStatsStatistics",
          "description": "Output only. The VideoStatsStatistics object contains statistics about the video."
        },
        "kind": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Identifies what kind of resource this is. Value: the fixed string \"youtube#videoStats\"."
        },
        "etag": {
          "type": "string",
          "description": "Output only. Etag of this resource.",
          "readOnly": true
        }
      },
      "description": "A *VideoStat* resource represents a YouTube video's stats."
    },
    "VideoStatsContentDetails": {
      "type": "object",
      "properties": {
        "duration": {
          "description": "Output only. The length of the video. The property value is a [`google.protobuf.Duration`](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) object.",
          "format": "google-duration",
          "type": "string",
          "readOnly": true
        }
      },
      "description": "Details about the content of a YouTube Video. This is a subset of the information in VideoContentDetails specifically for the Videos.stats API."
    },
    "VideoStatsSnippet": {
      "type": "object",
      "description": "Basic details about a video. This is a subset of the information in VideoSnippet specifically for the Videos.stats API.",
      "properties": {
        "publishTime": {
          "format": "google-datetime",
          "description": "Output only. The date and time that the video was uploaded. The property value is a [`google.protobuf.Timestamp`](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp) object.",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "VideoStatsStatistics": {
      "type": "object",
      "properties": {
        "commentCount": {
          "description": "Output only. The number of comments for the video.",
          "type": "string",
          "format": "int64",
          "readOnly": true
        },
        "likeCount": {
          "description": "Output only. The number of users who have indicated that they liked the video by giving it a positive rating.",
          "type": "string",
          "readOnly": true,
          "format": "int64"
        },
        "viewCount": {
          "format": "int64",
          "description": "Output only. The number of times the video has been viewed.",
          "readOnly": true,
          "type": "string"
        }
      },
      "description": "Statistics about the video, such as the number of times the video was viewed or liked."
    }
  }
}