Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

YouTube Channel Shorts

Docs da 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.

Preço
$0.014286USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 1 opcionais

Playground

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

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
YouTube$0.014286 por chamadaJSON
YouTubeA partir de $0.00045 por chamadaJSON
YouTubeA partir de $0.0012 por chamadaJSON
YouTubeA partir de $0.0012 por chamadaJSON
YouTubeA partir de $0.0012 por chamadaJSON
YouTube$0.014286 por chamadaJSON

Guias:Best YouTube API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API YouTube Channel Shorts?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/youtube/channel-shorts com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API YouTube Channel Shorts?

$0.014286 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API YouTube Channel Shorts aceita?

Obrigatórios: channelId (string). Opcionais: continuationToken (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API YouTube Channel Shorts retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor YouTube ou de uma chave de API?

Não. YouTube Channel Shorts funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do YouTube separadamente.