Sources › Social media › Youtube › Trending Shorts

Youtube Trending Shorts API

The YouTube Shorts feed (what plays when you scroll youtube.com/shorts), localized by country: title, channel, views, likes, publish date. Infinite scroll via cursor.

YoutubeGET /trending-shortsAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/social-media:youtube-scraper/trending-shorts

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 10 minutes.

Parameters

NameTypeInRequiredDescription
glstringqueryNoTwo-letter country code — the feed is localized. Default US Example: ID
hlstringqueryNoLanguage code. Default en Example: en
cursorstringqueryNoPagination cursor — pass nextCursor from the previous response to keep scrolling

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/social-media:youtube-scraper/trending-shorts?gl=ID&hl=en&cursor=" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/trending-shorts?gl=ID&hl=en&cursor=", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/social-media:youtube-scraper/trending-shorts",
    params={"gl":"ID","hl":"en","cursor":""},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Frequently asked questions

How do I call the Youtube Trending Shorts API?

Send a GET request to https://api.zapi.ink/v1/social-media:youtube-scraper/trending-shorts with your Zapi key in the x-api-key header. Parameters — optional: gl, hl, cursor. The response is JSON in the { project, data, timestamp } envelope.

What does the Youtube Trending Shorts API return?

The YouTube Shorts feed (what plays when you scroll youtube.com/shorts), localized by country: title, channel, views, likes, publish date.

Is the Youtube Trending Shorts API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the Youtube Trending Shorts API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "youtube-scraper" and endpoint "trending-shorts".

What other Youtube API endpoints are there?

It has 12 endpoints. Besides Trending Shorts: Get User Profile, Get User Videos, Get Video Detail, Get Video Comments, Search, Get Playlist, and 5 more.