{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-subscription-list-response-schema.json",
  "title": "SubscriptionListResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtube-youtube-subscriptions-api-openapi.yml#/components/schemas/SubscriptionListResponse",
  "properties": {
    "tokenPagination": {
      "$ref": "#/$defs/TokenPagination"
    },
    "eventId": {
      "type": "string",
      "description": "Serialized EventId of the request which produced this response.",
      "deprecated": true
    },
    "kind": {
      "default": "youtube#subscriptionListResponse",
      "type": "string",
      "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#subscriptionListResponse\"."
    },
    "nextPageToken": {
      "type": "string",
      "description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
    },
    "pageInfo": {
      "$ref": "#/$defs/PageInfo"
    },
    "visitorId": {
      "type": "string",
      "description": "The visitorId identifies the visitor.",
      "deprecated": true
    },
    "etag": {
      "description": "Etag of this resource.",
      "type": "string"
    },
    "prevPageToken": {
      "type": "string",
      "description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Subscription"
      },
      "description": "A list of subscriptions that match the request criteria."
    }
  },
  "type": "object",
  "$defs": {
    "PageInfo": {
      "description": "Paging details for lists of resources, including total number of items available and number of resources returned in a single page.",
      "properties": {
        "resultsPerPage": {
          "format": "int32",
          "description": "The number of results included in the API response.",
          "type": "integer"
        },
        "totalResults": {
          "description": "The total number of results in the result set.",
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "ResourceId": {
      "type": "object",
      "description": "A resource id is a generic reference that points to another YouTube resource.",
      "properties": {
        "videoId": {
          "type": "string",
          "description": "The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video."
        },
        "playlistId": {
          "type": "string",
          "description": "The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist."
        },
        "channelId": {
          "type": "string",
          "description": "The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel."
        },
        "kind": {
          "description": "The type of the API resource.",
          "type": "string"
        }
      }
    },
    "Subscription": {
      "type": "object",
      "description": "A *subscription* resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.",
      "properties": {
        "subscriberSnippet": {
          "$ref": "#/$defs/SubscriptionSubscriberSnippet",
          "description": "The subscriberSnippet object contains basic details about the subscriber."
        },
        "snippet": {
          "$ref": "#/$defs/SubscriptionSnippet",
          "description": "The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to."
        },
        "contentDetails": {
          "$ref": "#/$defs/SubscriptionContentDetails",
          "description": "The contentDetails object contains basic statistics about the subscription."
        },
        "id": {
          "type": "string",
          "description": "The ID that YouTube uses to uniquely identify the subscription."
        },
        "kind": {
          "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#subscription\".",
          "type": "string",
          "default": "youtube#subscription"
        },
        "etag": {
          "description": "Etag of this resource.",
          "type": "string"
        }
      }
    },
    "SubscriptionContentDetails": {
      "properties": {
        "totalItemCount": {
          "type": "integer",
          "format": "uint32",
          "description": "The approximate number of items that the subscription points to."
        },
        "newItemCount": {
          "description": "The number of new items in the subscription since its content was last read.",
          "type": "integer",
          "format": "uint32"
        },
        "activityType": {
          "enum": [
            "subscriptionActivityTypeUnspecified",
            "all",
            "uploads"
          ],
          "description": "The type of activity this subscription is for (only uploads, everything).",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Details about the content to witch a subscription refers."
    },
    "SubscriptionSnippet": {
      "type": "object",
      "description": "Basic details about a subscription, including title, description and thumbnails of the subscribed item.",
      "properties": {
        "channelId": {
          "description": "The ID that YouTube uses to uniquely identify the subscriber's channel.",
          "type": "string"
        },
        "publishedAt": {
          "type": "string",
          "description": "The date and time that the subscription was created.",
          "format": "date-time"
        },
        "description": {
          "type": "string",
          "description": "The subscription's details."
        },
        "resourceId": {
          "$ref": "#/$defs/ResourceId",
          "description": "The id object contains information about the channel that the user subscribed to."
        },
        "thumbnails": {
          "$ref": "#/$defs/ThumbnailDetails",
          "description": "A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail."
        },
        "title": {
          "description": "The subscription's title.",
          "type": "string"
        }
      }
    },
    "SubscriptionSubscriberSnippet": {
      "type": "object",
      "properties": {
        "thumbnails": {
          "$ref": "#/$defs/ThumbnailDetails",
          "description": "Thumbnails for this subscriber."
        },
        "description": {
          "description": "The description of the subscriber.",
          "type": "string"
        },
        "channelId": {
          "type": "string",
          "description": "The channel ID of the subscriber."
        },
        "title": {
          "description": "The title of the subscriber.",
          "type": "string"
        }
      },
      "description": "Basic details about a subscription's subscriber including title, description, channel ID and thumbnails."
    },
    "Thumbnail": {
      "description": "A thumbnail is an image representing a YouTube resource.",
      "properties": {
        "width": {
          "type": "integer",
          "description": "(Optional) Width of the thumbnail image.",
          "format": "uint32"
        },
        "url": {
          "type": "string",
          "description": "The thumbnail image's URL."
        },
        "height": {
          "format": "uint32",
          "description": "(Optional) Height of the thumbnail image.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "ThumbnailDetails": {
      "properties": {
        "standard": {
          "$ref": "#/$defs/Thumbnail",
          "description": "The standard quality image for this resource."
        },
        "default": {
          "$ref": "#/$defs/Thumbnail",
          "description": "The default image for this resource."
        },
        "high": {
          "$ref": "#/$defs/Thumbnail",
          "description": "The high quality image for this resource."
        },
        "maxres": {
          "$ref": "#/$defs/Thumbnail",
          "description": "The maximum resolution quality image for this resource."
        },
        "shortsAspectRatio": {
          "$ref": "#/$defs/Thumbnail",
          "description": "The Shorts aspect ratio (9:16) image for this resource."
        },
        "qhd": {
          "$ref": "#/$defs/Thumbnail",
          "description": "The quad high definition (1440p / 2K) quality image for this resource."
        },
        "uhd": {
          "$ref": "#/$defs/Thumbnail",
          "description": "The ultra-high resolution (4K) quality image for this resource."
        },
        "fhd": {
          "$ref": "#/$defs/Thumbnail",
          "description": "The full high definition (1080p) quality image for this resource."
        },
        "medium": {
          "$ref": "#/$defs/Thumbnail",
          "description": "The medium quality image for this resource."
        }
      },
      "description": "Internal representation of thumbnails for a YouTube resource.",
      "type": "object"
    },
    "TokenPagination": {
      "properties": {},
      "description": "Stub token pagination template to suppress results.",
      "type": "object"
    }
  }
}