YouTube Search hashtag API
Search YouTube videos by hashtag with cursor pagination (title, channel, views, length, publish time).
Try it
Make your first request
{
"data": {
"nextCursor": "example",
"videos": [
{
"channelTitle": "Example title",
"id": "a1b2c3d4",
"lengthText": "A short example description of this item.",
"publishedTime": "2024-01-15T09:30:00Z",
"title": "Example title",
"url": "https://example.com/page",
"views": 12500
}
]
},
"found": true
}interface YoutubeSearchHashtagResponse {
data: {
nextCursor: string | null;
videos: {
channelTitle: string;
id: string;
lengthText: string;
publishedTime: string;
title: string;
url: string;
views: number;
}[];
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/youtube.search_hashtag \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"hashtag":"funny"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| hashtag | string | "funny"Hashtag to search for (without the leading #). |
| cursor | string | Continuation token from a previous response for pagination. |
| type | enum | Content filter. Only "all" is served: no source we buy returns a Shorts row with the channel and publish time this endpoint requires. |
| Response | ||
| data | object | |
| data.nextCursor | string | Opaque cursor for the next page of videos, or null when this lane has no more. Pass it back as cursor to continue. |
| data.videos | object[] | Populated whenever the provider has data for the entity. |
| data.videos[].channelTitle | string | Populated whenever the provider has data for the entity. |
| data.videos[].id | string | Populated whenever the provider has data for the entity. |
| data.videos[].lengthText | string | |
| data.videos[].publishedTime | string | Populated whenever the provider has data for the entity. |
| data.videos[].title | string | Populated whenever the provider has data for the entity. |
| data.videos[].url | string | Populated whenever the provider has data for the entity. |
| data.videos[].views | integer | |
| found | boolean | |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the YouTube Search hashtag API
The AnyAPI YouTube Search hashtag API returns YouTube search hashtag data as normalized JSON from one POST call to /v1/run/youtube.search_hashtag. Search YouTube videos by hashtag with cursor pagination (title, channel, views, length, publish time). AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of YouTube search hashtag calls through AnyAPI succeeded, with a median response time of 1.7 seconds across 13 measured calls.