{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-video-get-rating-response-schema.json",
  "title": "VideoGetRatingResponse",
  "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/VideoGetRatingResponse",
  "properties": {
    "kind": {
      "type": "string",
      "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#videoGetRatingResponse\".",
      "default": "youtube#videoGetRatingResponse"
    },
    "etag": {
      "type": "string",
      "description": "Etag of this resource."
    },
    "eventId": {
      "type": "string",
      "description": "Serialized EventId of the request which produced this response.",
      "deprecated": true
    },
    "items": {
      "items": {
        "$ref": "#/$defs/VideoRating"
      },
      "description": "A list of ratings that match the request criteria.",
      "type": "array"
    },
    "visitorId": {
      "description": "The visitorId identifies the visitor.",
      "type": "string",
      "deprecated": true
    }
  },
  "type": "object",
  "$defs": {
    "VideoRating": {
      "description": "Basic details about rating of a video.",
      "properties": {
        "videoId": {
          "description": "The ID that YouTube uses to uniquely identify the video.",
          "type": "string"
        },
        "rating": {
          "type": "string",
          "enum": [
            "none",
            "like",
            "dislike"
          ],
          "description": "Rating of a video."
        }
      },
      "type": "object"
    }
  }
}