Sources › Social media › Youtube › Search Within Channel

Youtube Search Within Channel API

Cari video di dalam satu channel YouTube.

YoutubeGET /channel-searchAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/social-media:youtube-scraper/channel-search/:channel

Send 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

NameTypeInRequiredDescription
channelstringpathYesChannel handle (@user), channel ID (UCxxx), or a full YouTube URL Example: MrBeast
querystringqueryYesSearch terms within that channel Example: chocolate
glstringqueryNoTwo-letter country code Example: US
hlstringqueryNoInterface language code Example: en

Code examples

cURL
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"
JavaScript
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);
Python
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

200 OK · application/json
{
  "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.