Introducing the Instagram APIRead more →

YouTube Trending Shorts API. Trending shorts, on request.

The Shorts feed a new visitor sees, by country. We handle the proxies, blocks and platform changes.

In your agent: YouTube MCP server →

YouTube Trending Shorts API at a glance

Returns the Shorts YouTube's Shorts feed serves a new visitor in a country and language, a page at a time. Each Short has its title, description, hashtags, exact publish time, duration, channel, sound, and exact view, like and comment counts. Every page is a new batch from the feed.

GET /v1/youtube/trending_posts

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 25 typed fields null when unknown
  • 12 the shorts feed per page, YouTube's Shorts feed order
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get up to 12 the shorts feed back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
GET /v1/youtube/trending_postsTry in
// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
  country: "US",
  lang: "en",
});
const res = await fetch(`https://socialtap.dev/v1/youtube/trending_posts?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/youtube/trending_postsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 24 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field YouTube doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • No input needed

    Every parameter is optional: the plain request returns the default list.

  • Write one parser

    YouTube, TikTok, Instagram and 21 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
In the example "youtube"
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
In the example "xlk71paZTvM"
urlstring
Canonical post URL.
In the example "https://www.youtube.com/shorts/xlk71paZTvM"
typestring
Normalized content shape. New values may be added; treat unknown values as other.
In the example "video"
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
In the example "short"
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
In the example "Why can nobody spot the 6th dancer? 😭🤷‍♀️🤭 dc: @Alexandra_Marasigan"
textstring
Caption, description or body as plain text.
In the example null
link_urlstring
The page the post links to: a link post's target, a pin's destination, or the page its link card or link sticker opens; null when it links to none.
In the example null

What teams build with the YouTube Trending Shorts API.

  • Spot the Shorts spreading right now

    Read a few pages a day for your market's country and lang and rank the Shorts by exact view_count against their published_at, to see which are climbing fastest.

  • Compare what trends in Japan and Brazil

    Call it with country JP and lang ja, then with country BR and lang pt, and compare the hashtags, sounds and channels each feed serves.

  • Find rising creators and sounds

    Count how often each author and each sound comes back across pages, then follow a sound's url to the Shorts that use it.

  • Sample what YouTube shows a newcomer

    Each page is the feed a new visitor gets, with no watch history: store its Shorts with the time you read them to track what YouTube pushes to people it doesn't know yet.

Good to know before you build.

  • This is YouTube's Shorts feed, not a ranked chart: the Shorts differ on every request and come in no time order.
  • The feed follows lang more than country: Japanese Shorts need lang=ja, not only country=JP.
  • Ads in the feed are left out, and a walk drops Shorts its recent pages listed.
  • since and until filter each page by publish time. The feed has no time order, so filtered pages can come back empty; a walk of them ends at max_pages.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Platform API api1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the YouTube Trending Shorts API.

More in the API reference.

Is this YouTube's Trending page?
No. YouTube retired its Trending page; this reads the Shorts feed YouTube serves a new visitor with no watch history, in the country and language you set.
Are the view and like counts exact?
Yes. Each Short is read in full, so view_count and like_count are exact, and like_count is null when the channel hides ratings.
Does it return each Short's sound?
Yes. The sound field names the song or original sound each Short uses, and its url lists the Shorts that use it.
How much does the YouTube Trending Shorts API cost?
A page of up to 12 the shorts feed costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

See what's on the list right now.

Run it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 310 endpoints
Start for free Read the docs