Sources › Social media › Youtube › Comment Replies
Youtube Comment Replies API
Replies of a YouTube comment by video id/URL + replyToken (from comments[].replyToken) or commentId. Paginated (page 1-20).
Request
https://api.zapi.ink/v1/social-media:youtube-scraper/comment-replies/: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 |
| replyToken | string | query | No | Token balasan dari youtube-scraper/comments (comments[].replyToken). Paling cepat |
| commentId | string | query | No | ID komentar induk (dicari di ±100 komentar teratas) Example: UgzD5S0Q4mY0h1bUYXp4AaABAg |
| page | number | query | No | Nomor halaman balasan. Default 1, max 20. Per page ±10 balasan |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:youtube-scraper/comment-replies/dQw4w9WgXcQ?replyToken=&commentId=UgzD5S0Q4mY0h1bUYXp4AaABAg&page=" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/comment-replies/dQw4w9WgXcQ?replyToken=&commentId=UgzD5S0Q4mY0h1bUYXp4AaABAg&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/comment-replies/dQw4w9WgXcQ", params={"replyToken":"","commentId":"UgzD5S0Q4mY0h1bUYXp4AaABAg","page":""}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Frequently asked questions
How do I call the Youtube Comment Replies API?
Send a GET request to https://api.zapi.ink/v1/social-media:youtube-scraper/comment-replies/dQw4w9WgXcQ with your Zapi key in the x-api-key header. Parameters — required: id; optional: replyToken, commentId, page. The response is JSON in the { project, data, timestamp } envelope.
What does the Youtube Comment Replies API return?
Replies of a YouTube comment by video id/URL + replyToken (from comments[].replyToken) or commentId.
Is the Youtube Comment Replies 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 Comment Replies 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 "comment-replies".
What other Youtube API endpoints are there?
It has 12 endpoints. Besides Comment Replies: Get User Profile, Get User Videos, Get Video Detail, Get Video Comments, Search, Get Playlist, and 5 more.