Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

YouTube Channel Shorts

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.

價格
$0.014286美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 1 個選填

Playground

輸入
The UC-prefixed unique identifier for a YouTube channel. @username handles are not supported.
Pagination token returned by the previous response.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

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.

探索更多

相關 APIs

所有 APIs
API價格回應
YouTube每次呼叫 $0.014286JSON
YouTube每次呼叫 $0.00045 起JSON
YouTube每次呼叫 $0.0012 起JSON
YouTube每次呼叫 $0.0012 起JSON
YouTube每次呼叫 $0.0012 起JSON
YouTube每次呼叫 $0.014286JSON

指南:Best YouTube API in 2026: Pricing Compared

問題

常見問題

我要如何使用 YouTube Channel Shorts API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/youtube/channel-shorts。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

YouTube Channel Shorts API 的費用是多少?

每次 $0.014286,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

YouTube Channel Shorts API 接受哪些參數?

必要:channelId (string)。 選填:continuationToken (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

YouTube Channel Shorts API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 YouTube 開發者帳號或 API 金鑰嗎?

不需要。YouTube Channel Shorts 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 YouTube API 存取權。