Sources › Social media › Youtube › Get Video Comments
Youtube Video Comments API
Get Video Comments, one of the endpoints of the Youtube API.
Request
https://api.zapi.ink/v1/social-media:youtube-scraper/comments/:idSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 10 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| id | string | path | Yes | Video ID (11-char) atau full YouTube URL Example: dQw4w9WgXcQ |
| page | number | query | No | Nomor halaman. Default 1, max 50. Per page ~20 komentar |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:youtube-scraper/comments/dQw4w9WgXcQ?page=" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/comments/dQw4w9WgXcQ?page=", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/social-media:youtube-scraper/comments/dQw4w9WgXcQ", params={"page":""}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "social-media:youtube-scraper", "data": { "page": 1, "count": 20, "hasMore": true, "videoId": "dQw4w9WgXcQ", "comments": [ { "author": { "avatar": "https://yt3.ggpht.com/3s6evpqAiDU9tQR4sC2siJippbH2RWVPnwHgyl4V0th2iuQz0VDQZbUhQBGmsxLYo-mjG6TqZQ=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCBR8-60-B28hp2BmDPdntcQ", "isCreator": false, "isVerified": true, "displayName": "@YouTube" }, "content": "can confirm: he never gave us up", "commentId": "Ugzge340dBgB75hWBm54AaABAg", "likeCount": 243000, "replyCount": 1000, "replyLevel": 0, "likeCountText": "243K", "replyCountText": "1K", "publishedTimeText": "1 year ago" }, { "author": { "avatar": "https://yt3.ggpht.com/ytc/AIdro_l_cdb12iEvfbconWqKW89iqSh69jL-NdmjZIuXCkr9Yg3iLzKFdf8SG32lYrR3AmrM9A=s88-c-k-c0x00ffffff-no-rj", "channelId": "UCc4EU495shmfFPGMtoth0cQ", "isCreator": false, "isVerified": false, "displayName": "@Sarah-x3j3z" }, "content": "🇫🇷🇫🇷🇫🇷🇫🇷🇫🇷🍾🥂🎄💕😍👍🏻👌🏻🥰🥰🥰🥳😘🇫🇷🇫🇷🇫🇷", "commentId": "Ugz_UZfwxElvwKkPfkl4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "2 minutes ago" }, { "author": { "avatar": "https://yt3.ggpht.com/WG1XhzebAPM055lM0LsEgtxNxirp0UMkvCQ0Us399-evEbG-K53F8pdUxwlq9dbleDo_qEfshMM=s88-c-k-c0x00ffffff-no-rj", "channelId": "UC2icBtNHVnZL591ZoIpTrMQ", "isCreator": false, "isVerified": false, "displayName": "@Hishamisgoodturbotrubo" }, "content": "Get rickrolled", "commentId": "UgxVqhrNBP9d4R0Zi_x4AaABAg", "likeCount": 0, "replyCount": 0, "replyLevel": 0, "likeCountText": " ", "publishedTimeText": "6 minutes ago" } ], "nextPage": 2 }, "timestamp": "2026-05-27T13:36:09Z" }
Frequently asked questions
How do I call the Youtube Video Comments API?
Send a GET request to https://api.zapi.ink/v1/social-media:youtube-scraper/comments/dQw4w9WgXcQ with your Zapi key in the x-api-key header. Parameters — required: id; optional: page. The response is JSON in the { project, data, timestamp } envelope.
What does the Youtube Video Comments API return?
The example response has the fields page, count, hasMore, videoId, comments, nextPage. Each item in comments has fields such as author, content, commentId, likeCount, replyCount, replyLevel, likeCountText, replyCountText.
Is the Youtube Video Comments API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Youtube Video Comments API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "youtube-scraper" and endpoint "comments".
What other Youtube API endpoints are there?
It has 12 endpoints. Besides Get Video Comments: Get User Profile, Get User Videos, Get Video Detail, Search, Get Playlist, Search Within Channel, and 5 more.