API · YouTube
GET /youtube/trending/shorts
About 45 popular YouTube Shorts with full details, a fresh batch each call.
| Request | GET /v1/youtube/trending/shorts |
| Operation id | youtube.shorts.trending |
| Cost | 5 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
About 45 popular YouTube Shorts with full details, a fresh batch each call.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
region | string | no | ISO 3166-1 alpha-2 country: the results a visitor there sees. Example: US. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Popular Shorts. | YouTubeVideoList |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The video, channel, playlist or post does not exist, was removed, or has nothing there. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | YouTube is temporarily unavailable. Retryable; nothing was charged. | Error |
YouTubeVideoList fields
| 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. |
Errors use one shape everywhere; see Errors for every code and what to do.