Docs menu

Trending YouTube Shorts

Beta GET /v1/youtube/shorts/trending

GET /v1/youtube/shorts/trending

YouTube has no logged-out trending page; this is the anonymous Shorts feed (about ten Shorts a page, different on each call, not a ranked chart), each with its title, channel, counts and date.

  • Cost: 1 credit
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Results are kept up to 1 day; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

This endpoint takes no parameters of its own.

Every request also accepts:

  • cursor: the cursor from the previous page (Pagination).
  • region: two-letter country code for results that vary by country. Changing it restarts the cursor chain.
  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

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,
)
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": {}
}

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

{
  "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.0,
        "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.0,
        "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_tbglwMVok5MCB0ZkgVC6rrK8w0CCAwiBwoFMzI6U0gqDQoLMVduS215RnN0bHMqAhgMQgBiBFJEU0h6uwYICxgKMskBCgsxV25LbXlGc3RscxIBMBoMCL2g09YGEOiY-a4DIgYI4bn51gYqBAgNEAEyGxIHCOYBEAEY...",
    "has_more": true,
    "parent": null
  },
  "cursor": "GmYKCzFXbktteUZzdGxzGAkgAkJTCAoQIBo18gYyCjAKBZoBAhABGAEiAiAB6sTvvAsVEhMI74yN_tbglwMVok5MCB0ZkgVC6rrK8w0CCAwiBwoFMzI6U0gqDQoLMVduS215RnN0bHMqAhgMQgBiBFJEU0h6uwYICxgKMskBCgsxV25LbXlGc3RscxIBMBoMCL2g09YGEOiY-a4DIgYI4bn51gYqBAgNEAEyGxIHCOYBEAEY...",
  "has_more": true
}

Response#

A list of Post objects in data.items, with data.cursor and data.has_more.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.