Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

YouTube Trending Shorts

Documentazione API
https://api.sandbase.ai/v1/api/youtube/trending-shorts

List currently trending YouTube Shorts (title, channel, views, likes, duration).

Prezzo
Da $0.0012USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
0 obbligatori · 0 opzionali

Playground

Input
Nessuno schema di input disponibile
OutputPronto

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

FieldMeaning
data.shorts[].idThe YouTube video ID of the Short.
data.shorts[].titleThe title of the Short.
data.shorts[].urlLink to the Short on YouTube.
data.shorts[].imageThumbnail image URL for the Short.
data.shorts[].views / likes / commentsCounts of views, likes and comments on the Short.
data.shorts[].duration / durationMsLength of the Short as an HH:MM:SS string and in milliseconds.
data.shorts[].channelTitle / authorHandleDisplay name and @ handle of the channel that posted the Short.
data.shorts[].authorId / authorUrlThe channel ID (starts with UC) and the channel page URL.
data.shorts[].categoryThe YouTube category of the Short, for example Entertainment.
data.shorts[].createdUtcCreation time of the Short as a Unix timestamp in seconds.

Notes

  • The endpoint takes no parameters. Send {} as the body.
  • Use authorId with YouTube Channel or YouTube Channel Shorts to look at the channel behind a Short.
  • Pass id to YouTube Video Details to get more data about a single Short.
  • duration can be longer than one minute, so check durationMs if 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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
YouTubeDa $0.0012 per chiamataJSON
YouTubeDa $0.00045 per chiamataJSON
YouTubeDa $0.0012 per chiamataJSON
YouTubeDa $0.0012 per chiamataJSON
YouTubeDa $0.0012 per chiamataJSON
YouTube$0.014286 per chiamataJSON

Guide:Best YouTube API in 2026: Pricing Compared

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.