Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

YouTube Channel Short Videos

API 文档
https://api.sandbase.ai/v1/api/youtube/web/channel-short-videos

Returns a list of YouTube Shorts from a specified channel. Supports pagination through an optional continuation token to browse additional short videos.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 1 个可选

Playground

输入
Channel ID.
Token to continue fetching channel short videos. Default is None.
输出示例
响应outputs · 3.6 KB · 88 行
[
  {
    "data": {
      "continuation_token": "4qmFsgLDCxIYVUNYdXFTQmxIQUU2WHcteWVKQTBUdW53GqYLOGdhMkNCcXpDRkt3Q0RLdENBb2tObUZsTkdObFlqa3RNREF3TUMweVpXWTJMVGxrTVRFdE56UTNORFEyTTJWbE4yWmtFb0lJUVdWUFdWTkxTMHRXYVZwbmVqQnZTVWd4YURGQmNtYzBOSFJ6UzNrdFpURnVSVWxyUlhKWFRXeFdPWFZFY214dVRVWnZlalJqVEdsMU1YcG1SMVI0YlVaU1MxTkZNVlEzTmtaVWRFWXhhSHBwUlU1cE1TMDVSRkp2U25aQlZWbFlWRFozVmxWMlNGazJjWFpWY0cwdGFsTXRkbkJhTkdsaU5FWTFXSFl0VGtkaGJrWnZRVmR6U1hkemRFTTFOWGRpV1U0eGQzSkxkV1JPYlMwemVUbFRWbk5pTXprM01tNDFPWFV6Wm14M01IVjVOemRYVEdNNFltRTFNbU0yWVRKVlluUk5aVlpuV2s5R1MwVnZPUzEwUW5aWlNubEdVVFZRVmpWdVMzY3lRekF4VTNONlFrZGlWa0ZDTUdWNExVUkdiM05NV0daVFFtTm1NMEZXYVd0VlZY…",
      "videos": [
        {
          "author": null,
          "category": null,
          "channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
          "description": null,
          "is_live_content": null,
          "keywords": [],
          "number_of_views": 119000,
          "published_time": "",
          "thumbnails": [
            {
              "height": 720,
              "url": "https://i.ytimg.com/vi/vzg5cv785j4/oardefault.jpg?sqp=-oaymwEoCJUDENAFSFqQAgHyq4qpAxcIARUAAIhC2AEB4gEKCBgQAhgGOAFAAQ==&rs=AOn4CLB1k-tw5VxCisxO5eqwJnP150aXKQ&usqp=CCk",
              "width": 405
            },
            {
              "height": 608,
              "url": "https://i.ytimg.com/vi/vzg5cv785j4/oardefault.jpg?sqp=-oaymwErCJUDEOAESFqQAgHyq4qpAxoIARUAAIhCyAEB2AEB4gEKCBgQAhgGOAFAAQ==&rs=AOn4CLDiCxfwNT25rh5KVdNo7CTcf5AygQ&usqp=CCk",
              "width": 405
            }
          ],
          "title": "What’s the Most Cost Effective Tech Upgrades",
          "type": "SHORTS",
          "video_id": "vzg5cv785j4",
          "video_length": ""
        },
        {
          "author": null,
          "category": null,
          "channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
          "description": null,
          "is_live_content": null,
          "keywords": [],
          "number_of_views": 508000,
          "published_time": "",
          "thumbnails": [
            {
              "height": 720,
              "url": "https://i.ytimg.com/vi/ofNcSiFpDUk/sardefault.jpg?sqp=-oaymwEoCJUDENAFSFqQAgHyq4qpAxcIARUAAIhC2AEB4gEKCBgQAhgGOAFAAQ==&rs=AOn4CLDYfAFpHOzZO0FC3iiSGTI23olD7A",
              "width": 405
            },
            {
              "height": 608,
              "url": "https://i.ytimg.com/vi/ofNcSiFpDUk/sardefault.jpg?sqp=-oaymwErCJUDEOAESFqQAgHyq4qpAxoIARUAAIhCyAEB2AEB4gEKCBgQAhgGOAFAAQ==&rs=AOn4CLA5xoz-l_wVfDkgQopoXRVgpGm4bw",
              "width": 405
            }
          ],
          "title": "Tech Russian Roulette with True or False Questions!",
          "type": "SHORTS",
          "video_id": "ofNcSiFpDUk",
          "video_length": ""
        },
        {
          "author": null,
          "category": null,
          "channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
          "description": null,
          "is_live_content": null,
          "keywords": [],
          "number_of_views": 607000,
          "published_time": "",
          "thumbnails": [
            {
              "height": 603,
              "url": "https://i.ytimg.com/vi_webp/1Z5bbuLPwX4/sardefault.webp",
              "width": 339
            },
            {
              "height": 509,
              "url": "https://i.ytimg.com/vi/1Z5bbuLPwX4/sardefault.jpg?sqp=-oaymwErCNMCEP0DSFqQAgHyq4qpAxoIARUAAIhCyAEB2AEB4gEKCBgQAhgGOAFAAQ==&rs=AOn4CLALn9gitvbD5nupXnd2oY9K3cVWxQ",
              "width": 339
            }
          ],
          "title": "YouTuber Merch Tier List",
          "type": "SHORTS",
          "video_id": "1Z5bbuLPwX4",
          "video_length": ""
        },
        "… 45 more items in the full response"
      ]
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

YouTube Channel Short Videos API

Returns a list of YouTube Shorts for one channel. Each item has the video ID, title, view count and thumbnails. You send a channel_id, and you can add a continuation_token to get the next page.

Use cases

  • Build a list of a creator's Shorts with titles and thumbnails for a content dashboard.
  • Compare number_of_views across Shorts to find a channel's top-performing short videos.
  • Collect video_id values from a channel to fetch full details for each Short.
  • Page through a channel's full Shorts catalog to archive titles and links.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web/channel-short-videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw"}'

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

Parameters

NameTypeRequiredDescription
channel_idstringYesChannel ID.
continuation_tokenstringNoToken to continue fetching channel short videos. Default is None.

Example response

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

{
  "continuation_token": "4qmFsgLB…",
  "videos": [
    {
      "author": null,
      "category": null,
      "channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
      "description": null,
      "is_live_content": null,
      "keywords": [],
      "number_of_views": 156000,
      "published_time": "",
      "thumbnails": [
        {
          "height": 720,
          "url": "https://i.ytimg.com/vi/9st7OYkUHJk/sardefault.jpg?sqp=-oaymwEoCJUDENAFSFqQAgHyq4…",
          "width": 405
        }
      ],
      "title": "Ep. 35 - Best Tech for a Deserted Island...",
      "type": "SHORTS",
      "video_id": "9st7OYkUHJk"
    }
  ]
}

Response fields

FieldMeaning
videos[]One Short from the channel. The list holds the Shorts for the current page.
videos[].video_idYouTube video ID of the Short, for example 9st7OYkUHJk.
videos[].titleTitle of the Short. Long titles can appear cut off with ....
videos[].number_of_viewsView count as a number, for example 156000.
videos[].typeKind of video. Every item here has the value SHORTS.
videos[].channel_idID of the channel that owns the Short.
videos[].thumbnails[]Thumbnail images for the Short. Each entry has a url, a width and a height.
continuation_tokenToken for the next page of Shorts. Send it back as continuation_token in the next request.
videos[].author / videos[].category / videos[].description / videos[].published_time / videos[].video_lengthThese fields were null or empty in this response. Do not rely on them for this API.

Notes

Pricing

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

探索更多

相关 APIs

全部 APIs
API价格响应
YouTube$0.001 每次调用JSON
YouTube$0.001 每次调用JSON
YouTube$0.001 每次调用JSON
YouTube$0.001 每次调用JSON
YouTube$0.001 每次调用JSON
YouTube$0.001 每次调用JSON

指南:Best YouTube API in 2026: Pricing Compared

问题

常见问题

如何使用 YouTube Channel Short Videos API?

向 https://api.sandbase.ai/v1/api/youtube/web/channel-short-videos 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

YouTube Channel Short Videos API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

YouTube Channel Short Videos API 接受哪些参数?

必填:channel_id (string)。 可选:continuation_token (string)。 Parameters 表和本页的 Playground 列出了每个字段。

YouTube Channel Short Videos API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 YouTube 开发者账户或 API key 吗?

不需要。YouTube Channel Short Videos 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 YouTube API 访问权限。