{ "data": { "video": { "id": "dQw4w9WgXcQ", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }, "order": "top", "totalCount": 2461342, "commentsDisabled": false, "comments": [ { "id": "Ugw10bSluCDSZMIxUSB4AaABAg", "parentId": null, "text": "Let’s put the meme aside, this is actually a banging song.", "links": [], "author": { "id": "UCHpvHTRSILoOFKWX5oFCYDA", "handle": "LK-ht7qz", "url": "https://www.youtube.com/@LK-ht7qz", "avatarUrl": "https://yt3.ggpht.com/RJnrz4JwDmHNgtFdnVdJ6FKLiuo59IuHkY6bvqaEJM0mxTSlq0GKQs_ItA-sJ8QMqps_lf9Lvgs=s88-c-k-c0x00ffffff-no-rj", "isVerified": false, "isCreator": false, "isArtist": false }, "publishedText": "6 years ago", "isEdited": false, "likeCount": 221000, "likeCountText": "221K", "replyCount": 620, "isPinned": false, "pinnedText": null, "isHearted": false, "heartedBy": null, "images": [], "repliesToken": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3MTBiU2x1Q0RTWk1JeFVTQjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3cxMGJTbHVDRFNaTUl4VVNCNEFhQUJBZw%3D%3D" }, { "id": "Ugxzbv_ZeZXNRcfwsSF4AaABAg", "parentId": null, "text": "Is everyone going to ignore the fact that Rick Astley looks like a twelve year old boy but has a uniquely deep voice?", "links": [], "author": { "id": "UCNLgzvqrGzFi5SEAbVkFchg", "handle": "candycake9531", "url": "https://www.youtube.com/@candycake9531", "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_mEO82VrM8XtyGrBUkJgbAYgpAmDpUZixd1QvK9kyA=s88-c-k-c0x00ffffff-no-rj", "isVerified": false, "isCreator": false, "isArtist": false }, "publishedText": "6 years ago", "isEdited": false, "likeCount": 293000, "likeCountText": "293K", "replyCount": 727, "isPinned": false, "pinnedText": null, "isHearted": false, "heartedBy": null, "images": [], "repliesToken": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZw%3D%3D" }, { "id": "UgwPwTibxdgqCHZxktd4AaABAg", "parentId": null, "text": "My algebra teacher said that this was a link to the test answers", "links": [], "author": { "id": "UCdi6tGxvFvTRGe-7dAn7m7w", "handle": "bdr8823", "url": "https://www.youtube.com/@bdr8823", "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj", "isVerified": false, "isCreator": false, "isArtist": false }, "publishedText": "7 years ago", "isEdited": false, "likeCount": 71000, "likeCountText": "71K", "replyCount": 672, "isPinned": false, "pinnedText": null, "isHearted": false, "heartedBy": null, "images": [], "repliesToken": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3UHdUaWJ4ZGdxQ0haeGt0ZDRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dQd1RpYnhkZ3FDSFp4a3RkNEFhQUJBZw%3D%3D" } ], "count": 20, "cursor": "eyJrIjoiZFF3NHc5V2dYY1EiLCJvIjoidG9wIiwiYyI6IkVnMFNDMlJSZHpSM09WZG5XR05SR0FZeV9nSUsxQUpuWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJHZEZTVEpHT0ZGblFWRlpRbmxMVEVGYWMzZGlUREl4UVMxMWNXOXVkMUpoZVVOeFlVdE9hbFJvVWtsRWMzSnlSRE5PVGtkdVRGQm5hR2hGY0RCMVNtMW1VbVJ5WDJWeFNVTlNNVTF0VUVWRFFXeEVOakJUY0ZoSmJIcGFOMHhNV0doV1ZsWnNNMGhJV1VsVlNuVkdlVFZGZFVOTVVUbGFZM1pIUlVOSGVrVXRXbWsyVDNGUU9WaG5XWFJaYWtZNVMyeE9XRE15V0ZGTFRVYzNRM2xwTkZvd1JGZEVRbmQzVDI4eVdtbGZjMWRUYnpSM1pXRTBia05TT1U1UlUzVlhNMGRVUW05QllVRmpWRFJSUmtKSlNFTkpWV2RGUVZWWlFWSkpSa05OUVdkSFFVRlRRbEZwU1VsQ1owRkZaMVZKYUhsQldVRkNTVVpEU1d0blIwRkJVMEpSYVVkSlFtZEJSV2RqU1doRFFWRkVlR2RDUldkVlNYRkRRVmxCUWtsR1EweHpaMGRCUWxGQlJtZENJaEVpQzJSUmR6UjNPVmRuV0dOUk1BQjRBU2dVUWhCamIyMXRaVzUwY3kxelpXTjBhVzl1IiwibiI6MjQ2MTM0Mn0", "hasMore": true, "fetchedAt": "2026-11-05T15:05:11.703Z" }, "meta": { "requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f", "creditsCharged": 1, "creditsRemaining": 4999, "cached": false }}
{
"error": {
"code": "BAD_REQUEST",
"message": "The request was invalid.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
YouTube
Video comments
Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video’s creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a repliesToken — pass it to /v1/youtube/video/comment/replies to get its replies. The response also gives the exact total number of comments. Pass the returned cursor back (with the same url) for the next page. A video with comments turned off returns no comments and commentsDisabled: true. Only publicly available data is returned.
GET
/
v1
/
youtube
/
video
/
comments
Video comments
curl --request GET \ --url https://api.scraperize.com/v1/youtube/video/comments \ --header 'x-api-key: <api-key>'
{ "data": { "video": { "id": "dQw4w9WgXcQ", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }, "order": "top", "totalCount": 2461342, "commentsDisabled": false, "comments": [ { "id": "Ugw10bSluCDSZMIxUSB4AaABAg", "parentId": null, "text": "Let’s put the meme aside, this is actually a banging song.", "links": [], "author": { "id": "UCHpvHTRSILoOFKWX5oFCYDA", "handle": "LK-ht7qz", "url": "https://www.youtube.com/@LK-ht7qz", "avatarUrl": "https://yt3.ggpht.com/RJnrz4JwDmHNgtFdnVdJ6FKLiuo59IuHkY6bvqaEJM0mxTSlq0GKQs_ItA-sJ8QMqps_lf9Lvgs=s88-c-k-c0x00ffffff-no-rj", "isVerified": false, "isCreator": false, "isArtist": false }, "publishedText": "6 years ago", "isEdited": false, "likeCount": 221000, "likeCountText": "221K", "replyCount": 620, "isPinned": false, "pinnedText": null, "isHearted": false, "heartedBy": null, "images": [], "repliesToken": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3MTBiU2x1Q0RTWk1JeFVTQjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3cxMGJTbHVDRFNaTUl4VVNCNEFhQUJBZw%3D%3D" }, { "id": "Ugxzbv_ZeZXNRcfwsSF4AaABAg", "parentId": null, "text": "Is everyone going to ignore the fact that Rick Astley looks like a twelve year old boy but has a uniquely deep voice?", "links": [], "author": { "id": "UCNLgzvqrGzFi5SEAbVkFchg", "handle": "candycake9531", "url": "https://www.youtube.com/@candycake9531", "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_mEO82VrM8XtyGrBUkJgbAYgpAmDpUZixd1QvK9kyA=s88-c-k-c0x00ffffff-no-rj", "isVerified": false, "isCreator": false, "isArtist": false }, "publishedText": "6 years ago", "isEdited": false, "likeCount": 293000, "likeCountText": "293K", "replyCount": 727, "isPinned": false, "pinnedText": null, "isHearted": false, "heartedBy": null, "images": [], "repliesToken": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZw%3D%3D" }, { "id": "UgwPwTibxdgqCHZxktd4AaABAg", "parentId": null, "text": "My algebra teacher said that this was a link to the test answers", "links": [], "author": { "id": "UCdi6tGxvFvTRGe-7dAn7m7w", "handle": "bdr8823", "url": "https://www.youtube.com/@bdr8823", "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj", "isVerified": false, "isCreator": false, "isArtist": false }, "publishedText": "7 years ago", "isEdited": false, "likeCount": 71000, "likeCountText": "71K", "replyCount": 672, "isPinned": false, "pinnedText": null, "isHearted": false, "heartedBy": null, "images": [], "repliesToken": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3UHdUaWJ4ZGdxQ0haeGt0ZDRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dQd1RpYnhkZ3FDSFp4a3RkNEFhQUJBZw%3D%3D" } ], "count": 20, "cursor": "eyJrIjoiZFF3NHc5V2dYY1EiLCJvIjoidG9wIiwiYyI6IkVnMFNDMlJSZHpSM09WZG5XR05SR0FZeV9nSUsxQUpuWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJHZEZTVEpHT0ZGblFWRlpRbmxMVEVGYWMzZGlUREl4UVMxMWNXOXVkMUpoZVVOeFlVdE9hbFJvVWtsRWMzSnlSRE5PVGtkdVRGQm5hR2hGY0RCMVNtMW1VbVJ5WDJWeFNVTlNNVTF0VUVWRFFXeEVOakJUY0ZoSmJIcGFOMHhNV0doV1ZsWnNNMGhJV1VsVlNuVkdlVFZGZFVOTVVUbGFZM1pIUlVOSGVrVXRXbWsyVDNGUU9WaG5XWFJaYWtZNVMyeE9XRE15V0ZGTFRVYzNRM2xwTkZvd1JGZEVRbmQzVDI4eVdtbGZjMWRUYnpSM1pXRTBia05TT1U1UlUzVlhNMGRVUW05QllVRmpWRFJSUmtKSlNFTkpWV2RGUVZWWlFWSkpSa05OUVdkSFFVRlRRbEZwU1VsQ1owRkZaMVZKYUhsQldVRkNTVVpEU1d0blIwRkJVMEpSYVVkSlFtZEJSV2RqU1doRFFWRkVlR2RDUldkVlNYRkRRVmxCUWtsR1EweHpaMGRCUWxGQlJtZENJaEVpQzJSUmR6UjNPVmRuV0dOUk1BQjRBU2dVUWhCamIyMXRaVzUwY3kxelpXTjBhVzl1IiwibiI6MjQ2MTM0Mn0", "hasMore": true, "fetchedAt": "2026-11-05T15:05:11.703Z" }, "meta": { "requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f", "creditsCharged": 1, "creditsRemaining": 4999, "cached": false }}
{
"error": {
"code": "BAD_REQUEST",
"message": "The request was invalid.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
Cost: 1 credit per successful request. Errors and cache hits (cache_max_age) are free.
Copy for AI assistant
Paste this into ChatGPT, Claude or your coding assistant to generate working code for this endpoint (use the copy button).
Prompt
I want to make an API call to /v1/youtube/video/comments. Here are the details:Endpoint: GET https://api.scraperize.com/v1/youtube/video/commentsDescription: Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video's creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a `repliesToken` — pass it to `/v1/youtube/video/comment/replies` to get its replies. The response also gives the exact total number of comments. Pass the returned `cursor` back (with the same `url`) for the next page. A video with comments turned off returns no comments and `commentsDisabled: true`. Only publicly available data is returned.Required Headers:- x-api-key: Your API keyParameters:- url (string) [required]: A YouTube video or Short URL — `youtube.com/watch?v=<id>`, `youtu.be/<id>`, `youtube.com/shorts/<id>`.- order (select): `top` (default) or `newest`. Ignored with a cursor — the cursor keeps its order.- cursor (string): The `cursor` from the previous page, to get the next one. Omit for the first page.- cache_max_age (select): Optional. Return a cached result if one this age or newer exists — served for **0 credits** with `meta.cached=true` and `meta.cachedAt`. Otherwise a fresh scrape runs (**1 credit**) and refreshes the cache. Omit to always scrape fresh.Example Response:{ "data": { "video": { "id": "dQw4w9WgXcQ", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }, "order": "top", "totalCount": 2461342, "commentsDisabled": false, "comments": [ { "id": "Ugw10bSluCDSZMIxUSB4AaABAg", "parentId": null, "text": "Let’s put the meme aside, this is actually a banging song.", "links": [], "author": { "id": "UCHpvHTRSILoOFKWX5oFCYDA", "handle": "LK-ht7qz", "url": "https://www.youtube.com/@LK-ht7qz", "avatarUrl": "https://yt3.ggpht.com/RJnrz4JwDmHNgtFdnVdJ6FKLiuo59IuHkY6bvqaEJM0mxTSlq0GKQs_ItA-sJ8QMqps_lf9Lvgs=s88-c-k-c0x00ffffff-no-rj", "isVerified": false, "isCreator": false, "isArtist": false }, "publishedText": "6 years ago", "isEdited": false, "likeCount": 221000, "likeCountText": "221K", "replyCount": 620, "isPinned": false, "pinnedText": null, "isHearted": false, "heartedBy": null, "images": [], "repliesToken": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3MTBiU2x1Q0RTWk1JeFVTQjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMt…" } ], "count": 20, "cursor": "eyJrIjoiZFF3NHc5V2dYY1EiLCJvIjoidG9wIiwiYyI6IkVnMFNDMlJSZHpSM09WZG5XR05SR0FZeV9nSUsxQUpuWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJH…", "hasMore": true, "fetchedAt": "2026-11-05T15:05:11.703Z" }, "meta": { "requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f", "creditsCharged": 1, "creditsRemaining": 4999, "cached": false }}Please help me write code in my preferred programming language to make this API call and handle the response appropriately. Include error handling and best practices.
Optional. Return a cached result if one this age or newer exists — served for 0 credits with meta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.
Available options:
1d,
3d,
7d,
14d,
30d
Response
One page of the video's comments (none when comments are off).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Scraperize","description":"Extract public data from social media platforms as clean JSON.","colors":{"primary":"#2f76ef","light":"#6099f4","dark":"#205ecd"},"logo":{"light":"https://mintcdn.com/alakowe-technology/axLUKEL7Qhhi3iwd/images/logo.svg?fit=max\u0026auto=format\u0026n=axLUKEL7Qhhi3iwd\u0026q=85\u0026s=ad1c0e75cd9b11245dbbb91fed19d29a","dark":"https://mintcdn.com/alakowe-technology/axLUKEL7Qhhi3iwd/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=axLUKEL7Qhhi3iwd\u0026q=85\u0026s=b948c7b148e25b9f5d24ef25553facba"},"favicon":"https://mintcdn.com/alakowe-technology/axLUKEL7Qhhi3iwd/images/favicon.svg?fit=max\u0026auto=format\u0026n=axLUKEL7Qhhi3iwd\u0026q=85\u0026s=433104280d9aff50df4b21078951d6ee","api":{"playground":{"proxy":false}},"navbar":{"links":[{"href":"https://app.scraperize.com","label":"Dashboard"}],"primary":{"type":"button","label":"Get your API key","href":"https://app.scraperize.com"}},"footer":{"socials":{"website":"https://scraperize.com","x":"https://x.com/scraperize"}},"seo":{"indexing":"navigable"},"styling":{"codeblocks":"system","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity",{"title":"Copy MCP server URL","description":"Get https://api.scraperize.com/mcp and setup steps","icon":"plug","href":"https://docs.scraperize.com/integrations/mcp"},{"title":"Connect to Cursor","description":"Install the Scraperize MCP server in Cursor","icon":"/images/clients/cursor.svg","href":"cursor://anysphere.cursor-deeplink/mcp/install?name=scraperize\u0026config=eyJ1cmwiOiJodHRwczovL2FwaS5zY3JhcGVyaXplLmNvbS9tY3AifQ=="},{"title":"Connect to VS Code","description":"Install the Scraperize MCP server in VS Code","icon":"/images/clients/vscode.svg","href":"https://vscode.dev/redirect/mcp/install?name=scraperize\u0026config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.scraperize.com%2Fmcp%22%7D"},{"title":"View OpenAPI JSON","description":"Open the endpoint OpenAPI spec","icon":"brackets-curly","href":"https://docs.scraperize.com/api-reference/openapi.json"}],"display":"header"},"markdown":{"schema":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"alakowe-technology","hasAudioNarration":false,"actualSubdomain":"alakowe-technology","customDomains":["docs.scraperize.com"],"gitSource":{"type":"github","owner":"samuelcody","repo":"scraperize-web","deployBranch":"master","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6aef4515ec2091b7c464d720","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":116},{"language":"default","tag":"TikTok","count":19},{"language":"default","tag":"YouTube","count":17},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"Instagram","count":11},{"language":"default","tag":"Facebook","count":10},{"language":"default","tag":"Lagos Life","count":9},{"language":"default","tag":"Reddit","count":7},{"language":"default","tag":"Core concepts","count":5},{"language":"default","tag":"LinkedIn","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/youtube/video-comments","slug":"/api-reference/youtube/video-comments","pageMetadata":{"title":"Video comments","description":"Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video's creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a `repliesToken` — pass it to `/v1/youtube/video/comment/replies` to get its replies. The response also gives the exact total number of comments. Pass the returned `cursor` back (with the same `url`) for the next page. A video with comments turned off returns no comments and `commentsDisabled: true`. Only publicly available data is returned.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/video/comments","href":"/api-reference/youtube/video-comments","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video’s creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a \", _jsx(_components.code, {\n children: \"repliesToken\"\n }), \" — pass it to \", _jsx(_components.code, {\n children: \"/v1/youtube/video/comment/replies\"\n }), \" to get its replies. The response also gives the exact total number of comments. Pass the returned \", _jsx(_components.code, {\n children: \"cursor\"\n }), \" back (with the same \", _jsx(_components.code, {\n children: \"url\"\n }), \") for the next page. A video with comments turned off returns no comments and \", _jsx(_components.code, {\n children: \"commentsDisabled: true\"\n }), \". Only publicly available data is returned.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Info}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cost: 1 credit`}),` per successful request. Errors and cache hits (`,_jsx(_components.code,{children:`cache_max_age`}),`) are free.`]})}),`\n`,_jsxs(Accordion,{title:`Copy for AI assistant`,icon:`sparkles`,id:`copy-for-ai-assistant`,children:[_jsx(_components.p,{children:`Paste this into ChatGPT, Claude or your coding assistant to generate working code for this endpoint (use the copy button).`}),_jsx(CodeBlock,{filename:`Prompt`,numberOfLines:`67`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`67`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`I want to make an API call to /v1/youtube/video/comments. Here are the details:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Endpoint: GET https://api.scraperize.com/v1/youtube/video/comments`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"Description: Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video's creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a `repliesToken` — pass it to `/v1/youtube/video/comment/replies` to get its replies. The response also gives the exact total number of comments. Pass the returned `cursor` back (with the same `url`) for the next page. A video with comments turned off returns no comments and `commentsDisabled: true`. Only publicly available data is returned.\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Required Headers:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- x-api-key: Your API key`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Parameters:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"- url (string) [required]: A YouTube video or Short URL — `youtube.com/watch?v=\u003cid>`, `youtu.be/\u003cid>`, `youtube.com/shorts/\u003cid>`.\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"- order (select): `top` (default) or `newest`. Ignored with a cursor — the cursor keeps its order.\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"- cursor (string): The `cursor` from the previous page, to get the next one. Omit for the first page.\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"- cache_max_age (select): Optional. Return a cached result if one this age or newer exists — served for **0 credits** with `meta.cached=true` and `meta.cachedAt`. Otherwise a fresh scrape runs (**1 credit**) and refreshes the cache. Omit to always scrape fresh.\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Example Response:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"data\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"video\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"id\": \"dQw4w9WgXcQ\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"url\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"order\": \"top\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"totalCount\": 2461342,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"commentsDisabled\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"comments\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"id\": \"Ugw10bSluCDSZMIxUSB4AaABAg\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"parentId\": null,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"text\": \"Let’s put the meme aside, this is actually a banging song.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"links\": [],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"author\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"id\": \"UCHpvHTRSILoOFKWX5oFCYDA\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"handle\": \"LK-ht7qz\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"url\": \"https://www.youtube.com/@LK-ht7qz\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"avatarUrl\": \"https://yt3.ggpht.com/RJnrz4JwDmHNgtFdnVdJ6FKLiuo59IuHkY6bvqaEJM0mxTSlq0GKQs_ItA-sJ8QMqps_lf9Lvgs=s88-c-k-c0x00ffffff-no-rj\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"isVerified\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"isCreator\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"isArtist\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"publishedText\": \"6 years ago\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"isEdited\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"likeCount\": 221000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"likeCountText\": \"221K\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"replyCount\": 620,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"isPinned\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"pinnedText\": null,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"isHearted\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"heartedBy\": null,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"images\": [],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"repliesToken\": \"Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3MTBiU2x1Q0RTWk1JeFVTQjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMt…\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"count\": 20,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"cursor\": \"eyJrIjoiZFF3NHc5V2dYY1EiLCJvIjoidG9wIiwiYyI6IkVnMFNDMlJSZHpSM09WZG5XR05SR0FZeV9nSUsxQUpuWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJH…\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"hasMore\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"fetchedAt\": \"2026-11-05T15:05:11.703Z\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"meta\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"requestId\": \"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"creditsCharged\": 1,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"creditsRemaining\": 4999,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"cached\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Please help me write code in my preferred programming language to make this API call and handle the response appropriately. Include error handling and best practices.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Video comments","description":"Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video's creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a `repliesToken` — pass it to `/v1/youtube/video/comment/replies` to get its replies. The response also gives the exact total number of comments. Pass the returned `cursor` back (with the same `url`) for the next page. A video with comments turned off returns no comments and `commentsDisabled: true`. Only publicly available data is returned.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/video/comments","href":"/api-reference/youtube/video-comments","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["YouTube"],"summary":"Video comments","description":"Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video's creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a `repliesToken` — pass it to `/v1/youtube/video/comment/replies` to get its replies. The response also gives the exact total number of comments. Pass the returned `cursor` back (with the same `url`) for the next page. A video with comments turned off returns no comments and `commentsDisabled: true`. Only publicly available data is returned.","parameters":["cdff37fe-71a5-4751-b81e-6fa2e65d13d2","b8981f22-eb60-497d-a663-b1de0e26595a","47eeddc6-a957-4a0a-8ef0-df4ac047770a","a460536e-7de2-4ee6-9e2f-b13225719b0b"],"responses":{"200":"9e7d00ae-d84e-45c5-a3c3-5b84f0f19ea5","400":"77fe17d4-1d79-4108-81fc-e0b2e2283e6d","401":"0c263006-9281-4b48-9d29-150c0549edab","402":"b85796d7-5323-4a2c-b5ee-378032b10726","404":"754aa721-dd43-475d-b281-2d4eaf5b2372","422":"b34b9801-e598-4758-97c7-3796d4d3d2ff","429":"43d211a1-b0b1-4cd6-8399-a103199fad0d","503":"b343380d-365c-47e7-a49b-b466450a75eb"},"x-mint":{"content":"\u003cInfo>\n**Cost: 1 credit** per successful request. Errors and cache hits (`cache_max_age`) are free.\n\u003c/Info>\n\n\u003cAccordion title=\"Copy for AI assistant\" icon=\"sparkles\">\nPaste this into ChatGPT, Claude or your coding assistant to generate working code for this endpoint (use the copy button).\n\n````text Prompt\nI want to make an API call to /v1/youtube/video/comments. Here are the details:\n\nEndpoint: GET https://api.scraperize.com/v1/youtube/video/comments\nDescription: Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video's creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a `repliesToken` — pass it to `/v1/youtube/video/comment/replies` to get its replies. The response also gives the exact total number of comments. Pass the returned `cursor` back (with the same `url`) for the next page. A video with comments turned off returns no comments and `commentsDisabled: true`. Only publicly available data is returned.\n\nRequired Headers:\n- x-api-key: Your API key\n\nParameters:\n- url (string) [required]: A YouTube video or Short URL — `youtube.com/watch?v=\u003cid>`, `youtu.be/\u003cid>`, `youtube.com/shorts/\u003cid>`.\n- order (select): `top` (default) or `newest`. Ignored with a cursor — the cursor keeps its order.\n- cursor (string): The `cursor` from the previous page, to get the next one. Omit for the first page.\n- cache_max_age (select): Optional. Return a cached result if one this age or newer exists — served for **0 credits** with `meta.cached=true` and `meta.cachedAt`. Otherwise a fresh scrape runs (**1 credit**) and refreshes the cache. Omit to always scrape fresh.\n\nExample Response:\n{\n \"data\": {\n \"video\": {\n \"id\": \"dQw4w9WgXcQ\",\n \"url\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"\n },\n \"order\": \"top\",\n \"totalCount\": 2461342,\n \"commentsDisabled\": false,\n \"comments\": [\n {\n \"id\": \"Ugw10bSluCDSZMIxUSB4AaABAg\",\n \"parentId\": null,\n \"text\": \"Let’s put the meme aside, this is actually a banging song.\",\n \"links\": [],\n \"author\": {\n \"id\": \"UCHpvHTRSILoOFKWX5oFCYDA\",\n \"handle\": \"LK-ht7qz\",\n \"url\": \"https://www.youtube.com/@LK-ht7qz\",\n \"avatarUrl\": \"https://yt3.ggpht.com/RJnrz4JwDmHNgtFdnVdJ6FKLiuo59IuHkY6bvqaEJM0mxTSlq0GKQs_ItA-sJ8QMqps_lf9Lvgs=s88-c-k-c0x00ffffff-no-rj\",\n \"isVerified\": false,\n \"isCreator\": false,\n \"isArtist\": false\n },\n \"publishedText\": \"6 years ago\",\n \"isEdited\": false,\n \"likeCount\": 221000,\n \"likeCountText\": \"221K\",\n \"replyCount\": 620,\n \"isPinned\": false,\n \"pinnedText\": null,\n \"isHearted\": false,\n \"heartedBy\": null,\n \"images\": [],\n \"repliesToken\": \"Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3MTBiU2x1Q0RTWk1JeFVTQjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMt…\"\n }\n ],\n \"count\": 20,\n \"cursor\": \"eyJrIjoiZFF3NHc5V2dYY1EiLCJvIjoidG9wIiwiYyI6IkVnMFNDMlJSZHpSM09WZG5XR05SR0FZeV9nSUsxQUpuWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJH…\",\n \"hasMore\": true,\n \"fetchedAt\": \"2026-11-05T15:05:11.703Z\"\n },\n \"meta\": {\n \"requestId\": \"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f\",\n \"creditsCharged\": 1,\n \"creditsRemaining\": 4999,\n \"cached\": false\n }\n}\n\nPlease help me write code in my preferred programming language to make this API call and handle the response appropriately. Include error handling and best practices.\n````\n\u003c/Accordion>"},"x-credits":1,"method":"get","type":"path","servers":["87174df2-499b-47ec-9f0f-d417df04ca5b"],"security":["dc513ba9-30ee-4c24-8759-e8b79dc35b73"],"path":"/v1/youtube/video/comments","baseUrlOptions":["https://api.scraperize.com"],"title":"Video comments","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"cdff37fe-71a5-4751-b81e-6fa2e65d13d2":{"name":"url","in":"query","required":true,"description":"A YouTube video or Short URL — `youtube.com/watch?v=\u003cid>`, `youtu.be/\u003cid>`, `youtube.com/shorts/\u003cid>`.","schema":{"type":"string","isRequired":true,"description":"A YouTube video or Short URL — `youtube.com/watch?v=\u003cid>`, `youtu.be/\u003cid>`, `youtube.com/shorts/\u003cid>`.","uniqueKey":"","typeLabel":"string"},"example":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"},"b8981f22-eb60-497d-a663-b1de0e26595a":{"name":"order","in":"query","required":false,"description":"`top` (default) or `newest`. Ignored with a cursor — the cursor keeps its order.","schema":{"type":"string","enum":["top","newest"],"isRequired":false,"description":"`top` (default) or `newest`. Ignored with a cursor — the cursor keeps its order.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"47eeddc6-a957-4a0a-8ef0-df4ac047770a":{"name":"cursor","in":"query","required":false,"description":"The `cursor` from the previous page, to get the next one. Omit for the first page.","schema":{"type":"string","isRequired":false,"description":"The `cursor` from the previous page, to get the next one. Omit for the first page.","uniqueKey":"","typeLabel":"string"}},"a460536e-7de2-4ee6-9e2f-b13225719b0b":{"name":"cache_max_age","in":"query","required":false,"description":"Optional. Return a cached result if one this age or newer exists — served for **0 credits** with `meta.cached=true` and `meta.cachedAt`. Otherwise a fresh scrape runs (**1 credit**) and refreshes the cache. Omit to always scrape fresh.","schema":{"type":"string","enum":["1d","3d","7d","14d","30d"],"isRequired":false,"description":"Optional. Return a cached result if one this age or newer exists — served for **0 credits** with `meta.cached=true` and `meta.cachedAt`. Otherwise a fresh scrape runs (**1 credit**) and refreshes the cache. Omit to always scrape fresh.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"example":"7d"}},"responses":{"9e7d00ae-d84e-45c5-a3c3-5b84f0f19ea5":{"description":"One page of the video's comments (none when comments are off).","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"video":{"type":"object","uniqueKey":"data.video","typeLabel":"object"},"order":{"type":"string","uniqueKey":"data.order","typeLabel":"string"},"totalCount":{"oneOf":[{"type":"integer","uniqueKey":"data.totalCount.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.totalCount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.totalCount","typeLabel":"integer | null"},"commentsDisabled":{"type":"boolean","uniqueKey":"data.commentsDisabled","typeLabel":"boolean"},"comments":{"type":"array","items":{"type":"object","uniqueKey":"data.comments.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.comments","typeLabel":"object[]"},"count":{"type":"integer","uniqueKey":"data.count","typeLabel":"integer"},"cursor":{"oneOf":[{"type":"string","uniqueKey":"data.cursor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.cursor.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.cursor","typeLabel":"string | null"},"hasMore":{"type":"boolean","uniqueKey":"data.hasMore","typeLabel":"boolean"},"fetchedAt":{"type":"string","format":"date-time","uniqueKey":"data.fetchedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"meta":{"type":"object","description":"requestId + credit/caching metadata (creditsCharged, creditsRemaining, cached, cachedAt).","isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["data","meta"],"uniqueKey":"","typeLabel":"object"},"example":{"data":{"video":{"id":"dQw4w9WgXcQ","url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"},"order":"top","totalCount":2461342,"commentsDisabled":false,"comments":[{"id":"Ugw10bSluCDSZMIxUSB4AaABAg","parentId":null,"text":"Let’s put the meme aside, this is actually a banging song.","links":[],"author":{"id":"UCHpvHTRSILoOFKWX5oFCYDA","handle":"LK-ht7qz","url":"https://www.youtube.com/@LK-ht7qz","avatarUrl":"https://yt3.ggpht.com/RJnrz4JwDmHNgtFdnVdJ6FKLiuo59IuHkY6bvqaEJM0mxTSlq0GKQs_ItA-sJ8QMqps_lf9Lvgs=s88-c-k-c0x00ffffff-no-rj","isVerified":false,"isCreator":false,"isArtist":false},"publishedText":"6 years ago","isEdited":false,"likeCount":221000,"likeCountText":"221K","replyCount":620,"isPinned":false,"pinnedText":null,"isHearted":false,"heartedBy":null,"images":[],"repliesToken":"Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3MTBiU2x1Q0RTWk1JeFVTQjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3cxMGJTbHVDRFNaTUl4VVNCNEFhQUJBZw%3D%3D"},{"id":"Ugxzbv_ZeZXNRcfwsSF4AaABAg","parentId":null,"text":"Is everyone going to ignore the fact that Rick Astley looks like a twelve year old boy but has a uniquely deep voice?","links":[],"author":{"id":"UCNLgzvqrGzFi5SEAbVkFchg","handle":"candycake9531","url":"https://www.youtube.com/@candycake9531","avatarUrl":"https://yt3.ggpht.com/ytc/AIdro_mEO82VrM8XtyGrBUkJgbAYgpAmDpUZixd1QvK9kyA=s88-c-k-c0x00ffffff-no-rj","isVerified":false,"isCreator":false,"isArtist":false},"publishedText":"6 years ago","isEdited":false,"likeCount":293000,"likeCountText":"293K","replyCount":727,"isPinned":false,"pinnedText":null,"isHearted":false,"heartedBy":null,"images":[],"repliesToken":"Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZw%3D%3D"},{"id":"UgwPwTibxdgqCHZxktd4AaABAg","parentId":null,"text":"My algebra teacher said that this was a link to the test answers","links":[],"author":{"id":"UCdi6tGxvFvTRGe-7dAn7m7w","handle":"bdr8823","url":"https://www.youtube.com/@bdr8823","avatarUrl":"https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj","isVerified":false,"isCreator":false,"isArtist":false},"publishedText":"7 years ago","isEdited":false,"likeCount":71000,"likeCountText":"71K","replyCount":672,"isPinned":false,"pinnedText":null,"isHearted":false,"heartedBy":null,"images":[],"repliesToken":"Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3UHdUaWJ4ZGdxQ0haeGt0ZDRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dQd1RpYnhkZ3FDSFp4a3RkNEFhQUJBZw%3D%3D"}],"count":20,"cursor":"eyJrIjoiZFF3NHc5V2dYY1EiLCJvIjoidG9wIiwiYyI6IkVnMFNDMlJSZHpSM09WZG5XR05SR0FZeV9nSUsxQUpuWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJHZEZTVEpHT0ZGblFWRlpRbmxMVEVGYWMzZGlUREl4UVMxMWNXOXVkMUpoZVVOeFlVdE9hbFJvVWtsRWMzSnlSRE5PVGtkdVRGQm5hR2hGY0RCMVNtMW1VbVJ5WDJWeFNVTlNNVTF0VUVWRFFXeEVOakJUY0ZoSmJIcGFOMHhNV0doV1ZsWnNNMGhJV1VsVlNuVkdlVFZGZFVOTVVUbGFZM1pIUlVOSGVrVXRXbWsyVDNGUU9WaG5XWFJaYWtZNVMyeE9XRE15V0ZGTFRVYzNRM2xwTkZvd1JGZEVRbmQzVDI4eVdtbGZjMWRUYnpSM1pXRTBia05TT1U1UlUzVlhNMGRVUW05QllVRmpWRFJSUmtKSlNFTkpWV2RGUVZWWlFWSkpSa05OUVdkSFFVRlRRbEZwU1VsQ1owRkZaMVZKYUhsQldVRkNTVVpEU1d0blIwRkJVMEpSYVVkSlFtZEJSV2RqU1doRFFWRkVlR2RDUldkVlNYRkRRVmxCUWtsR1EweHpaMGRCUWxGQlJtZENJaEVpQzJSUmR6UjNPVmRuV0dOUk1BQjRBU2dVUWhCamIyMXRaVzUwY3kxelpXTjBhVzl1IiwibiI6MjQ2MTM0Mn0","hasMore":true,"fetchedAt":"2026-11-05T15:05:11.703Z"},"meta":{"requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","creditsCharged":1,"creditsRemaining":4999,"cached":false}},"examples":{"Example":{"title":"Example","value":{"data":{"video":{"id":"dQw4w9WgXcQ","url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"},"order":"top","totalCount":2461342,"commentsDisabled":false,"comments":[{"id":"Ugw10bSluCDSZMIxUSB4AaABAg","parentId":null,"text":"Let’s put the meme aside, this is actually a banging song.","links":[],"author":{"id":"UCHpvHTRSILoOFKWX5oFCYDA","handle":"LK-ht7qz","url":"https://www.youtube.com/@LK-ht7qz","avatarUrl":"https://yt3.ggpht.com/RJnrz4JwDmHNgtFdnVdJ6FKLiuo59IuHkY6bvqaEJM0mxTSlq0GKQs_ItA-sJ8QMqps_lf9Lvgs=s88-c-k-c0x00ffffff-no-rj","isVerified":false,"isCreator":false,"isArtist":false},"publishedText":"6 years ago","isEdited":false,"likeCount":221000,"likeCountText":"221K","replyCount":620,"isPinned":false,"pinnedText":null,"isHearted":false,"heartedBy":null,"images":[],"repliesToken":"Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3MTBiU2x1Q0RTWk1JeFVTQjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3cxMGJTbHVDRFNaTUl4VVNCNEFhQUJBZw%3D%3D"},{"id":"Ugxzbv_ZeZXNRcfwsSF4AaABAg","parentId":null,"text":"Is everyone going to ignore the fact that Rick Astley looks like a twelve year old boy but has a uniquely deep voice?","links":[],"author":{"id":"UCNLgzvqrGzFi5SEAbVkFchg","handle":"candycake9531","url":"https://www.youtube.com/@candycake9531","avatarUrl":"https://yt3.ggpht.com/ytc/AIdro_mEO82VrM8XtyGrBUkJgbAYgpAmDpUZixd1QvK9kyA=s88-c-k-c0x00ffffff-no-rj","isVerified":false,"isCreator":false,"isArtist":false},"publishedText":"6 years ago","isEdited":false,"likeCount":293000,"likeCountText":"293K","replyCount":727,"isPinned":false,"pinnedText":null,"isHearted":false,"heartedBy":null,"images":[],"repliesToken":"Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZw%3D%3D"},{"id":"UgwPwTibxdgqCHZxktd4AaABAg","parentId":null,"text":"My algebra teacher said that this was a link to the test answers","links":[],"author":{"id":"UCdi6tGxvFvTRGe-7dAn7m7w","handle":"bdr8823","url":"https://www.youtube.com/@bdr8823","avatarUrl":"https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj","isVerified":false,"isCreator":false,"isArtist":false},"publishedText":"7 years ago","isEdited":false,"likeCount":71000,"likeCountText":"71K","replyCount":672,"isPinned":false,"pinnedText":null,"isHearted":false,"heartedBy":null,"images":[],"repliesToken":"Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3UHdUaWJ4ZGdxQ0haeGt0ZDRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dQd1RpYnhkZ3FDSFp4a3RkNEFhQUJBZw%3D%3D"}],"count":20,"cursor":"eyJrIjoiZFF3NHc5V2dYY1EiLCJvIjoidG9wIiwiYyI6IkVnMFNDMlJSZHpSM09WZG5XR05SR0FZeV9nSUsxQUpuWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJHZEZTVEpHT0ZGblFWRlpRbmxMVEVGYWMzZGlUREl4UVMxMWNXOXVkMUpoZVVOeFlVdE9hbFJvVWtsRWMzSnlSRE5PVGtkdVRGQm5hR2hGY0RCMVNtMW1VbVJ5WDJWeFNVTlNNVTF0VUVWRFFXeEVOakJUY0ZoSmJIcGFOMHhNV0doV1ZsWnNNMGhJV1VsVlNuVkdlVFZGZFVOTVVUbGFZM1pIUlVOSGVrVXRXbWsyVDNGUU9WaG5XWFJaYWtZNVMyeE9XRE15V0ZGTFRVYzNRM2xwTkZvd1JGZEVRbmQzVDI4eVdtbGZjMWRUYnpSM1pXRTBia05TT1U1UlUzVlhNMGRVUW05QllVRmpWRFJSUmtKSlNFTkpWV2RGUVZWWlFWSkpSa05OUVdkSFFVRlRRbEZwU1VsQ1owRkZaMVZKYUhsQldVRkNTVVpEU1d0blIwRkJVMEpSYVVkSlFtZEJSV2RqU1doRFFWRkVlR2RDUldkVlNYRkRRVmxCUWtsR1EweHpaMGRCUWxGQlJtZENJaEVpQzJSUmR6UjNPVmRuV0dOUk1BQjRBU2dVUWhCamIyMXRaVzUwY3kxelpXTjBhVzl1IiwibiI6MjQ2MTM0Mn0","hasMore":true,"fetchedAt":"2026-11-05T15:05:11.703Z"},"meta":{"requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","creditsCharged":1,"creditsRemaining":4999,"cached":false}}}},"exampleType":"examples"}},"exampleType":"examples"},"77fe17d4-1d79-4108-81fc-e0b2e2283e6d":{"description":"Invalid or expired cursor (or one for another video).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"The requested content was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","example":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"description":"Present on validation errors.","uniqueKey":"error.details","typeLabel":"object[]"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"BAD_REQUEST","message":"The request was invalid.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"The request was invalid.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}}}},"exampleType":"examples"}},"exampleType":"examples"},"0c263006-9281-4b48-9d29-150c0549edab":{"description":"Missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"The requested content was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","example":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"description":"Present on validation errors.","uniqueKey":"error.details","typeLabel":"object[]"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"UNAUTHORIZED","message":"API key required — pass it in the `x-api-key` header.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"API key required — pass it in the `x-api-key` header.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b85796d7-5323-4a2c-b5ee-378032b10726":{"description":"Not enough credits for this request.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"The requested content was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","example":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"description":"Present on validation errors.","uniqueKey":"error.details","typeLabel":"object[]"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"INSUFFICIENT_CREDITS","message":"This request costs 1 credit, but your balance is 0. Top up to continue.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INSUFFICIENT_CREDITS","message":"This request costs 1 credit, but your balance is 0. Top up to continue.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}}}},"exampleType":"examples"}},"exampleType":"examples"},"754aa721-dd43-475d-b281-2d4eaf5b2372":{"description":"No YouTube video found (it may not exist, be private or have been removed).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"The requested content was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","example":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"description":"Present on validation errors.","uniqueKey":"error.details","typeLabel":"object[]"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"NOT_FOUND","message":"The requested content was not found (it may not exist, be deleted, or be private).","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"The requested content was not found (it may not exist, be deleted, or be private).","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b34b9801-e598-4758-97c7-3796d4d3d2ff":{"description":"Invalid query parameters (url is required; order is `top` or `newest`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"The requested content was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","example":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"description":"Present on validation errors.","uniqueKey":"error.details","typeLabel":"object[]"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"VALIDATION_ERROR","message":"Request validation failed","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","details":[{"path":"url","message":"url is required"}]}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"Request validation failed","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","details":[{"path":"url","message":"url is required"}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"43d211a1-b0b1-4cd6-8399-a103199fad0d":{"description":"Over the per-minute rate limit — honour `Retry-After`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"The requested content was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","example":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"description":"Present on validation errors.","uniqueKey":"error.details","typeLabel":"object[]"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"RATE_LIMITED","message":"Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"RATE_LIMITED","message":"Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b343380d-365c-47e7-a49b-b466450a75eb":{"description":"Temporarily unavailable — retry after `Retry-After`. `error.code` tells you why: `UPSTREAM_BLOCKED` (the source blocked this request), `EXTRACTION_FAILED` (the source returned unexpected data), `PLATFORM_UNAVAILABLE` (the source is down), or `SERVICE_UNAVAILABLE` (we are at capacity).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"The requested content was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","example":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"description":"Present on validation errors.","uniqueKey":"error.details","typeLabel":"object[]"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"UPSTREAM_BLOCKED","message":"The source is temporarily unavailable. Please try again shortly.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UPSTREAM_BLOCKED","message":"The source is temporarily unavailable. Please try again shortly.","requestId":"req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"dc513ba9-30ee-4c24-8759-e8b79dc35b73":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your API key. Send it in the `x-api-key` header (or `Authorization: Bearer \u003ckey>`). Create and manage keys from your dashboard.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"87174df2-499b-47ec-9f0f-d417df04ca5b":{"url":"https://api.scraperize.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your API key. Send it in the `x-api-key` header (or `Authorization: Bearer \u003ckey>`). Create and manage keys from your dashboard.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Your API key. Send it in the `x-api-key` header (or `Authorization: Bearer \u003ckey>`). Create and manage keys from your dashboard.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"alakowe-technology","siteName":"Scraperize","title":"Video comments - Scraperize","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-07T15:34:57.789Z","originalFileLocation":"api-reference/youtube/video-comments.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video\u0026#x27;s creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a repliesToken — pass it to /v1/youtube/video/comment/replies to get its replies. The response also gives the exact total number of comments. Pass the returned cursor back (with the same url) for the next page. A video with comments turned off returns no comments and commentsDisabled: true. Only publicly available data is returned.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Scraperize\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Video comments - Scraperize\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video\u0026#x27;s creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a repliesToken — pass it to /v1/youtube/video/comment/replies to get its replies. The response also gives the exact total number of comments. Pass the returned cursor back (with the same url) for the next page. A video with comments turned off returns no comments and commentsDisabled: true. Only publicly available data is returned.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Scraperize\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.scraperize.com/api-reference/youtube/video-comments\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://alakowe-technology.mintlify.site/_mintlify/api/og/v2?division=YouTube\u0026amp;title=Video+comments\u0026amp;description=Fetches+the+comments+on+a+YouTube+video+or+Short%2C+20+per+page%2C+by+top+comments+or+newest+first.+Each+comment+has+its+id%2C+text+and+the+links+in+it%2C+its+author+%28c\u0026amp;theme=1bf3657ca3b181fb6ed2ab26\u0026amp;signature=3dadce84546917621f84c7b1f1d44a1ad74041cbf25004f294491d92017a78cb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Video comments - Scraperize\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video\u0026#x27;s creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a repliesToken — pass it to /v1/youtube/video/comment/replies to get its replies. The response also gives the exact total number of comments. Pass the returned cursor back (with the same url) for the next page. A video with comments turned off returns no comments and commentsDisabled: true. Only publicly available data is returned.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://alakowe-technology.mintlify.site/_mintlify/api/og/v2?division=YouTube\u0026amp;title=Video+comments\u0026amp;description=Fetches+the+comments+on+a+YouTube+video+or+Short%2C+20+per+page%2C+by+top+comments+or+newest+first.+Each+comment+has+its+id%2C+text+and+the+links+in+it%2C+its+author+%28c\u0026amp;theme=1bf3657ca3b181fb6ed2ab26\u0026amp;signature=3dadce84546917621f84c7b1f1d44a1ad74041cbf25004f294491d92017a78cb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/alakowe-technology/nY6MCikimCWxyIud/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Scraperize\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2f76ef\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.scraperize.com/api-reference/youtube/video-comments\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/youtube/video-comments.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.scraperize.com/#organization\",\"name\":\"Scraperize\",\"url\":\"https://docs.scraperize.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/alakowe-technology/axLUKEL7Qhhi3iwd/images/logo.svg?fit=max\u0026auto=format\u0026n=axLUKEL7Qhhi3iwd\u0026q=85\u0026s=ad1c0e75cd9b11245dbbb91fed19d29a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.scraperize.com#website\",\"name\":\"Scraperize\",\"url\":\"https://docs.scraperize.com\",\"publisher\":{\"@id\":\"https://docs.scraperize.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.scraperize.com/api-reference/youtube/video-comments#webpage\",\"url\":\"https://docs.scraperize.com/api-reference/youtube/video-comments\",\"name\":\"Video comments\",\"description\":\"Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video's creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a repliesToken — pass it to /v1/youtube/video/comment/replies to get its replies. The response also gives the exact total number of comments. Pass the returned cursor back (with the same url) for the next page. A video with comments turned off returns no comments and commentsDisabled: true. Only publicly available data is returned.\",\"dateModified\":\"2026-11-07T15:34:57.789Z\",\"isPartOf\":{\"@id\":\"https://docs.scraperize.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.scraperize.com/api-reference/youtube/video-comments#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.scraperize.com/api-reference/youtube/video-comments#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"YouTube\",\"item\":\"https://docs.scraperize.com/api-reference/youtube/channel\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Video comments\",\"item\":\"https://docs.scraperize.com/api-reference/youtube/video-comments\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.scraperize.com/api-reference/youtube/video-comments#apireference\",\"headline\":\"Video comments\",\"name\":\"Video comments\",\"description\":\"Fetches the comments on a YouTube video or Short, 20 per page, by top comments or newest first. Each comment has its id, text and the links in it, its author (channel id, handle, avatar, verified, whether it is the video's creator), when it was posted and whether it was edited, its likes and reply count (rounded, as YouTube shows them), whether it is pinned or hearted by the creator, any attached image, and a repliesToken — pass it to /v1/youtube/video/comment/replies to get its replies. The response also gives the exact total number of comments. Pass the returned cursor back (with the same url) for the next page. A video with comments turned off returns no comments and commentsDisabled: true. Only publicly available data is returned.\",\"url\":\"https://docs.scraperize.com/api-reference/youtube/video-comments\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scraperize.com/api-reference/youtube/video-comments#webpage\"},\"dateModified\":\"2026-11-07T15:34:57.789Z\",\"publisher\":{\"@id\":\"https://docs.scraperize.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.scraperize.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Scraperize\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Scraperize","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Twitter","pages":[{"title":"Tweet","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/twitter/tweet","href":"/api-reference/twitter/tweet"},{"title":"User tweets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/twitter/user-tweets","href":"/api-reference/twitter/user-tweets"},{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/twitter/profile","href":"/api-reference/twitter/profile"},{"title":"Community","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/twitter/community","href":"/api-reference/twitter/community"},{"title":"Community tweets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/twitter/community/tweets","href":"/api-reference/twitter/community-tweets"}]},{"group":"Facebook","pages":[{"title":"Post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/post","href":"/api-reference/facebook/post"},{"title":"Profile photos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/profile/photos","href":"/api-reference/facebook/profile-photos"},{"title":"Profile reels","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/profile/reels","href":"/api-reference/facebook/profile-reels"},{"title":"Profile posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/profile/posts","href":"/api-reference/facebook/profile-posts"},{"title":"Profile events","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/profile/events","href":"/api-reference/facebook/profile-events"},{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/profile","href":"/api-reference/facebook/profile"},{"title":"Post comments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/post/comments","href":"/api-reference/facebook/post-comments"},{"title":"Comment replies","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/post/comment/replies","href":"/api-reference/facebook/comment-replies"},{"title":"Group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/group","href":"/api-reference/facebook/group"},{"title":"Group posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/facebook/group/posts","href":"/api-reference/facebook/group-posts"}]},{"group":"Linkme","pages":[{"title":"Linkme profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/linkme/profile","href":"/api-reference/linkme/linkme-profile"}]},{"group":"Amazon","pages":[{"title":"Amazon Shop page","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/amazon/shop","href":"/api-reference/amazon/amazon-shop-page"}]},{"group":"Linkbio","pages":[{"title":"Lnk.Bio page","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/linkbio/page","href":"/api-reference/linkbio/lnkbio-page"}]},{"group":"Pillar","pages":[{"title":"Pillar page","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/pillar/page","href":"/api-reference/pillar/pillar-page"}]},{"group":"Komi","pages":[{"title":"Komi page","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/komi/page","href":"/api-reference/komi/komi-page"}]},{"group":"Linktree","pages":[{"title":"Linktree page","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/linktree/page","href":"/api-reference/linktree/linktree-page"}]},{"group":"Kick","pages":[{"title":"Clip","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/kick/clip","href":"/api-reference/kick/clip"}]},{"group":"Snapchat","pages":[{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/snapchat/profile","href":"/api-reference/snapchat/profile"},{"title":"Spotlight video","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/snapchat/spotlight","href":"/api-reference/snapchat/spotlight-video"},{"title":"Spotlight comments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/snapchat/spotlight/comments","href":"/api-reference/snapchat/spotlight-comments"}]},{"group":"Telegram","pages":[{"title":"Channel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/telegram/channel","href":"/api-reference/telegram/channel"},{"title":"Channel posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/telegram/channel/posts","href":"/api-reference/telegram/channel-posts"},{"title":"Post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/telegram/post","href":"/api-reference/telegram/post"}]},{"group":"LinkedIn","pages":[{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/linkedin/profile","href":"/api-reference/linkedin/profile"},{"title":"Company","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/linkedin/company","href":"/api-reference/linkedin/company"},{"title":"Company posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/linkedin/company/posts","href":"/api-reference/linkedin/company-posts"},{"title":"Post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/linkedin/post","href":"/api-reference/linkedin/post"},{"title":"Post transcript","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/linkedin/post/transcript","href":"/api-reference/linkedin/post-transcript"}]},{"group":"Twitch","pages":[{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/twitch/profile","href":"/api-reference/twitch/profile"},{"title":"Channel videos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/twitch/user/videos","href":"/api-reference/twitch/channel-videos"},{"title":"Stream schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/twitch/user/schedule","href":"/api-reference/twitch/stream-schedule"},{"title":"Clip","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/twitch/clip","href":"/api-reference/twitch/clip"}]},{"group":"TikTok","pages":[{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/profile","href":"/api-reference/tiktok/profile"},{"title":"Profile region","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/profile/region","href":"/api-reference/tiktok/profile-region"},{"title":"Collection videos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/collection/videos","href":"/api-reference/tiktok/collection-videos"},{"title":"Profile videos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/profile/videos","href":"/api-reference/tiktok/profile-videos"},{"title":"Video","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/video","href":"/api-reference/tiktok/video"},{"title":"Video transcript","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/video/transcript","href":"/api-reference/tiktok/video-transcript"},{"title":"Video comments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/video/comments","href":"/api-reference/tiktok/video-comments"},{"title":"Comment replies","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/video/comment/replies","href":"/api-reference/tiktok/comment-replies"},{"title":"Followers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/user/followers","href":"/api-reference/tiktok/followers"},{"title":"Following","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/user/following","href":"/api-reference/tiktok/following"},{"title":"Search users","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/search/users","href":"/api-reference/tiktok/search-users"},{"title":"Search suggestions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/search/suggestions","href":"/api-reference/tiktok/search-suggestions"},{"title":"Hashtag videos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/search/hashtag","href":"/api-reference/tiktok/hashtag-videos"},{"title":"LIVE stream","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/user/live","href":"/api-reference/tiktok/live-stream"},{"title":"Keyword search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/search/keyword","href":"/api-reference/tiktok/keyword-search"},{"title":"Top search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/search","href":"/api-reference/tiktok/top-search"},{"title":"Song","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/song","href":"/api-reference/tiktok/song"},{"title":"Song videos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/song/videos","href":"/api-reference/tiktok/song-videos"},{"title":"Trending feed","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tiktok/get-trending-feed","href":"/api-reference/tiktok/trending-feed"}]},{"group":"Instagram","pages":[{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/profile","href":"/api-reference/instagram/profile"},{"title":"Basic profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/basic-profile","href":"/api-reference/instagram/basic-profile"},{"title":"User posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/user/posts","href":"/api-reference/instagram/user-posts"},{"title":"User Reels","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/user/reels","href":"/api-reference/instagram/user-reels"},{"title":"Profile post count","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/profile/post-count","href":"/api-reference/instagram/profile-post-count"},{"title":"Post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/post","href":"/api-reference/instagram/post"},{"title":"Popular Search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/search/popular","href":"/api-reference/instagram/popular-search"},{"title":"Audio Reels","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/audio/reels","href":"/api-reference/instagram/audio-reels"},{"title":"Post comments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/post/comments","href":"/api-reference/instagram/post-comments"},{"title":"User highlights","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/user/highlights","href":"/api-reference/instagram/user-highlights"},{"title":"Highlight detail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/instagram/user/highlight/detail","href":"/api-reference/instagram/highlight-detail"}]},{"group":"Lagos Life","pages":[{"title":"Site info","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lagos-life/site","href":"/api-reference/lagos-life/site-info"},{"title":"Live stats","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lagos-life/stats","href":"/api-reference/lagos-life/live-stats"},{"title":"Daily bulletin","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lagos-life/daily","href":"/api-reference/lagos-life/daily-bulletin"},{"title":"Government","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lagos-life/government","href":"/api-reference/lagos-life/government"},{"title":"Billboards","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lagos-life/billboards","href":"/api-reference/lagos-life/billboards"},{"title":"Sea plots","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lagos-life/sea","href":"/api-reference/lagos-life/sea-plots"},{"title":"Player homes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lagos-life/homes","href":"/api-reference/lagos-life/player-homes"},{"title":"Verified players","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lagos-life/verified-players","href":"/api-reference/lagos-life/verified-players"},{"title":"Map places","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/lagos-life/places","href":"/api-reference/lagos-life/map-places"}]},{"group":"Bluesky","pages":[{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/bluesky/profile","href":"/api-reference/bluesky/profile"},{"title":"User posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/bluesky/user/posts","href":"/api-reference/bluesky/user-posts"},{"title":"Post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/bluesky/post","href":"/api-reference/bluesky/post"}]},{"group":"Threads","pages":[{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/threads/profile","href":"/api-reference/threads/profile"},{"title":"User posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/threads/user/posts","href":"/api-reference/threads/user-posts"},{"title":"Post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/threads/post","href":"/api-reference/threads/post"},{"title":"Search users","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/threads/search/users","href":"/api-reference/threads/search-users"},{"title":"Keyword search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/threads/search","href":"/api-reference/threads/keyword-search"}]},{"group":"Reddit","pages":[{"title":"Subreddit details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/reddit/subreddit/details","href":"/api-reference/reddit/subreddit-details"},{"title":"Subreddit search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/reddit/subreddit/search","href":"/api-reference/reddit/subreddit-search"},{"title":"Subreddit posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/reddit/subreddit","href":"/api-reference/reddit/subreddit-posts"},{"title":"Post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/reddit/post","href":"/api-reference/reddit/post"},{"title":"Post comments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/reddit/post/comments","href":"/api-reference/reddit/post-comments"},{"title":"Post transcript","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/reddit/post/transcript","href":"/api-reference/reddit/post-transcript"},{"title":"Search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/reddit/search","href":"/api-reference/reddit/search"}]},{"group":"Rumble","pages":[{"title":"Channel videos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/rumble/channel/videos","href":"/api-reference/rumble/channel-videos"},{"title":"Video","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/rumble/video","href":"/api-reference/rumble/video"},{"title":"Video transcript","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/rumble/video/transcript","href":"/api-reference/rumble/video-transcript"},{"title":"Video comments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/rumble/video/comments","href":"/api-reference/rumble/video-comments"},{"title":"Search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/rumble/search","href":"/api-reference/rumble/search"}]},{"group":"Truth Social","pages":[{"title":"Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/truthsocial/profile","href":"/api-reference/truth-social/profile"},{"title":"User posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/truthsocial/user/posts","href":"/api-reference/truth-social/user-posts"},{"title":"Post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/truthsocial/post","href":"/api-reference/truth-social/post"}]},{"group":"YouTube","pages":[{"title":"Channel","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/channel","href":"/api-reference/youtube/channel"},{"title":"Channel videos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/channel-videos","href":"/api-reference/youtube/channel-videos"},{"title":"Video","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/video","href":"/api-reference/youtube/video"},{"title":"Channel search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/channel/search","href":"/api-reference/youtube/channel-search"},{"title":"Channel playlists","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/channel/playlists","href":"/api-reference/youtube/channel-playlists"},{"title":"Channel live streams","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/channel/lives","href":"/api-reference/youtube/channel-live-streams"},{"title":"Channel community posts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/channel/community-posts","href":"/api-reference/youtube/channel-community-posts"},{"title":"Channel Shorts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/channel/shorts","href":"/api-reference/youtube/channel-shorts"},{"title":"Community post","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/community-post","href":"/api-reference/youtube/community-post"},{"title":"Playlist videos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/playlist","href":"/api-reference/youtube/playlist-videos"},{"title":"Trending Shorts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/shorts/trending","href":"/api-reference/youtube/trending-shorts"},{"title":"Search typeahead","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/search/typeahead","href":"/api-reference/youtube/search-typeahead"},{"title":"Hashtag search","description":"Searches YouTube for a hashtag and returns what YouTube shows, in its order: videos, Shorts, live streams, channels and playlists (including Mixes), about 20–40 per page — or only Shorts with `type=short`. Videos come with their title, link, description snippet, views, upload time, length, channel and thumbnail; Shorts with their title, views, cover and first frame; channels with their handle, avatar, subscribers and verified badge; playlists with their owner, video count and first video. Results shown in a shelf (\"Shorts\", \"Latest from …\") say which. The first page also gives the hashtag's own counts (videos and channels using it) and, when YouTube widens the search to a plain word, that word (`includingResultsFor`). Pass the returned `cursor` back (with the same hashtag) for the next page. Only publicly available data is returned.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/search/hashtag","href":"/api-reference/youtube/hashtag-search"},{"title":"Video comments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/video/comments","href":"/api-reference/youtube/video-comments"},{"title":"Comment replies","description":"Fetches the replies to one comment on a YouTube video or Short, in the order YouTube lists them — 10 on the first page, then about 50 per page. Pass the comment's `repliesToken` from `/v1/youtube/video/comments`. Each reply has the same fields as a comment: id, the id of the comment it answers, text and links, author (channel id, handle, avatar, verified, whether it is the video's creator), when it was posted and whether it was edited, likes (rounded), whether the creator hearted it, and any attached image. Pass the returned `cursor` back (with the same `repliesToken`) for the next page. Only publicly available data is returned.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/video/comment/replies","href":"/api-reference/youtube/comment-replies"},{"title":"Video transcript","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/video/transcript","href":"/api-reference/youtube/video-transcript"},{"title":"Search","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/youtube/search","href":"/api-reference/youtube/search"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/mcp"}]}]},"basePath":"","title":"Video comments - Scraperize","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}