{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtubetranscriptapi-com/json-schema/youtubetranscriptapi-com-listing-schema.json",
  "title": "Listing",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtubetranscriptapi-com-openapi.json#/components/schemas/Listing",
  "type": "object",
  "required": [
    "results",
    "playlist_info",
    "continuation_token",
    "has_more"
  ],
  "properties": {
    "results": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "$ref": "#/$defs/ListingVideo"
      }
    },
    "playlist_info": {
      "$ref": "#/$defs/PlaylistInfo"
    },
    "continuation_token": {
      "type": [
        "string",
        "null"
      ],
      "description": "Always null for now: only the first page is served."
    },
    "has_more": {
      "type": "boolean",
      "description": "Whether there are more videos than this page holds."
    }
  },
  "$defs": {
    "ListingVideo": {
      "type": "object",
      "required": [
        "videoId",
        "title",
        "channelId",
        "channelTitle",
        "channelHandle",
        "lengthText",
        "viewCountText",
        "thumbnails",
        "index"
      ],
      "properties": {
        "videoId": {
          "type": "string",
          "description": "11-character YouTube video ID."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Video title."
        },
        "channelId": {
          "type": [
            "string",
            "null"
          ],
          "description": "UC… channel ID."
        },
        "channelTitle": {
          "type": [
            "string",
            "null"
          ],
          "description": "Channel name."
        },
        "channelHandle": {
          "type": [
            "string",
            "null"
          ],
          "description": "Channel @handle, e.g. @TED."
        },
        "lengthText": {
          "type": [
            "string",
            "null"
          ],
          "description": "Duration as YouTube shows it, e.g. 15:22."
        },
        "viewCountText": {
          "type": [
            "string",
            "null"
          ],
          "description": "View count and age together, e.g. 3.2M views 2 weeks ago."
        },
        "thumbnails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Thumbnail"
          }
        },
        "index": {
          "type": "string",
          "description": "Zero-based position in the listing, as a string."
        }
      }
    },
    "PlaylistInfo": {
      "type": "object",
      "required": [
        "title",
        "numVideos",
        "ownerName",
        "viewCount"
      ],
      "properties": {
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Playlist title; \"Uploads from <channel>\" for channel uploads."
        },
        "numVideos": {
          "type": [
            "string",
            "null"
          ],
          "description": "Video count as YouTube shows it, e.g. 47 videos. Null for channel uploads."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Playlist description. Absent for channel uploads."
        },
        "ownerName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Playlist owner or channel name."
        },
        "viewCount": {
          "type": [
            "string",
            "null"
          ],
          "description": "Not provided yet; always null."
        }
      }
    },
    "Thumbnail": {
      "type": "object",
      "required": [
        "url",
        "width",
        "height"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        }
      }
    }
  }
}