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

YouTube Channel Shorts

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

Get public Shorts from a YouTube channel ID with optional continuation-token pagination. Use it to browse a channel's short-form videos and continue through additional result pages.

Prezzo
$0.014286USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 1 opzionali

Playground

Input
The UC-prefixed unique identifier for a YouTube channel. @username handles are not supported.
Pagination token returned by the previous response.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

YouTube Channel Shorts API

Returns a list of public Shorts from a YouTube channel. Each item has the title, video ID, link, thumbnail and a view count label. You send the channel's UC prefixed ID.

Use cases

  • Build a feed of a creator's latest Shorts for a dashboard or content archive.
  • Compare view count labels across a channel's Shorts to see which topics get attention.
  • Collect Short video IDs and URLs to pass to a video details or transcript API.
  • Pull Short thumbnails and titles to build a link preview or media gallery.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/channel-shorts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channelId": "UCuAXFkgsw1L7xaCfnd5JJOw"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
channelIdstringYesThe UC-prefixed unique identifier for a YouTube channel. @username handles are not supported.
continuationTokenstringNoPagination token returned by the previous response.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
  "continuation_token": "4qmFsgK5…",
  "has_more": true,
  "shorts": [
    {
      "accessibility_text": "This version of Never Gonna Give You Up still gets to us 😭 #nevergonnagiveyouup,…",
      "thumbnails": [
        {
          "height": 1920,
          "url": "https://i.ytimg.com/vi/TIRgIY2nwOk/frame0.jpg",
          "width": 1080
        }
      ],
      "title": "This version of Never Gonna Give You Up still gets to us 😭 #nevergonnagiveyouup",
      "video_id": "TIRgIY2nwOk",
      "video_url": "https://www.youtube.com/shorts/TIRgIY2nwOk",
      "view_count_text": "4.9 thousand views"
    }
  ],
  "total_count": 48
}

Response fields

FieldMeaning
shorts[].video_idThe ID of the Short. Use it to look up the video in other YouTube APIs.
shorts[].video_urlDirect youtube.com/shorts/ link to the Short.
shorts[].titleTitle of the Short, including any hashtags and emoji.
shorts[].view_count_textView count as display text, for example 4.9 thousand views. It is a rounded label, not a number.
shorts[].thumbnails[].url / shorts[].thumbnails[].width / shorts[].thumbnails[].heightThumbnail image link and its pixel size. The sample is 1080 by 1920, a vertical frame.
shorts[].accessibility_textScreen reader text that combines the title, the view count label and a play prompt.
has_moretrue when more Shorts are available on a later page.
continuation_tokenToken to send as continuationToken in the next request to get the next page.
total_countCount value returned with the response. In the sample it is 48.
channel_idThe channel ID the Shorts belong to.

Notes

  • channelId must start with UC. @username handles are not supported. To find the ID from a channel URL, try YouTube Channel ID from URL.
  • For the next page, pass the continuation_token value from the last response as continuationToken. Keep channelId the same. Continue while has_more is true.
  • To get full details for a Short, pass its video_id to YouTube Video Details.
  • To list the channel's regular uploads instead, use YouTube Channel Videos.

Pricing

$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
YouTube$0.014286 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 Channel Shorts?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/youtube/channel-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 Channel Shorts?

$0.014286 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API YouTube Channel Shorts?

Richiesti: channelId (string). Facoltativi: continuationToken (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API YouTube Channel 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 Channel 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.