YouTube API

YouTube Trending shorts API

List currently trending YouTube Shorts (title, channel, views, likes, duration).

$1.20/1k req, pay per request, no subscription.

What the API returnedshorts[0]
{
"id": "jT7zZb3WqDu",
"url": "https://www.youtube.com/shorts/jT7zZb3WqDu",
"title": "built a treehouse in 24 hours",
"channelTitle": "Wren Builds",
"views": 18400000,
"likes": 942000,
"duration": "0:58",
"image": "https://i.ytimg.com/vi/jT7zZb3WqDu/hqdefault.jpg",
... 7 more fields
}
Uptime
95.26%
30d · 190 calls
Requests
190
30d · weekly, last 12 wks
Response
9.8s
median · 30d

Pricing

YouTube Trending shorts API pricing

Providers
Giraffe152 served94.41% uptime9682ms p50$1.20/1k reqflat
You pay
$12.00
$1.20/1k req, only for what you use. No monthly plan.
Your first 83 requests are free with the $0.10 starting balance.

Try it

Get YouTube trending shorts in one request

This API takes no input. Just run it.

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 18 of 19 fields. See every field

{
  "found": true,
  "data": {
    "shorts": [
      {
        "id": "jT7zZb3WqDu",
        "url": "https://www.youtube.com/shorts/jT7zZb3WqDu",
        "title": "built a treehouse in 24 hours",
        "channelTitle": "Wren Builds",
        "views": 18400000,
        "likes": 942000,
        "duration": "0:58",
        "image": "https://i.ytimg.com/vi/jT7zZb3WqDu/hqdefault.jpg",
        "createdUtc": 1758844800,
        "comments": 12400,
        "authorId": "UC1oPn9q2rXwLm4bSzVcT5Hi",
        "authorUrl": "https://www.youtube.com/@wrenbuilds",
        "authorHandle": "wrenbuilds",
        "category": "Howto & Style",
        "durationMs": 58000
      },
      {
        "id": "kU8aAc4XrEv",
        "url": "https://www.youtube.com/shorts/kU8aAc4XrEv",
        "title": "rating airport food at every gate",
        "channelTitle": "Dana Ferris",
        "views": 9200000,
        "likes": 511000,
        "duration": "0:35",
        "image": "https://i.ytimg.com/vi/kU8aAc4XrEv/hqdefault.jpg",
        "createdUtc": 1758672000,
        "comments": 8300,
        "authorId": "UC2pQo0r3sYxMn5cTaWdU6Ij",
        "authorUrl": "https://www.youtube.com/@danaferris",
        "authorHandle": "danaferris",
        "category": "Travel & Events",
        "durationMs": 35000
      },
      {
        "id": "lV9bBd5YsFw",
        "url": "https://www.youtube.com/shorts/lV9bBd5YsFw",
        "title": "this $8 kitchen gadget actually works",
        "channelTitle": "Test Kitchen Theo",
        "views": 5600000,
        "likes": 298000,
        "duration": "0:47",
        "image": "https://i.ytimg.com/vi/lV9bBd5YsFw/hqdefault.jpg",
        "createdUtc": 1758499200,
        "comments": 4100,
        "authorId": "UC3qRp1s4tZyNo6dUbXeV7Jk",
        "authorUrl": "https://www.youtube.com/@testkitchentheo",
        "authorHandle": "testkitchentheo",
        "category": "Howto & Style",
        "durationMs": 47000
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-11-01 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

No fields published for this endpoint.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

each shortdata.shorts[]

Populated whenever the provider has data for the entity.

  • authorHandlestring

    wrenbuilds

    The publishing channel's @handle, without the leading @.

  • authorIdstring

    UC1oPn9q2rXwLm4bSzVcT5Hi

    YouTube channel ID of the publishing channel.

  • authorUrlstring

    https://www.youtube.com/@wrenbuilds

    Canonical URL of the publishing channel, tracking query parameters stripped.

  • categorystring

    Howto & Style

    YouTube category the short is filed under.

  • channelTitlestring

    Wren Builds

    Populated whenever the provider has data for the entity.

  • commentsinteger

    12400

    Number of comments on the short. Rounded as YouTube shows it on Shorts (1.2K, 15K), so counts of 1,000 or more are approximate.

  • createdUtcnumber

    1758844800

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • durationstring

    0:58

    Populated whenever the provider has data for the entity.

  • durationMsinteger

    58000

    Length of the short in milliseconds.

  • idstring

    jT7zZb3WqDu

    Populated whenever the provider has data for the entity.

  • imagestring

    https://i.ytimg.com/vi/jT7zZb3WqDu/hqdefault.jpg

    URL of the short thumbnail image, tracking query parameters stripped.

  • likesinteger

    942000

  • titlestring

    built a treehouse in 24 hours

    Populated whenever the provider has data for the entity.

  • urlstring

    https://www.youtube.com/shorts/jT7zZb3WqDu

    Populated whenever the provider has data for the entity.

  • viewsinteger

    18400000

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the YouTube Trending shorts API

The AnyAPI YouTube Trending shorts API returns YouTube trending shorts data as normalized JSON from one POST call to /v1/run/youtube.trending_shorts. List currently trending YouTube Shorts (title, channel, views, likes, duration). 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, 95.3% of YouTube trending shorts calls through AnyAPI succeeded, with a median response time of 9.8 seconds across 190 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 and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

List currently trending YouTube Shorts (title, channel, views, likes, duration). 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, 95.3% of YouTube trending shorts calls through AnyAPI succeeded, with a median response time of 9.8 seconds across 190 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 83 YouTube Trending shorts calls at $0.0012 each.

Send a POST request to https://api.getanyapi.com/v1/run/youtube.trending_shorts with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.