{
"count": 100,
"items": [
{
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"videoCommentCount": null,
"position": 1,
"isReply": false,
"parentCommentId": null,
"commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=UgzuC3zzpRZkjc5Qzsd4AaABAg",
"commentId": "UgzuC3zzpRZkjc5Qzsd4AaABAg",
"text": "We're so honored that the first ever YouTube video was filmed here!",
"author": "@SanDiegoZoo",
"authorChannelId": "UCC5NfQ6Mf0dq_eEwv4P_hWA",
"authorIsChannelOwner": false,
"authorIsVerified": true,
"authorAvatarUrl": "https://yt3.ggpht.com/i8RqA9tYqbbnOi4mlnYEY7IR3kXAoDqQbM_5Sfzw7OjTubiGsOaTdlrIZmj-I0q0Vup68eqs=s88-c-k-c0x00ffffff-no-rj",
"likeCount": 4800000,
"replyCount": 986,
"publishedTimeText": "6 years ago",
"isHearted": true,
"isPinned": true,
"isEdited": false,
"publishedAt": "2020-11-07T13:07:07Z",
"scrapedAt": "2026-11-06T13:07:07Z"
},
{
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"videoCommentCount": null,
"position": 2,
"isReply": false,
"parentCommentId": null,
"commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=UgwJopRYfCoqhRa13OF4AaABAg",
"commentId": "UgwJopRYfCoqhRa13OF4AaABAg",
"text": "This guys is the only person who has the rights to say \"first\" on youtube.",
"author": "@Jeff-th5ob",
"authorChannelId": "UCg8QP4eNX0uXUkLgpTSRmWw",
"authorIsChannelOwner": false,
"authorIsVerified": false,
"authorAvatarUrl": "https://yt3.ggpht.com/ytc/AIdro_m_xynaUD3u02-q0yYLbJX6TtiTSgckJDy3nIZWVaEhzBA=s88-c-k-c0x00ffffff-no-rj",
"likeCount": 420000,
"replyCount": 851,
"publishedTimeText": "5 years ago",
"isHearted": false,
"isPinned": false,
"isEdited": false,
"publishedAt": "2021-11-07T13:07:07Z",
"scrapedAt": "2026-11-06T13:07:07Z"
},
{
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoTitle": "Me at the zoo",
"videoCommentCount": null,
"position": 3,
"isReply": false,
"parentCommentId": null,
"commentUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw&lc=Ugxnp9ws0dexjE9L5UB4AaABAg",
"commentId": "Ugxnp9ws0dexjE9L5UB4AaABAg",
"text": "Hello",
"author": "@jawed",
"authorChannelId": "UC4QobU6STFB0P71PMvOGN5A",
"authorIsChannelOwner": true,
"authorIsVerified": true,
"authorAvatarUrl": "https://yt3.ggpht.com/uI3VE4PVqvCy0xnWLqMJnEzyBUm3T8VHOCp4ee-1RxdHqKXCdUE_qXYQnpf9AfuEoIPactVyDhM=s88-c-k-c0x00ffffff-no-rj",
"likeCount": 313000,
"replyCount": 995,
"publishedTimeText": "6 months ago",
"isHearted": true,
"isPinned": false,
"isEdited": false,
"publishedAt": "2026-05-10T13:07:07Z",
"scrapedAt": "2026-11-06T13:07:07Z"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14675/youtube+comments+api/37942/youtube+comments+export?videos=https://www.youtube.com/watch?v=jNQXAC9IVRw,https://www.youtube.com/watch?v=dQw4w9WgXcQ&maxCommentsPerVideo=50&sortBy=top&includeReplies=false&maxRepliesPerComment=20&maxComments=Optional' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the YouTube Comments API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime.
Comments and replies from any YouTube video or Short: text, author, likes, replies, date, pinned and creator-heart flags. Top or newest, keyword filter. No API key, no quota.
Comments and replies from any YouTube video or Short: text, author, likes, replies, date, pinned and creator-heart flags. Top or newest, keyword filter. No API key, no quota.
Up to 100 results per request, depending on the endpoint.
Every request collects live data from the public source. Identical requests may be served from a cache for up to 6 hours.
List parameters accept several values separated by commas, for example: london,paris.
The YouTube Comments Export endpoint returns comments and replies from YouTube videos or Shorts, including details such as text, author, likes, replies, publication date, and flags for pinned comments and creator hearts.
Key fields in the response include `videoId`, `text`, `author`, `likeCount`, `replyCount`, `commentId`, and `commentUrl`. These fields provide essential information about each comment and its context.
The response data is structured in JSON format, containing a `count` of results and an `items` array. Each item represents a comment or reply with its associated details, making it easy to parse and utilize.
The endpoint accepts these query parameters, all optional: videos, maxCommentsPerVideo, sortBy, includeReplies, maxRepliesPerComment, keywords, publishedAfter, maxComments. videos: Video links (watch, youtu.be, Shorts, live, embed) or 11-character video IDs. One per line, any number. Several values: comma separated. maxCommentsPerVideo: Top-level comments to collect from each video (replies count too when enabled). sortBy: Same as the sort menu under a YouTube video. includeReplies: Also collect the reply thread of each comment (marked isReply=true with parentCommentId). maxRepliesPerComment: Only used when replies are on. keywords: Optional. Keep comments that contain any of these words...
The endpoint provides information on comment text, author details, like counts, reply counts, and flags indicating if a comment is pinned or has a creator heart, offering a comprehensive view of user interactions.
Users can analyze comment sentiment, track engagement through like and reply counts, and identify popular topics or trends by examining the text and metadata of comments returned by the API.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund