Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

YouTube Channel Shorts

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

Prix
$0.014286USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 1 facultatifs

Bac à sable

Entrée
The UC-prefixed unique identifier for a YouTube channel. @username handles are not supported.
Pagination token returned by the previous response.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
YouTube$0.014286 par appelJSON
YouTubeÀ partir de $0.00045 par appelJSON
YouTubeÀ partir de $0.0012 par appelJSON
YouTubeÀ partir de $0.0012 par appelJSON
YouTubeÀ partir de $0.0012 par appelJSON
YouTube$0.014286 par appelJSON

Guides :Best YouTube API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API YouTube Channel Shorts ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/youtube/channel-shorts avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API YouTube Channel Shorts ?

$0.014286 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API YouTube Channel Shorts accepte-t-elle ?

Obligatoire : channelId (string). Facultatif : continuationToken (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API YouTube Channel Shorts ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API YouTube ?

Non. YouTube Channel Shorts fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API YouTube séparément.