YouTube Trending Shorts
https://api.sandbase.ai/v1/api/youtube/trending-shortsList currently trending YouTube Shorts (title, channel, views, likes, duration).
- Prezzo
- Da $0.0012USD / chiamata
- Metodo
- POST
- Risposta
- JSON
- Parametri
- 0 obbligatori · 0 opzionali
Playground
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
README API
YouTube Trending Shorts API
Returns a list of YouTube Shorts that are currently trending. It needs no input: send an empty JSON object {}. Each item has the title, channel, view, like and comment counts, duration, and links.
Use cases
- Spot which Shorts are gaining views right now to find topics for your own content.
- Track the channels and categories that appear most often in the trending list.
- Build a dashboard or feed that shows trending Shorts with thumbnails and links.
- Collect channel IDs from trending Shorts and pass them to a channel lookup for deeper research.
Request
curl -X POST "https://api.sandbase.ai/v1/api/youtube/trending-shorts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"shorts": [
{
"authorHandle": "globalmindapparel",
"authorId": "UC2pn4FHmt3Td-A2kkhcYAqg",
"authorUrl": "https://www.youtube.com/@globalmindapparel",
"category": "People & Blogs",
"channelTitle": "Global Mind Apparel",
"comments": 16000,
"createdUtc": 1790109026,
"duration": "00:02:24",
"durationMs": 144000,
"id": "jm-1NeOounQ",
"image": "https://img.youtube.com/vi/jm-1NeOounQ/maxresdefault.jpg",
"likes": 321806
}
]
},
"found": true
}
Response fields
| Field | Meaning |
|---|---|
data.shorts[].id | The YouTube video ID of the Short. |
data.shorts[].title | The title of the Short. |
data.shorts[].url | Link to the Short on YouTube. |
data.shorts[].image | Thumbnail image URL for the Short. |
data.shorts[].views / likes / comments | Counts of views, likes and comments on the Short. |
data.shorts[].duration / durationMs | Length of the Short as an HH:MM:SS string and in milliseconds. |
data.shorts[].channelTitle / authorHandle | Display name and @ handle of the channel that posted the Short. |
data.shorts[].authorId / authorUrl | The channel ID (starts with UC) and the channel page URL. |
data.shorts[].category | The YouTube category of the Short, for example Entertainment. |
data.shorts[].createdUtc | Creation time of the Short as a Unix timestamp in seconds. |
Notes
- The endpoint takes no parameters. Send
{}as the body. - Use
authorIdwith YouTube Channel or YouTube Channel Shorts to look at the channel behind a Short. - Pass
idto YouTube Video Details to get more data about a single Short. durationcan be longer than one minute, so checkdurationMsif you need to filter by length.
Pricing
Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Inizia a costruire
Invia la tua prima richiesta
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/trending-shorts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Autenticazione
Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
3. Parametri
Non è stato pubblicato alcuno schema dei parametri per questa API.
4. Risposta
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
API correlate
| API | Prezzo | Risposta |
|---|---|---|
YouTube Trending ShortsQuesta API YouTube | Da $0.0012 per chiamata | JSON |
YouTube | Da $0.00045 per chiamata | JSON |
YouTube | Da $0.0012 per chiamata | JSON |
YouTube | Da $0.0012 per chiamata | JSON |
YouTube | Da $0.0012 per chiamata | JSON |
YouTube | $0.014286 per chiamata | JSON |
Domande
FAQ
Come uso l'API YouTube Trending Shorts?
Invia una richiesta POST a https://api.sandbase.ai/v1/api/youtube/trending-shorts con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
Quanto costa l'API YouTube Trending Shorts?
A partire da $0.0012 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Quali parametri accetta l'API YouTube Trending Shorts?
YouTube Trending Shorts non accetta parametri di input; invia un body JSON vuoto.
Cosa restituisce l'API YouTube Trending Shorts?
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
Mi serve un account sviluppatore o una chiave API YouTube?
No. YouTube Trending Shorts funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API YouTube.
