YouTube Video API

Youtube Video API allows you to scrape video details from Youtube. Video details such as description, view count, related videos, comments, replies, and many others. The API is accessed through the following endpoint: /search?engine=youtube_video. A user may query the following: https://serpapi.com/search?engine=youtube_video utilizing a GET request. Head to the playground for a live and interactive demo.

API Parameters

Search Query

v

Optional

Parameter defines the Video ID.

Localization

gl

Optional

Parameter defines the country to use for the Youtube video. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France) Head to the Google countries page for a full list of supported Google countries.

hl

Optional

Parameter defines the language to use for the Youtube video. It's a two-letter language code. (e.g., en for English, es for Spanish, or fr for French). Head to the Google languages page for a full list of supported Google languages.

Pagination

next_page_token

Optional

Parameter defines the next page token. It is used for retrieving the next page results for related videos, comments or replies. It should be one of
- related_videos_next_page_token
- comments_next_page_token
- comments_sorting_token.token
- replies_next_page_token
from the search results.

Serpapi Parameters

engine

Required

Set parameter to youtube_video to use the YouTube Video API engine.

no_cache

Optional

Parameter will force SerpApi to fetch the YouTube Video results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the final output you want. It can be set to json (default) to get a structured JSON of the results, or html to get the raw html retrieved.

API Results

JSON Results

JSON output includes structured data for video results.

A search status is accessible through search_metadata.status. It flows this way: Processing -> Success || Error. If a search has failed, the error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML Results

This API does not have html response, just a text. search_metadata.prettify_html_file contains prettified version of result. It is displayed in playground.

API Examples

JSON structure overview

{
  ...
  "title": "String - Title of the video",
  "thumbnail": "String - URL of the video thumbnail",
  "channel": {
    "name": "String - Name of the channel",
    "thumbnail": "String - URL of the channel thumbnail",
    "link": "String - URL of the channel",
    "subscribers": "String - Number of subscribers",
    "verified": "Boolean - True if the channel is verified",
  },
  "views": "String - Number of views",
  "extracted_views": "Integer - Extracted number of views",
  "likes": "String - Number of likes",
  "extracted_likes": "Integer - Extracted number of likes",
  "live": "Boolean - True if the video is live",
  "published_date": "String - Date of publication",
  "description": {
    "content": "String - Description of the video in pure text",
    "links": [
      {
        "start_index": "Integer - Start index of the link text in the content",
        "length": "Integer - Length of the link text",
        "text": "String - The link text",
        "url": "String - URL of the link",
        "type": "String - Type of the link",
      }
    ]
  },
  "shopping_results": [
    {
      "title": "String - Title of the product",
      "description": "String - Description of the product",
      "thumbnail": "String - URL of the product thumbnail",
      "price": "String - Price of the product",
      "extracted_price": "Float - Extracted price of the product",
      "vendor": "String - Vendor of the product",
      "link": "String - URL of the product",
    }
  ],
  "chapters": [
    {
      "title": "String - Title of the chapter",
      "thumbnail": "String - URL of the chapter thumbnail",
      "time_start": "Integer - Time start of the chapter in seconds",
    }
  ],
  "related_videos": [
    {
      "video_id": "String - ID of the video",
      "playlist_id": "String - ID of the playlist if the result is a playlist",
      "link": "String - URL of the video",
      "serpapi_link": "String - URL to the SerpApi search",
      "thumbnail": {
        "static": "String - URL of the static video thumbnail",
        "rich": "String - URL of the rich video thumbnail, usually in the form of a video containing the multiple screenshots",
      },
      "title": "String - Title of the video",
      "published_date": "String - Date of publication",
      "views": "String - Number of views",
      "extracted_views": "Integer - Extracted number of views",
      "live": "Boolean - True if the video is live",
      "length": "String - Length of the video",
      "channel": {
        "name": "String - Name of the channel",
        "link": "String - URL of the channel",
        "thumbnail": "String - URL of the channel thumbnail",
        "verified": "Boolean - True if the channel is verified",
      },
      "extensions": "Array - List of video badges"
    }
  ],
  "related_videos_next_page_token": "String - Token to get the next page of related videos",
  "end_screen_videos": [
    {
      "video_id": "String - ID of the video",
      "link": "String - URL of the video",
      "serpapi_link": "String - URL to the SerpApi search",
      "thumbnail": "String - URL of the video thumbnail",
      "title": "String - Title of the video",
      "published_date": "String - Date of publication",
      "views": "String - Number of views",
      "extracted_views": "Integer - Extracted number of views",
      "live": "Boolean - True if the video is live",
      "length": "String - Length of the video",
      "channel": {
        "name": "String - Name of the channel",
        "link": "String - URL of the channel",
      }
    }
  ],
  // comments do not exist in the initial response, they must be retrieved with the `comments_next_page_token` or `comments_sorting_token`
  "comments": [
    {
      "comment_id": "String - ID of the comment",
      "link": "String - URL of the comment",
      "channel": {
        "name": "String - Name of the channel",
        "link": "String - URL of the channel",
        "thumbnail": "String - URL of the channel thumbnail",
        "verified": "Boolean - True if the channel is verified",
      },
      "published_date": "String - Date of publication",
      "content": "String - Content of the comment",
      "vote_count": "String - Number of votes",
      "extracted_vote_count": "Integer - Extracted number of votes",
      "reply_count": "Integer - Number of replies",
      "replies_next_page_token": "String - Token to get the next page of replies",
    }
  ],
  "comment_count": "String - Number of comments",
  "extracted_comment_count": "Integer - Extracted number of comments",
  "comments_next_page_token": "String - Token to get the next page of comments",
  "comments_sorting_token": [
    {
      "title": "String - Title of the sorting option",
      "token": "String - Token to sort the comments",
    }
  ],
  "comment_parent_id": "String - The parent comment ID of the replies",
  // replies do not exist in the initial response, they must be retrieved with the `replies_next_page_token`
  "replies": [
    // the same structure as comments
  ],
  "replies_next_page_token": "String - Token to get the next page of replies",
  ...
}

Typical results

To further get comments, use the comments_next_page_token or comments_sorting_token.token from this result.
To paginate related videos, use the related_videos_next_page_token from this result.

Typical results

JSON Example

{
  "search_metadata": {
    "id": "65ae07e415afff62c405b4da",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/9cc5e5d05d2a4a30/65ae07e415afff62c405b4da.json",
    "created_at": "2024-01-22 06:15:00 UTC",
    "processed_at": "2024-01-22 06:15:00 UTC",
    "youtube_video_url": "https://www.youtube.com/watch?v=vFcS080VYQ0",
    "raw_html_file": "https://serpapi.com/searches/9cc5e5d05d2a4a30/65ae07e415afff62c405b4da.html",
    "prettify_html_file": "https://serpapi.com/searches/9cc5e5d05d2a4a30/65ae07e415afff62c405b4da.prettify",
    "total_time_taken": 1.25
  },
  "search_parameters": {
    "engine": "youtube_video",
    "v": "vFcS080VYQ0"
  },
  "title": "The basics about: Coffee",
  "thumbnail": "https://i.ytimg.com/vi/vFcS080VYQ0/maxresdefault.jpg",
  "channel": {
    "name": "Old Game Box",
    "thumbnail": "https://yt3.ggpht.com/ytc/AIf8zZT2QAQg-SKMbT0AZlVRd1vq-z5IJjtGfmsH90qpmg=s176-c-k-c0x00ffffff-no-rj",
    "link": "https://www.youtube.com/@OldGameBox",
    "subscribers": "15.4K subscribers"
  },
  "views": "2,138,310 views",
  "extracted_views": 2138310,
  "likes": "53K",
  "extracted_likes": 53000,
  "published_date": "Mar 5, 2016",
  "description": {
    "content": "I'm no expert, but I do enjoy a nice cup of coffee.\n\nI know this channel is about games, but you drink something while playing every now and then, right?\nIf you don't, then why don't you give it a try?\n\nLet me know what you think!\n\nTwitter:\n  / oldgamebox  \n\nBackground music:\n\"George Street Shuffle\"\nby Kevin MacLeod (incompetech.com)",
    "links": [
      {
        "start_index": 241,
        "length": 16,
        "text": "  / oldgamebox  ",
        "url": "https://twitter.com/OldGameBox"
      }
    ]
  },
  "chapters": [
    {
      "title": "Intro",
      "thumbnail": "https://i.ytimg.com/vi/vFcS080VYQ0/hqdefault_8866.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCAStNEtR41pHPFz-CKYCdPQM8o5A",
      "time_start": 0
    },
    {
      "title": "Types of coffee",
      "thumbnail": "https://i.ytimg.com/vi/vFcS080VYQ0/hqdefault_50833.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLA2MZ5AdS4YZV7uEsMYMLpyeRopfA",
      "time_start": 40
    },
    {
      "title": "Roasts",
      "thumbnail": "https://i.ytimg.com/vi/vFcS080VYQ0/hqdefault_150800.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCR27ypujyswmYSzOI2sNARGpatIQ",
      "time_start": 122
    },
    ...
  ],
  "related_videos": [
    {
      "video_id": "N8meCjVsJWI",
      "link": "https://www.youtube.com/watch?v=N8meCjVsJWI",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=N8meCjVsJWI",
      "thumbnail": {
        "static": "https://i.ytimg.com/vi/N8meCjVsJWI/hqdefault.jpg?sqp=-oaymwE2CNACELwBSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhlIEwoQzAP&rs=AOn4CLBqEbEq5EwKryvoIT-XPrCU90ojxg",
        "rich": "https://i.ytimg.com/an_webp/N8meCjVsJWI/mqdefault_6s.webp?du=3000&sqp=CN7pt60G&rs=AOn4CLA8waO5JsXI0p0RD28A1X03iKrNYA"
      },
      "title": "Everything you've ever wanted to know about coffee | Chandler Graf | TEDxACU",
      "published_date": "6 years ago",
      "views": "2,429,487 views",
      "extracted_views": 2429487,
      "length": "14:37",
      "channel": {
        "name": "TEDx Talks",
        "link": "https://www.youtube.com/@TEDx",
        "thumbnail": "https://yt3.ggpht.com/70r5TkYTLC0cpKLAiQEvcWLeIHB8yxoiog0nQIK9MmnZHqkICy0YA-jAaqfT2ChOBwehskjf5g=s68-c-k-c0x00ffffff-no-rj",
        "verified": true
      }
    },
    {
      "video_id": "yBefPJ2Rd8Y",
      "link": "https://www.youtube.com/watch?v=yBefPJ2Rd8Y",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=yBefPJ2Rd8Y",
      "thumbnail": {
        "static": "https://i.ytimg.com/vi/yBefPJ2Rd8Y/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLATUcs4jQsEW9-6g-Xhrr_Lx3HbRg",
        "rich": "https://i.ytimg.com/an_webp/yBefPJ2Rd8Y/mqdefault_6s.webp?du=3000&sqp=CKzyt60G&rs=AOn4CLAKWBs0vKJVE94gY8BGgMV6jgHaeg"
      },
      "title": "Barista 101: Espresso Cappuccino and Latte",
      "published_date": "2 years ago",
      "views": "183,758 views",
      "extracted_views": 183758,
      "length": "13:21",
      "channel": {
        "name": "MIHCA TV",
        "link": "https://www.youtube.com/@MIHCATV",
        "thumbnail": "https://yt3.ggpht.com/zyYiP26zE5AfIMYytoMm-Y5Vkgrbe2SjgZaYFfyQzKsssUFxFN_Hl32uSbG-t0-7tGcKw9F5WQ=s68-c-k-c0x00ffffff-no-rj"
      }
    },
    {
      "video_id": "Dmpnrtey3YU",
      "link": "https://www.youtube.com/watch?v=Dmpnrtey3YU",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=Dmpnrtey3YU",
      "thumbnail": {
        "static": "https://i.ytimg.com/vi/Dmpnrtey3YU/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDYmI1OEqZ6nkrLY-2AMDkDmHzqEA",
        "rich": "https://i.ytimg.com/an_webp/Dmpnrtey3YU/mqdefault_6s.webp?du=3000&sqp=COeEuK0G&rs=AOn4CLDbAThp9QigXCU5CQhWci15iv1TCA"
      },
      "title": "Why Single-Origin Coffee Is So Expensive | So Expensive Food | Insider Business",
      "published_date": "10 months ago",
      "views": "1,963,777 views",
      "extracted_views": 1963777,
      "length": "16:15",
      "channel": {
        "name": "Business Insider",
        "link": "https://www.youtube.com/@BusinessInsider",
        "thumbnail": "https://yt3.ggpht.com/TTxfi6M_GbvZPO7PpzALMFyOVNdbT_A9x4Q__IlbHudcW6ILewdofeHJcThIY6yitRzUGBypS-8=s68-c-k-c0x00ffffff-no-rj"
      }
    },
    ...
  ],
  "related_videos_next_page_token": "CBQSKRILdkZjUzA4MFZZUTDAAQDIAQDgAQGiAg0o____________AUAA-AIAGAAqjAYyczZMNnd6Q0JBcV9CQW9EOGo0QUNnM0NQZ29JNHNxd3E2UEI1LVEzQ2dQeVBnQUtEc0ktQ3dqRzc4WHN5ZWZuaThnQkNnUHlQZ0FLRGNJLUNnaUZ1OHU5N2ZXWnRRNEtBX0ktQUFvT3dqNExDTWZHd2JqczV0U0N2UUVLQV9JLUFBb093ajRMQ01iWDB1WFFvYVhickFFS0FfSS1BQW9Pd2o0TENKZVYwdV9ab2ZtemhnRUtBX0ktQUFvT3dqNExDS3JxN0liZHpwVHYzUUVLQV9JLUFBb053ajRLQ1B6OHR2UE1xcExRTndvRDhqNEFDZzdDUGdzSTF0SEppNjZPN0pDV0FRb0Q4ajRBQ2czQ1Bnb0kzLVdIc2NHWXgtNU1DZ1B5UGdBS0RjSS1DZ2lyaHFHVnF1N0F5WG9LQV9JLUFBb093ajRMQ0tla3NhV0o2ZS1zcndFS0FfSS1BQW9Pd2o0TENOQ3Y0WU9Rb1l1UjZ3RUtBX0ktQUFvTndqNEtDS2liLWJydHF2TGxPQW9EOGo0QUNnM0NQZ29JamJQYnJ1am1uLWNVQ2dQeVBnQUtEc0ktQ3dqd3pKSGgwcUM4a1lZQkNnUHlQZ0FLRHNJLUN3amxvcnpULTVhVXJ1c0JDZ1B5UGdBS0RzSS1Dd2lTbmRuZ200YXZfb2tCQ2dQeVBnQUtEY0ktQ2dpWmhfekM5cGkwdXprS0FfSS1BQW9Od2o0S0NQZmVrcHViOXFHNEJ4SVVBQUlFQmdnS0RBNFFFaFFXR0JvY0hpQWlKQ1lhQkFnQUVBRWFCQWdDRUFNYUJBZ0VFQVVhQkFnR0VBY2FCQWdJRUFrYUJBZ0tFQXNhQkFnTUVBMGFCQWdPRUE4YUJBZ1FFQkVhQkFnU0VCTWFCQWdVRUJVYUJBZ1dFQmNhQkFnWUVCa2FCQWdhRUJzYUJBZ2NFQjBhQkFnZUVCOGFCQWdnRUNFYUJBZ2lFQ01hQkFna0VDVWFCQWdtRUNjcUZBQUNCQVlJQ2d3T0VCSVVGaGdhSEI0Z0lpUW1qD3dhdGNoLW5leHQtZmVlZA%3D%3D",
  "end_screen_videos": [
    {
      "video_id": "N8meCjVsJWI",
      "link": "https://www.youtube.com/watch?v=N8meCjVsJWI",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=N8meCjVsJWI",
      "thumbnail": "https://i.ytimg.com/vi/N8meCjVsJWI/hqdefault.jpg?sqp=-oaymwE2CNACELwBSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhlIEwoQzAP&rs=AOn4CLBqEbEq5EwKryvoIT-XPrCU90ojxg",
      "title": "Everything you've ever wanted to know about coffee | Chandler Graf | TEDxACU",
      "published_date": "6 years ago",
      "views": "2.4M views",
      "extracted_views": 2400000,
      "length": "14:37",
      "channel": {
        "name": "TEDx Talks",
        "link": "https://www.youtube.com/@TEDx"
      }
    },
    {
      "video_id": "yBefPJ2Rd8Y",
      "link": "https://www.youtube.com/watch?v=yBefPJ2Rd8Y",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=yBefPJ2Rd8Y",
      "thumbnail": "https://i.ytimg.com/vi/yBefPJ2Rd8Y/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLATUcs4jQsEW9-6g-Xhrr_Lx3HbRg",
      "title": "Barista 101: Espresso Cappuccino and Latte",
      "published_date": "2 years ago",
      "views": "183K views",
      "extracted_views": 183000,
      "length": "13:21",
      "channel": {
        "name": "MIHCA TV",
        "link": "https://www.youtube.com/@MIHCATV"
      }
    },
    {
      "video_id": "Dmpnrtey3YU",
      "link": "https://www.youtube.com/watch?v=Dmpnrtey3YU",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=Dmpnrtey3YU",
      "thumbnail": "https://i.ytimg.com/vi/Dmpnrtey3YU/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLDYmI1OEqZ6nkrLY-2AMDkDmHzqEA",
      "title": "Why Single-Origin Coffee Is So Expensive | So Expensive Food | Insider Business",
      "published_date": "10 months ago",
      "views": "1.9M views",
      "extracted_views": 1900000,
      "length": "16:15",
      "channel": {
        "name": "Business Insider",
        "link": "https://www.youtube.com/@BusinessInsider"
      }
    },
    ...
  ],
  "comment_count": "1.1K",
  "extracted_comment_count": 1100,
  "comments_next_page_token": "Eg0SC3ZGY1MwODBWWVEwGAYyJSIRIgt2RmNTMDgwVllRMDAAeAJCEGNvbW1lbnRzLXNlY3Rpb24%3D",
  "comments_sorting_token": [
    {
      "title": "Top comments",
      "token": "Eg0SC3ZGY1MwODBWWVEwGAYyVSIuIgt2RmNTMDgwVllRMDAAeAKqAhpVZ3pPa3lkQ0VWVUN5enRNN3R4NEFhQUJBZzABQiFlbmdhZ2VtZW50LXBhbmVsLWNvbW1lbnRzLXNlY3Rpb24%3D"
    },
    {
      "title": "Newest first",
      "token": "Eg0SC3ZGY1MwODBWWVEwGAYyOCIRIgt2RmNTMDgwVllRMDABeAIwAUIhZW5nYWdlbWVudC1wYW5lbC1jb21tZW50cy1zZWN0aW9u"
    }
  ]
}

Live video results

Live video results

JSON Example

{
  ...
  "title": "Rain Sounds For Sleeping - 99% Instantly Fall Asleep With Rain And Thunder Sound At Night",
  "thumbnail": "https://i.ytimg.com/vi/tduwK1tNxEg/maxresdefault.jpg",
  "channel": {
    "name": "Rain Sound Natural",
    "thumbnail": "https://yt3.ggpht.com/7ySj9B03EAiPk6lxWAwEBwfAG2yB5_cJxKKOvn0fJitDc7gp_-KX7cZvl_ztqOlTPfNYKEhq7hM=s176-c-k-c0x00ffffff-no-rj",
    "link": "https://www.youtube.com/@RainSoundNatural2612",
    "subscribers": "335K subscribers",
    "extracted_subscribers": 335000,
    "verified": true
  },
  "views": "25,647 watching now",
  "extracted_views": 25647,
  "likes": "877",
  "extracted_likes": 877,
  "live": true,
  "published_date": "Started streaming 17 hours ago",
  ...
  "related_videos": [
    {
      "video_id": "77ZozI0rw7w",
      "link": "https://www.youtube.com/watch?v=77ZozI0rw7w",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=77ZozI0rw7w",
      "thumbnail": {
        "static": "https://i.ytimg.com/vi/77ZozI0rw7w/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCDQEDBIuGZK9mI96Dwa-bG9ovPoA"
      },
      "title": "Soothing Relaxation: Relaxing Piano Music, Sleep Music, Water Sounds, Relaxing Music, Meditation",
      "published_date": "6 years ago",
      "views": "207,744,904 views",
      "extracted_views": 207744904,
      "length": "3:02:04",
      "channel": {
        "name": "Soothing Relaxation",
        "link": "https://www.youtube.com/@SoothingRelaxation",
        "thumbnail": "https://yt3.ggpht.com/Qsf__eFCAAGX59KHV3XdKgXFx_Qfb4H4O9RbVcqcy-j0L9VmINxNFRZnWhifP2FeUFXHvhw4hg=s68-c-k-c0x00ffffff-no-rj",
        "verified": true
      }
    },
    {
      "video_id": "JriU7y0igSI",
      "link": "https://www.youtube.com/watch?v=JriU7y0igSI",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=JriU7y0igSI",
      "thumbnail": {
        "static": "https://i.ytimg.com/vi/JriU7y0igSI/hqdefault_live.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBKS3fEWRH2I1KMAm6mliGvCVD1Vg"
      },
      "title": "Super Heavy Rain To Sleep Immediately - Rain Sounds For Relaxing Your Mind And Sleep Tonight - ASMR",
      "views": "1,405 watching",
      "extracted_views": 1405,
      "live": true,
      "channel": {
        "name": "Rain Sound Natural",
        "link": "https://www.youtube.com/@RainSoundNatural2612",
        "thumbnail": "https://yt3.ggpht.com/7ySj9B03EAiPk6lxWAwEBwfAG2yB5_cJxKKOvn0fJitDc7gp_-KX7cZvl_ztqOlTPfNYKEhq7hM=s68-c-k-c0x00ffffff-no-rj",
        "verified": true
      },
      "extensions": [
        "LIVE"
      ]
    },
    ...
  ],
  "end_screen_videos": [
    {
      "video_id": "77ZozI0rw7w",
      "link": "https://www.youtube.com/watch?v=77ZozI0rw7w",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=77ZozI0rw7w",
      "thumbnail": "https://i.ytimg.com/vi/77ZozI0rw7w/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCDQEDBIuGZK9mI96Dwa-bG9ovPoA",
      "title": "Soothing Relaxation: Relaxing Piano Music, Sleep Music, Water Sounds, Relaxing Music, Meditation",
      "published_date": "6 years ago",
      "views": "207M views",
      "extracted_views": 207000000,
      "length": "3:02:04",
      "channel": {
        "name": "Soothing Relaxation",
        "link": "https://www.youtube.com/@SoothingRelaxation"
      }
    },
    {
      "video_id": "JriU7y0igSI",
      "link": "https://www.youtube.com/watch?v=JriU7y0igSI",
      "serpapi_link": "https://serpapi.com/search.json?engine=youtube_video&v=JriU7y0igSI",
      "thumbnail": "https://i.ytimg.com/vi/JriU7y0igSI/hqdefault_live.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBKS3fEWRH2I1KMAm6mliGvCVD1Vg",
      "title": "Super Heavy Rain To Sleep Immediately - Rain Sounds For Relaxing Your Mind And Sleep Tonight - ASMR",
      "published_date": "16 hours ago",
      "views": "1.4K watching",
      "extracted_views": 1400,
      "live": true,
      "channel": {
        "name": "Rain Sound Natural",
        "link": "https://www.youtube.com/@RainSoundNatural2612"
      }
    },
    ...
  ],
  ...
}

Example for shopping results

Example for shopping results

JSON Example

{
  ...
  "shopping_results": [
    {
      "title": "Last Meals Embroidered Hat | Mythical Store",
      "description": "The perfect hat for your last meal. Be like Josh, wear it with our Last Meals Tee!",
      "thumbnail": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcSrnWXmJzAh_LOH2fyCTsVkYSDAq-Z1ASjcFNj7WN3fLfhZZbC1a_J8nLAH4c8c_FhCDJXIZpX_",
      "price": "$30.00",
      "extracted_price": 30,
      "vendor": "The Mythical Store",
      "link": "https://mythical.com/products/last-meals-embroidered-hat?variant=42997874950332&currency=USD&utm_campaign=sag_organic&srsltid=AfmBOopjU_TXW_RAGgc32C_yXFkuDZxnVQoVpUZfpaLanZB7zqKMSr8pyic&utm_term=UCXGR70CkW_pXb8n52LzCCRw&utm_medium=product_shelf&utm_source=youtube&utm_content=YT-APM2gMB3mkHQg-8ohTs8HRbwxy7kaiCEjwGvGMeMeC5TDVl3MWqV-DEWVkvDZP39lAPoOCHkz2YNnOisY1BKqq2KRMo2CPSVw4B_AbQq3J0otXikIDwpbjQlCvFQJ_cyjnOppeE9qn2XvuXUHlwurDsA3xhLOvYS52XQf1vMOjduuUAQeSE9mvV6"
    },
    {
      "title": "Last Meals Tee | Mythical Store MD",
      "description": "The perfect tee for your last meal. Be like Josh, wear it with our Last Meals Embroidered Hat!",
      "thumbnail": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcRpyxxYD5qMlJlMxJ8PKed4l_2eORqqWXresD8UpuJrRqrvNRJYpyn7Wg-J80OozBHiYqWXLGl6",
      "price": "$30.00",
      "extracted_price": 30,
      "vendor": "The Mythical Store",
      "link": "https://mythical.com/products/last-meals-tee?variant=42997840740540&currency=USD&utm_campaign=sag_organic&srsltid=AfmBOoqn8FAUHUuJEdw6LcFsTT1NhHUZ_4JMvfxPRCcIV0vR379QT7rm_nM&utm_term=UCXGR70CkW_pXb8n52LzCCRw&utm_medium=product_shelf&utm_source=youtube&utm_content=YT-APM2gMBEYba1GxNwKcRTiSb37PozD4H-6MCZ_naj9bujgmP89zdl5PRpe1_6XH-y4QJpjoYAnTqkjSzxBq8kcnHlwTT3O7VftVrf0_WgYh3EzMVQ89a2K0kDLFnVFLZ_4Zl3BlMChwsO0cArLX0hUEmgc99TJMFH3BmlJI3uxovxy8nYAxaLVRXQ"
    }
  ],
  ...
}

Example for comments

Use the comments_next_page_token from the video result to get the initial comments. And use the same key from this result for pagination.
To further get replies of a comment, use the replies_next_page_token from the comment.

Example for comments

JSON Example

{
  ...
  "comment_count": "7,421",
  "extracted_comment_count": 7421,
  "comments": [
    {
      "comment_id": "UgwgDTmQSDph3n7Lyr54AaABAg",
      "link": "https://www.youtube.com/watch?v=ENhfIeZF_AY&lc=UgwgDTmQSDph3n7Lyr54AaABAg",
      "channel": {
        "name": "@NickDiGiovanni",
        "link": "https://www.youtube.com/channel/UCMyOj6fhvKFMjxUCp3b_3gA",
        "thumbnail": "https://yt3.ggpht.com/flQNxMIkGvrAaublvNUp1l0MIkMjAeNq8q63SNI5Tc0rkRrF91Vp_SwWBIgpMDn7TjGeWUnuWg=s176-c-k-c0x00ffffff-no-rj",
        "verified": true
      },
      "published_date": "11 days ago",
      "content": "One of the best Gordon Ramsay interviews I've ever seen! Nice job josh",
      "vote_count": "32K",
      "extracted_vote_count": 32000,
      "reply_count": 75,
      "replies_next_page_token": "Eg0SC0VOaGZJZVpGX0FZGAYygwEaUBIaVWd3Z0RUbVFTRHBoM243THlyNTRBYUFCQWciAggAKhhVQ1hHUjcwQ2tXX3BYYjhuNTJMekNDUncyC0VOaGZJZVpGX0FZQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dnRFRtUVNEcGgzbjdMeXI1NEFhQUJBZw%3D%3D"
    },
    {
      "comment_id": "UgyHhH9KKpzYkVlV_nF4AaABAg",
      "link": "https://www.youtube.com/watch?v=ENhfIeZF_AY&lc=UgyHhH9KKpzYkVlV_nF4AaABAg",
      "channel": {
        "name": "@TessFibre",
        "link": "https://www.youtube.com/channel/UCcoJDVfjYgaqL2q-OzI5UbQ",
        "thumbnail": "https://yt3.ggpht.com/ytc/AIf8zZQXxXNYaIAT797gTZBwZqHHnh6dN9TtjgpU523vBB5NoqDOeWbl4tqumX2HO43_=s176-c-k-c0x00ffffff-no-rj"
      },
      "published_date": "7 days ago",
      "content": "You can see that Gordon actually enjoyed being here for this interview.\nHe totally appreciated Josh and Trevor's cooking without putting on.\nChef to chef.",
      "vote_count": "2.2K",
      "extracted_vote_count": 2200,
      "reply_count": 1,
      "replies_next_page_token": "Eg0SC0VOaGZJZVpGX0FZGAYygwEaUBIaVWd5SGhIOUtLcHpZa1ZsVl9uRjRBYUFCQWciAggAKhhVQ1hHUjcwQ2tXX3BYYjhuNTJMekNDUncyC0VOaGZJZVpGX0FZQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3lIaEg5S0twellrVmxWX25GNEFhQUJBZw%3D%3D"
    },
    {
      "comment_id": "UgwsBgVRwHVrVmVBmSB4AaABAg",
      "link": "https://www.youtube.com/watch?v=ENhfIeZF_AY&lc=UgwsBgVRwHVrVmVBmSB4AaABAg",
      "channel": {
        "name": "@Tongys",
        "link": "https://www.youtube.com/channel/UCEZmAerjLybuECMfjUVjjCw",
        "thumbnail": "https://yt3.ggpht.com/EHxhGwTNBBGEh9BIgc0NMuBxp4czLWhxNDHyjlkZoyzNMvIg6HDvTlKlSYMWFU1EgZA1J1bE_Q=s176-c-k-c0x00ffffff-no-rj"
      },
      "published_date": "5 days ago",
      "content": "This just proved that Josh and Mythical Kitchen has gained so much respect on its own that they gained the respect of Gordon Ramsay to join it. I don't see Gordon doing many things with the public unless he is either gaining a lot of from it or genuinely likes what it is he is contributing to. And him doing this certainly shows he has nothing to gained except a good conversation with a fellow food chef",
      "vote_count": "646",
      "extracted_vote_count": 646,
      "reply_count": 4,
      "replies_next_page_token": "Eg0SC0VOaGZJZVpGX0FZGAYygwEaUBIaVWd3c0JnVlJ3SFZyVm1WQm1TQjRBYUFCQWciAggAKhhVQ1hHUjcwQ2tXX3BYYjhuNTJMekNDUncyC0VOaGZJZVpGX0FZQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dzQmdWUndIVnJWbVZCbVNCNEFhQUJBZw%3D%3D"
    },
    ...
  ],
  "comments_next_page_token": "Eg0SC0VOaGZJZVpGX0FZGAYy7AIKwgJnZXRfcmFua2VkX3N0cmVhbXMtLUNxWUJDSUFFRlJlMzBUZ2Ftd0VLbGdFSTJGOFFnQVFZQnlLTEFUc0J0UmFyZFBteVVHb0tuNHMwYzhiN2NJdHZtMURnTFFJNXRzVlQ5VzB5Z3Z1Z2dfdE55ZFFiQjhkYy1RMi1uU2Z4UE8xaTZYTUNnLWI2REJZVTFldm5TSjUtVm1rYjQza1pHaGpucEpkVTU1TmRlS1JhczI0OHFLVXQtQ01sTE9SVEU2cld0RzJUdDh5WTNqQ0V6Zkl3QXhySWQxQjlQc01XbEEtNHZvQUozR1FEeXRlUkFnWmFjTGtRRkJJRkNJa2dHQUFTQndpWElCQVBHQUVTQlFpb0lCZ0FFZ1VJaUNBWUFCSUhDSVFnRUJRWUFSSUZDSWNnR0FBU0J3aUZJQkFRR0FFWUFBIhEiC0VOaGZJZVpGX0FZMAB4ASgUQhBjb21tZW50cy1zZWN0aW9u"
  ...
}

Example replies for comment id UgwgDTmQSDph3n7Lyr54AaABAg

Use the replies_next_page_token from the comment item to get the initial replies. And use the same key from this result for pagination.

Example replies for comment id UgwgDTmQSDph3n7Lyr54AaABAg

JSON Example

{
  ...
  "comment_parent_id": "UgwgDTmQSDph3n7Lyr54AaABAg",
  "replies": [
    {
      "comment_id": "UgwgDTmQSDph3n7Lyr54AaABAg.9zMbqf8JTJy9zMcFmzWFmz",
      "link": "https://www.youtube.com/watch?v=ENhfIeZF_AY&lc=UgwgDTmQSDph3n7Lyr54AaABAg.9zMbqf8JTJy9zMcFmzWFmz",
      "channel": {
        "name": "@that_guy_good",
        "link": "https://www.youtube.com/channel/UCpgVm3NK0a-9GFpuAUKqg3g",
        "thumbnail": "https://yt3.ggpht.com/T-Kl2xIWMi9ZaSviRe-wnucuxwYGvq2506gln1YZmmqW6I2qeYE0Go3hAwrTjm0qpPf35kIW=s176-c-k-c0x00ffffff-no-rj"
      },
      "published_date": "2 weeks ago",
      "content": "Wsg nick",
      "vote_count": "34",
      "extracted_vote_count": 34
    },
    {
      "comment_id": "UgwgDTmQSDph3n7Lyr54AaABAg.9zMbqf8JTJy9zMcb5hO0F_",
      "link": "https://www.youtube.com/watch?v=ENhfIeZF_AY&lc=UgwgDTmQSDph3n7Lyr54AaABAg.9zMbqf8JTJy9zMcb5hO0F_",
      "channel": {
        "name": "@frederick2025",
        "link": "https://www.youtube.com/channel/UCWkexevR_4fvJl0Ze6hGTeg",
        "thumbnail": "https://yt3.ggpht.com/LqxqwFVjX5fUZ_TwKY64qg0EzqY21QK0sRjKO9-7TGlK9P8ImhLVkfyio_9frfm4YwjnqmVN=s176-c-k-c0x00ffffff-no-rj"
      },
      "published_date": "2 weeks ago",
      "content": "Hi Nick",
      "vote_count": "14",
      "extracted_vote_count": 14
    },
    {
      "comment_id": "UgwgDTmQSDph3n7Lyr54AaABAg.9zMbqf8JTJy9zMcjnePgSp",
      "link": "https://www.youtube.com/watch?v=ENhfIeZF_AY&lc=UgwgDTmQSDph3n7Lyr54AaABAg.9zMbqf8JTJy9zMcjnePgSp",
      "channel": {
        "name": "@FlooridamanManfnorida",
        "link": "https://www.youtube.com/channel/UCRukxWL_uo3JN8uLr9iHm4A",
        "thumbnail": "https://yt3.ggpht.com/jpia9WINvTETtwrW9EyDEiijwUjLxycNWge_y6gtzcdijn6VCWmUfB3g1G85Yp4w926rbVqohA=s176-c-k-c0x00ffffff-no-rj"
      },
      "published_date": "2 weeks ago",
      "content": "sup nick",
      "vote_count": "8",
      "extracted_vote_count": 8
    },
  ],
  "replies_next_page_token": "Eg0SC0VOaGZJZVpGX0FZGAYy3gEKV2dldF9jb21tZW50X3dpdGhfcmVwbGllc19zdHJlYW0tLUNnZ0lnQVFWRjdmUk9CSUZDS0VnR0FBU0JRaWdJQmdCR0FBaURBb0tDT3YzOXF3R0VJQ1hJZxpQEhpVZ3dnRFRtUVNEcGgzbjdMeXI1NEFhQUJBZyICCAAqGFVDWEdSNzBDa1dfcFhiOG41Mkx6Q0NSdzILRU5oZkllWkZfQVlAAUgyggECCAEoCkIvY29tbWVudC1yZXBsaWVzLWl0ZW0tVWd3Z0RUbVFTRHBoM243THlyNTRBYUFCQWc%3D"
  ...
}