YouTube trending Shorts API
About 45 popular YouTube Shorts as the Shorts player serves them to a fresh visitor, each with exact views, likes and publish time.
GET /v1/youtube/trending/shortsBeta5 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/youtube/trending/shorts",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 5 credits{ "kind": "youtube#videoListResponse", "items": [ { "kind": "youtube#video", "id": "NDjPl9eYccw", "snippet": { "publishedAt": "2026-11-24T17:00:29.000Z", "channelId": "UCBxTpXdYnffF6Ls32EJ8_mg", "channelTitle": "playit", "title": "I Found Grandmas Search HISTORY... #roblox #shorts", "description": "", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" }, "standard": { "…": "3 fields" } }, "category": "People & Blogs", "categoryId": "22", "liveBroadcastContent": "none", "defaultAudioLanguage": "bn" }, "contentDetails": { "duration": "PT2M18S", "durationSeconds": 138, "caption": "false" }, "statistics": { "viewCount": "261978", "likeCount": "7736" }, "status": { "privacyStatus": "public", "embeddable": true, "isFamilySafe": true }, "paidProductPlacementDetails": { "hasPaidProductPlacement": false }, "isShort": true, "channel": { "id": "UCBxTpXdYnffF6Ls32EJ8_mg", "title": "playit", "handle": "@playit3205", "url": "https://www.youtube.com/@playit3205", "isVerified": false }, "captionTracks": [ { "languageCode": "bn", "name": "Bangla (auto-generated)", "isAutoGenerated": true, "isTranslatable": true }, { "languageCode": "nl", "name": "Dutch (auto-generated)", "isAutoGenerated": true, "isTranslatable": true }, "… 5 more" ] }, { "kind": "youtube#video", "id": "6_d9U3-KjTY", "snippet": { "publishedAt": "2026-11-24T20:29:37.000Z", "channelId": "UCGvGMmyEWp9hxDqmfLJbpkQ", "channelTitle": "Cadel and Mia", "title": "What do you think? 🤣🤷♀️ COMMENT FOR 7 YEARS OF GOOD LUCK! 🍀😅 | Cadel and Mia #funny #shor…", "description": "", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" }, "standard": { "…": "3 fields" } }, "category": "Entertainment", "categoryId": "24", "liveBroadcastContent": "none", "defaultAudioLanguage": "en" }, "contentDetails": { "duration": "PT45S", "durationSeconds": 45, "caption": "false" }, "statistics": { "viewCount": "141717", "likeCount": "4096" }, "status": { "privacyStatus": "public", "embeddable": true, "isFamilySafe": true }, "paidProductPlacementDetails": { "hasPaidProductPlacement": false }, "isShort": true, "channel": { "id": "UCGvGMmyEWp9hxDqmfLJbpkQ", "title": "Cadel and Mia", "handle": "@CadelandMia", "url": "https://www.youtube.com/@CadelandMia", "isVerified": false }, "captionTracks": [ { "languageCode": "en", "name": "English (auto-generated)", "isAutoGenerated": true, "isTranslatable": true } ] } ], "pageInfo": { "resultsPerPage": 2 }}Parameters
| Name | Type | Description |
|---|---|---|
regionquery | string | ISO 3166-1 alpha-2 country: the results a visitor there sees. Example: US. |
Response fields
200 with a YouTubeVideoList, in the shape of YouTube Data API v3 resources.
| Field | Type | Description |
|---|---|---|
kind | "youtube#videoListResponse" | |
items | YouTubeVideo[] | |
nextPageToken | string | Pass as after for the next page. Absent on the last page. Lasts 6 hours. |
pageInfo | object | |
missing | object[] | Batch only: requested ids that did not resolve, and why. |
Status codes
| Status | Meaning |
|---|---|
200 | Popular Shorts. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The video, channel, playlist or post does not exist, was removed, or has nothing there. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | YouTube is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Is it the same list every time?
No: each call is a fresh batch, as the Shorts feed is.
YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.