YouTube API

YouTube Search shorts API

Search YouTube Shorts by keyword and get matching Shorts (title, views, URL) with cursor pagination as normalized JSON.

POST/v1/run/youtube.search_shorts
Uptime
100.00%
30d · 15 calls
Requests
15
30d
Response
1.5s
median · 30d

Pricing

One price, in dollars

Providers
Giraffe15 served100.00% uptime1357ms 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",
    "shorts": [
      {
        "contentType": "A short example description of this item.",
        "id": "a1b2c3d4",
        "title": "Example title",
        "url": "https://example.com/page",
        "views": 12500,
        "viewsAvailable": true
      }
    ]
  },
  "found": true
}
Response interface
interface YoutubeSearchShortsResponse {
  data: {
    nextCursor?: string | null;
    shorts: {
      contentType: string;
      id: string;
      title: string;
      url: string;
      views: number;
      viewsAvailable: boolean;
    }[];
  } | 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-14 · uptime and latency measured over 30d
POST /v1/run/youtube.search_shorts
curl -X POST https://api.getanyapi.com/v1/run/youtube.search_shorts \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"cats"}'
FieldTypeExample value
Request body
querystring"cats"The keyword to search Shorts for.
cursorstringContinuation token from a previous response for pagination.
sortByenumSort order: "relevance" (default) or "popular" (most-viewed).
uploadDateenumFilter by upload recency. Omit for any time.
Response
dataobject
data.nextCursorstringOpaque cursor for the next page of results, or null when there are no more. Pass it back as cursor to continue.
data.shortsobject[]Populated whenever the provider has data for the entity.
data.shorts[].contentTypestringAlways "short": every row here comes from YouTube's Shorts shelf.
data.shorts[].idstringYouTube video id of the Short. Populated whenever the provider has data for the entity.
data.shorts[].titlestringTitle of the Short. Populated whenever the provider has data for the entity.
data.shorts[].urlstringWatch URL for the Short. Populated whenever the provider has data for the entity.
data.shorts[].viewsintegerView count, or 0 when the source did not publish one. Read viewsAvailable before trusting a 0.
data.shorts[].viewsAvailablebooleanFalse when the source published no view count, so views is a placeholder rather than a measured zero.
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the YouTube Search shorts API

The AnyAPI YouTube Search shorts API returns YouTube search shorts data as normalized JSON from one POST call to /v1/run/youtube.search_shorts. Search YouTube Shorts by keyword and get matching Shorts (title, views, URL) with cursor pagination as normalized JSON. 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 shorts calls through AnyAPI succeeded, with a median response time of 1.5 seconds across 15 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 Shorts by keyword and get matching Shorts (title, views, URL) with cursor pagination as normalized JSON. 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 shorts calls through AnyAPI succeeded, with a median response time of 1.5 seconds across 15 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.