Sources › Social media › Youtube › Search Within Channel
Youtube Search Within Channel API
Cari video di dalam satu channel YouTube.
Request
https://api.zapi.ink/v1/social-media:youtube-scraper/channel-search/:channelSend 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 15 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| channel | string | path | Yes | Channel handle (@user), channel ID (UCxxx), or a full YouTube URL Example: MrBeast |
| query | string | query | Yes | Search terms within that channel Example: chocolate |
| gl | string | query | No | Two-letter country code Example: US |
| hl | string | query | No | Interface language code Example: en |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:youtube-scraper/channel-search/MrBeast?query=chocolate&gl=US&hl=en" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/channel-search/MrBeast?query=chocolate&gl=US&hl=en", { 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/channel-search/MrBeast", params={"query":"chocolate","gl":"US","hl":"en"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "social-media:youtube-scraper", "data": { "count": 0, "query": "chocolate", "videos": [], "channel": "UCX6OQ3DkcsbYNE6H8uQQuVA" }, "timestamp": "2026-05-27T13:36:09Z" }
Frequently asked questions
How do I call the Youtube Search Within Channel API?
Send a GET request to https://api.zapi.ink/v1/social-media:youtube-scraper/channel-search/MrBeast?query=chocolate with your Zapi key in the x-api-key header. Parameters — required: channel, query; optional: gl, hl. The response is JSON in the { project, data, timestamp } envelope.
What does the Youtube Search Within Channel API return?
Cari video di dalam satu channel YouTube. The example response has the fields count, query, videos, channel.
Is the Youtube Search Within Channel 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 Search Within Channel 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 "channel-search".
What other Youtube API endpoints are there?
It has 12 endpoints. Besides Search Within Channel: Get User Profile, Get User Videos, Get Video Detail, Get Video Comments, Search, Get Playlist, and 5 more.