Trending YouTube Shorts API
YouTube has no trending page; this is the Shorts feed (about ten Shorts a page, different on each call, not a ranked chart), each with its title, channe...
GET /v1/youtube/shorts/trending
GET /v1/youtube/shorts/trending
YouTube has no trending page; this is the 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
- Cache: Results are kept up to 1 day; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with 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:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.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).
1curl -G "https://api.socialscrape.dev/v1/youtube/shorts/trending" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "region=US"1import os2import requests34params = {5 "region": "US",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/youtube/shorts/trending",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/youtube/shorts/trending");2url.search = new URLSearchParams({3 "region": "US"4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Trending YouTube Shorts",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/youtube/shorts/trending",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "region",19 "value": "US"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_c2c12ae2b77acb61987454ea",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "youtube",14 "id": "ui1FnqizvU0",15 "url": "https://www.youtube.com/shorts/ui1FnqizvU0",16 "type": "short",17 "author": {18 "id": "UCiHAgDXiu5N93QtcFHFTDsA",19 "handle": "Rankriot78",20 "name": "Rank Riot 78",21 "url": "https://www.youtube.com/@Rankriot78",22 "avatar_url": null,23 "verified": null24 },25 "title": "Funny baby moments 😂 #usa #funny #foryou #baby #shorts #family #viral",26 "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 ",27 "published_at": "2026-10-23T16:28:26Z",28 "duration_seconds": 21.0,29 "language": null,30 "hashtags": null,31 "mentions": null,32 "stats": {33 "views": 3750878,34 "likes": 26693,35 "comments": null,36 "shares": null,37 "saves": null,38 "dislikes": null39 },40 "media": {41 "thumbnail_url": "https://i.ytimg.com/vi/ui1FnqizvU0/frame0.jpg",42 "video_url": null,43 "audio_url": null,44 "image_urls": null,45 "width": null,46 "height": null47 },48 "song": null,49 "location": null,50 "is_pinned": null,51 "is_sponsored": null,52 "extra": {53 "category": "Entertainment"54 }55 },56 {57 "object": "post",58 "platform": "youtube",59 "id": "C41Bekivrfo",60 "url": "https://www.youtube.com/shorts/C41Bekivrfo",61 "type": "short",62 "author": {63 "id": "UCsxytD-pWwEe9wiCakVeWEQ",64 "handle": "ThatPawDude",65 "name": "ThatPawDude🐶",66 "url": "https://www.youtube.com/@ThatPawDude",67 "avatar_url": null,68 "verified": null69 },70 "title": "Ranking Best Sea Lion Moments😭",71 "text": null,72 "published_at": "2026-10-29T14:00:52Z",73 "duration_seconds": 24.0,74 "language": null,75 "hashtags": null,76 "mentions": null,77 "stats": {78 "views": 104660,79 "likes": 3384,80 "comments": null,81 "shares": null,82 "saves": null,83 "dislikes": null84 },85 "media": {86 "thumbnail_url": "https://i.ytimg.com/vi/C41Bekivrfo/frame0.jpg",87 "video_url": null,88 "audio_url": null,89 "image_urls": null,90 "width": null,91 "height": null92 },93 "song": null,94 "location": null,95 "is_pinned": null,96 "is_sponsored": null,97 "extra": {98 "category": "Entertainment"99 }100 }101 ],102 "cursor": "GmYKCzFXbktteUZzdGxzGAkgAkJTCAoQIBo18gYyCjAKBZoBAhABGAEiAiAB6sTvvAsVEhMI74yN_tbglwMVok5MCB0ZkgVC6rrK8w0CCAwiBwoFMzI6U0gqDQoLMVduS215RnN0bHMqAhgMQgBiBFJEU0h6uwYICxgKMskBCgsxV25LbXlGc3RscxIBMBoMCL2g09YGEOiY-a4DIgYI4bn51gYqBAgNEAEyGxIHCOYBEAEY...",103 "has_more": true,104 "parent": null105 },106 "cursor": "GmYKCzFXbktteUZzdGxzGAkgAkJTCAoQIBo18gYyCjAKBZoBAhABGAEiAiAB6sTvvAsVEhMI74yN_tbglwMVok5MCB0ZkgVC6rrK8w0CCAwiBwoFMzI6U0gqDQoLMVduS215RnN0bHMqAhgMQgBiBFJEU0h6uwYICxgKMskBCgsxV25LbXlGc3RscxIBMBoMCL2g09YGEOiY-a4DIgYI4bn51gYqBAgNEAEyGxIHCOYBEAEY...",107 "has_more": true108}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.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
not_found | 404 | no | The 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.
Related endpoints#
- YouTube channel details (
GET /v1/youtube/channel) - YouTube channel videos (
GET /v1/youtube/channel/videos) - Search inside a YouTube channel (
GET /v1/youtube/channel/search) - YouTube channel playlists (
GET /v1/youtube/channel/playlists) - YouTube channel Shorts (
GET /v1/youtube/channel/shorts) - YouTube channel live streams (
GET /v1/youtube/channel/lives) - YouTube channel community posts (
GET /v1/youtube/channel/community-posts) - YouTube video or Short details (
GET /v1/youtube/video)