Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

YouTube Channel Shorts

API 문서
https://api.sandbase.ai/v1/api/youtube/web-v2/channel-shorts

Returns a list of YouTube Shorts from a specified channel. Supports lookups by channel identifier or URL, optional response formatting, and pagination tokens for next-page results.

가격
$0.001USD / 호출
메서드
POST
응답
JSON
매개변수
필수 0개 · 선택 사항 4개
하루 100회 무료 호출하루 첫 100회 호출은 무료입니다(조직별 공유) · UTC 00:00에 초기화됩니다. 이후에는 호출당 요금이 부과됩니다.

Playground

입력
Channel ID (recommended, e.g., UCuAXFkgsw1L7xaCfnd5JJOw)
Channel URL (optional, ignored if channel_id is provided)
Pagination token (optional, for next page)
Whether to format data (default true)
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

API README

YouTube Channel Shorts API

Returns a page of YouTube Shorts for one channel, with each Short's title, video ID, URL, thumbnail and view count text. It needs a channel_id or a channel_url.

Use cases

  • Read a returned Shorts page for one selected creator; retain observation time before comparing later snapshots.
  • Build a feed of a channel's Shorts with titles, thumbnails and links.
  • Compare the view counts shown on Shorts across several channels.
  • Read the reported total_count alongside the observed page; it does not establish a complete channel archive.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/channel-shorts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw", "channel_url": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw"}'

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

Parameters

NameTypeRequiredDescription
channel_idstringNoChannel ID (recommended, e.g., UCuAXFkgsw1L7xaCfnd5JJOw)
channel_urlstringNoChannel URL (optional, ignored if channel_id is provided)
continuation_tokenstringNoPagination token (optional, for next page)
need_formatbooleanNoWhether to format data (default true)

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.
shorts[].video_urlDirect link to the Short on YouTube, in the form https://www.youtube.com/shorts/<video_id>.
shorts[].titleTitle of the Short, including any hashtags.
shorts[].view_count_textView count as display text, for example 4.9 thousand views. It is a rounded string, not a number.
shorts[].thumbnails[].url / shorts[].thumbnails[].width / shorts[].thumbnails[].heightThumbnail image link and its pixel size.
shorts[].accessibility_textScreen reader label that combines the title, the view count text and play Short.
total_countNumber of Shorts reported for the channel.
has_moretrue when more Shorts are available on a next page.
continuation_tokenToken to request the next page of Shorts.
channel_idID of the channel the Shorts belong to.

Notes

  • Send channel_id when you have it. The API ignores channel_url if channel_id is present.
  • To get the next page, send the continuation_token from the response in your next request, along with the same channel. Stop when has_more is false.
  • If you only have a channel URL, use YouTube Channel ID from URL to get the channel_id.
  • For regular uploads instead of Shorts, call YouTube Channel Videos.

Pricing

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

Read Shorts from one selected channel

Send channel_id when known, or channel_url when it is the identifier you have. The contract says channel_url is ignored when channel_id is present, so choose one instead of supplying two conflicting identities. Use need_format true and omit continuation_token for the first request. The schema marks both identifier fields optional but the described task still needs a channel selector.

The simplified README describes shorts with video_id, video_url, title and view_count_text. Search uses url and view_count instead; do not reuse its parser blindly. The selected page has no saved full example. Its shortened README shows one Short, total_count 48, has_more true and a truncated token. Those are reference values, not a newly queried channel total or proof that one item is the whole returned page.

Keep the requested channel and returned channel_id with each video ID. Preserve view_count_text and retrieval time; rounded strings such as 4.9 thousand views remain approximate after conversion. An accessibility label combines presentation text and is not a second independent count. A reported total_count does not prove you downloaded that many Shorts or that the sample includes private, removed or unavailable items.

For a separately selected later page, keep the same channel and use this route's complete returned continuation_token while checking has_more. No such continuation was tested for this revision. Do not reuse a Shorts Search token, infer a cursor from total_count, download thumbnails or open every video's comments. One channel page cannot establish a platform-wide trend.

Need discovery beyond a known channel? Start a separate Shorts Search with a defined keyword and filters.

Give your agent one Shorts sample task

Choose one keyword or one known channel before running. A connected agent needs that input, the selected endpoint and the result you want. For a new project, share the setup Skill, Markdown quickstart and your task. Keep SANDBASE_API_KEY locally and use POST /v1/api/ with Bearer authentication. Review one response before starting more pages, enrichment or scheduled comparisons.

Check completed SandBase status and an object at outputs[0].data, then require a shorts list for the selected simplified reference. A present empty list is a valid observation; missing or malformed data is an error. Do not silently turn provider failure into an empty result or retry the same business request automatically. Search and channel responses use different field names, so keep the source route with each saved record.

Pricing checked on 2026-11-08: Shorts Search lists $0.002 per call and Channel Shorts $0.001 per call. Both show eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility does not measure remaining allowance. Check current pricing before execution. No new business call was made for this revision. The YouTube Shorts Python guide retains its dated October experiment separately from current reference checks.

더 살펴보기

관련 API

모든 API
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

질문

FAQ

YouTube Channel Shorts API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/youtube/web-v2/channel-shorts에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

YouTube Channel Shorts API 비용은 얼마인가요?

호출당 $0.001. 모든 조직은 UTC 기준 하루에 100회의 무료 호출을 받으며, 이 API를 포함한 사용 가능 SandBase API 전반에서 공유됩니다. 이후에는 각 호출이 SandBase 잔액에서 이 요금으로 청구됩니다. 구독은 없습니다.

YouTube Channel Shorts API는 어떤 매개변수를 받나요?

채널 하나를 선택하려면 channel_id 또는 channel_url을 보내세요. 알고 있다면 channel_id를 우선 사용하세요. channel_id가 제공되면 channel_url은 무시됩니다. simplified reference에는 need_format true를 사용하고 첫 요청에서는 continuation_token을 생략하세요. 개별 필드가 선택 사항이라고 해서 빈 첫 요청이 채널을 식별한다는 뜻은 아닙니다.

YouTube Channel Shorts API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

YouTube 개발자 계정이나 API 키가 필요한가요?

아니요. YouTube Channel Shorts은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. YouTube API 액세스를 별도로 신청할 필요는 없습니다.

channel_id와 channel_url을 둘 다 보내야 하나요?

알려진 경우 channel_id를 선택하거나, channel_url을 사용하세요. 스키마에 따르면 channel_id가 있으면 channel_url은 무시됩니다. 단순화된 형태에는 need_format true를 사용하고, 처음에는 continuation token을 생략하세요. 빈 body만으로는 채널이 선택되지 않습니다.

Channel Shorts와 Shorts Search의 응답 필드는 동일한가요?

아니요. 채널 참조에는 video_url과 view_count_text가 사용되고, 검색에는 url과 view_count가 사용됩니다. 파서에는 소스 경로를 그대로 유지하세요. 채널 페이지에는 저장된 전체 예시가 없으며, 잘린 README 값은 새로운 실시간 결과가 아닙니다.

total_count가 채널의 전체 Shorts 기록을 가져왔다는 증거인가요?

아니요. 이는 보고된 개수일 뿐이며, 반환된 목록에 모든 Short가 포함되거나 비공개, 삭제됨, 사용 불가 항목이 포함된다는 증거가 아닙니다. 관찰된 목록과 채널 식별 정보를 기록하세요. 다음 페이지에는 이 경로가 반환한 token과 has_more 확인이 필요합니다.