YouTube API

YouTube Search hashtag API

Search YouTube videos by hashtag with cursor pagination (title, channel, views, length, publish time).

POST/v1/run/youtube.search_hashtag
Uptime
100.00%
30d · 13 calls
Requests
13
30d · weekly, last 12 wks
Response
1.7s
median · 30d

Pricing

One price, in dollars

Providers
Giraffe9 served100.00% uptime1410ms p50$1.20/1k reqflat

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "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
}
Response interface
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 30d
POST /v1/run/youtube.search_hashtag
curl -X POST https://api.getanyapi.com/v1/run/youtube.search_hashtag \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"hashtag":"funny"}'
FieldTypeExample value
Request body
hashtagstring"funny"Hashtag to search for (without the leading #).
cursorstringContinuation token from a previous response for pagination.
typeenumContent filter. Only "all" is served: no source we buy returns a Shorts row with the channel and publish time this endpoint requires.
Response
dataobject
data.nextCursorstringOpaque cursor for the next page of videos, or null when this lane has no more. Pass it back as cursor to continue.
data.videosobject[]Populated whenever the provider has data for the entity.
data.videos[].channelTitlestringPopulated whenever the provider has data for the entity.
data.videos[].idstringPopulated whenever the provider has data for the entity.
data.videos[].lengthTextstring
data.videos[].publishedTimestringPopulated whenever the provider has data for the entity.
data.videos[].titlestringPopulated whenever the provider has data for the entity.
data.videos[].urlstringPopulated whenever the provider has data for the entity.
data.videos[].viewsinteger
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$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.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Search YouTube videos by hashtag with cursor pagination (title, channel, views, length, publish time). The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.