Trending YouTube Shorts API

YouTube has no logged-out trending page; this is the anonymous Shorts feed.

GETapi.socialscrape.io/v1/youtube/shorts/trending
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 1 day
Failed requests
0 credits
Status
Betashape may still gain fields

About ten Shorts a page, different on each call, not a ranked chart, each with its title, channel, counts and date.

Request

Send your key in the x-api-key header.

curl
curl -G "https://api.socialscrape.io/v1/youtube/shorts/trending" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'region=US'
Python
import os
import requests

params = {
    "region": "US",
}
res = requests.get(
    "https://api.socialscrape.io/v1/youtube/shorts/trending",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
    timeout=60,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/youtube/shorts/trending");
url.search = new URLSearchParams({
  region: "US",
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Trending YouTube Shorts",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/youtube/shorts/trending",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "region",
              "value": "US"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Parameters

NameTypeRequiredDescription
cursorstringOpaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page.
regionstringTwo-letter country code (ISO 3166-1) for results that vary by country. Also accepted as country, geo.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_c2c12ae2b77acb61987454ea",
  "data": {
    "object": "list",
    "items": [
      {
        "object": "post",
        "platform": "youtube",
        "id": "ui1FnqizvU0",
        "url": "https://www.youtube.com/shorts/ui1FnqizvU0",
        "type": "short",
        "author": {
          "id": "UCiHAgDXiu5N93QtcFHFTDsA",
          "handle": "Rankriot78",
          "name": "Rank Riot 78",
          "url": "https://www.youtube.com/@Rankriot78",
          "avatar_url": null,
          "verified": null
        },
        "title": "Funny baby moments 😂 #usa #funny #foryou #baby #shorts #family #viral",
        "text": "Try not to laugh, but these funny baby moments will have you laughing all day. Let us know down below. What made you laugh ",
        "published_at": "2026-10-23T16:28:26Z",
        "duration_seconds": 21,
        "language": null,
        "hashtags": null,
        "mentions": null,
        "stats": {
          "views": 3750878,
          "likes": 26693,
          "comments": null,
          "shares": null,
          "saves": null,
          "dislikes": null
        },
        "media": {
          "thumbnail_url": "https://i.ytimg.com/vi/ui1FnqizvU0/frame0.jpg",
          "video_url": null,
          "audio_url": null,
          "image_urls": null,
          "width": null,
          "height": null
        },
        "song": null,
        "location": null,
        "is_pinned": null,
        "is_sponsored": null,
        "extra": {
          "category": "Entertainment"
        }
      },
      {
        "object": "post",
        "platform": "youtube",
        "id": "C41Bekivrfo",
        "url": "https://www.youtube.com/shorts/C41Bekivrfo",
        "type": "short",
        "author": {
          "id": "UCsxytD-pWwEe9wiCakVeWEQ",
          "handle": "ThatPawDude",
          "name": "ThatPawDude🐶",
          "url": "https://www.youtube.com/@ThatPawDude",
          "avatar_url": null,
          "verified": null
        },
        "title": "Ranking Best Sea Lion Moments😭",
        "text": null,
        "published_at": "2026-10-29T14:00:52Z",
        "duration_seconds": 24,
        "language": null,
        "hashtags": null,
        "mentions": null,
        "stats": {
          "views": 104660,
          "likes": 3384,
          "comments": null,
          "shares": null,
          "saves": null,
          "dislikes": null
        },
        "media": {
          "thumbnail_url": "https://i.ytimg.com/vi/C41Bekivrfo/frame0.jpg",
          "video_url": null,
          "audio_url": null,
          "image_urls": null,
          "width": null,
          "height": null
        },
        "song": null,
        "location": null,
        "is_pinned": null,
        "is_sponsored": null,
        "extra": {
          "category": "Entertainment"
        }
      }
    ],
    "cursor": "GmYKCzFXbktteUZzdGxzGAkgAkJTCAoQIBo18gYyCjAKBZoBAhABGAEiAiAB6sTvvAsVEhMI74yN_tbglwMVok5MCB0ZkgVC6rrK8w0CCAwiBwoFMzI6U0gqDQoLMVduS215RnN0bHMqAhgMQgBiBFJEU0h6u...",
    "has_more": true,
    "parent": null
  },
  "cursor": "GmYKCzFXbktteUZzdGxzGAkgAkJTCAoQIBo18gYyCjAKBZoBAhABGAEiAiAB6sTvvAsVEhMI74yN_tbglwMVok5MCB0ZkgVC6rrK8w0CCAwiBwoFMzI6U0gqDQoLMVduS215RnN0bHMqAhgMQgBiBFJEU0h6u...",
  "has_more": true
}

Fields

A page of results. Each entry in items is a Post. cursor and has_more page through the rest.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"post"
platformPlatformyes
idstringyes
urlstring or null
type"video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown"
authorAuthor or null
titlestring or null
textstring or null
published_atstring (ISO 8601 date-time) or null
duration_secondsnumber or null
languagestring or null
hashtagsstring[] or null
mentionsstring[] or null
statsStats
Show the other 6 fields
FieldTypeAlwaysNotes
mediaMedia
songSongRef or null
locationPlace or null
is_pinnedboolean or null
is_sponsoredboolean or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

How do I get more than one page?

Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.

Is there an SDK call for it?

The preview Python client has client.youtube.shorts_trending(...) and the TypeScript client client.youtube.shortsTrending(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access