Sources › Social media › Youtube › Hashtag Search

Youtube Hashtag Search API

Videos/Shorts on a YouTube hashtag page (#tag): exact views, likes, publish date, channel. Shorts tab paginates with cursor.

YoutubeGET /hashtag-searchAll plans1 Zap

Request

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

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
hashtagstringqueryYesHashtag, with or without the leading # Example: kucing
typeenum: shorts | videosqueryNoTab. shorts (default) paginates ~36 per page; videos is a single page of ~16 long-form videos Example: shorts
glstringqueryNoTwo-letter country code. Default US Example: ID
hlstringqueryNoLanguage code. Default en Example: en
cursorstringqueryNoPagination cursor — pass nextCursor from the previous response

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/social-media:youtube-scraper/hashtag-search?hashtag=kucing&type=shorts&gl=ID&hl=en&cursor=" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/hashtag-search?hashtag=kucing&type=shorts&gl=ID&hl=en&cursor=", {
  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/hashtag-search",
    params={"hashtag":"kucing","type":"shorts","gl":"ID","hl":"en","cursor":""},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Frequently asked questions

How do I call the Youtube Hashtag Search API?

Send a GET request to https://api.zapi.ink/v1/social-media:youtube-scraper/hashtag-search?hashtag=kucing with your Zapi key in the x-api-key header. Parameters — required: hashtag; optional: type, gl, hl, cursor. The response is JSON in the { project, data, timestamp } envelope.

What does the Youtube Hashtag Search API return?

Videos/Shorts on a YouTube hashtag page (#tag): exact views, likes, publish date, channel.

Is the Youtube Hashtag Search 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 Hashtag Search 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 "hashtag-search".

What other Youtube API endpoints are there?

It has 12 endpoints. Besides Hashtag Search: Get User Profile, Get User Videos, Get Video Detail, Get Video Comments, Search, Get Playlist, and 5 more.