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

YouTube Video Information (V2)

API 문서
https://api.sandbase.ai/v1/api/youtube/web-v2/video-info-v2

Returns comprehensive details for a YouTube video identified by its ID or direct URL, with an option to retrieve a cleaned payload format.

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

Playground

입력
Whether to return cleaned payload. Default `True`
Video ID, e.g. `"dQw4w9WgXcQ"`
Full video URL (ignored if video_id provided)
출력준비됨

출력이 여기에 표시됩니다

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

API README

YouTube Video Information (V2) API

Returns details for one YouTube video, including title, description, channel info, view and like counts, captions, and end screen items. The input is a video_id or a full video_url.

Use cases

  • Pull the title, description, keywords and thumbnail of a video to show in a media app or catalog.
  • Check which countries a video is available in and whether it is unlisted, private or family safe.
  • List the caption languages of a video before you fetch the text.
  • Find the channel ID and handle behind a video link, then look up that channel.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/video-info-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"video_id": "dQw4w9WgXcQ", "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}'

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

Parameters

NameTypeRequiredDescription
need_formatbooleanNoWhether to return cleaned payload. Default True
video_idstringNoVideo ID, e.g. "dQw4w9WgXcQ"
video_urlstringNoFull video URL (ignored if video_id provided)

Example response

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

{
  "allow_ratings": true,
  "author": "Rick Astley",
  "available_countries": [
    "AD"
  ],
  "badge_tooltip": "音乐人官方频道",
  "captions": [
    {
      "base_url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&ei=0JHpavCVKrGXsfIPlfGYkA0&c…",
      "is_translatable": true,
      "kind": "",
      "language_code": "de-DE",
      "language_name": "德语(德国)"
    }
  ],
  "category": "Music",
  "channel_avatar_thumbnails": [
    {
      "height": 48,
      "url": "https://yt3.ggpht.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm5lWm1UroLyVx…",
      "width": 48
    }
  ],
  "channel_handle": "@RickAstleyYT",
  "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
  "channel_url": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
  "chapters": null,
  "comment_count": "246万"
}

Response fields

FieldMeaning
title / authorTitle of the video and the name of the channel that posted it.
channel_id / channel_handle / channel_urlIdentifiers and link for the channel that owns the video.
descriptionVideo description text. Long text may be cut.
publish_datePublish time as an ISO 8601 timestamp with a UTC offset, such as 2009-10-24T23:57:33-07:00.
length_secondsVideo length in seconds. The value is a string.
like_count / like_count_textLike count as a plain number string, and the same count as display text.
short_view_count / comment_count / subscriber_count_textDisplay text for views, comments and channel subscribers. The text is localized and rounded, for example 18亿次观看.
captions[]Available caption tracks. Each row has language_code, language_name, is_translatable and a base_url for the caption file.
endscreen[]End screen items. style shows whether the item is a CHANNEL or a VIDEO. Video items carry video_id and title.
is_verified / is_unlisted / is_private / is_live_content / is_family_safeFlags for channel verification, visibility, live content and family safety.
available_countriesList of country codes where the video can be watched.

Notes

  • Send either video_id or video_url. If you send both, video_url is ignored.
  • The video_id is the value after v= in a watch URL, for example dQw4w9WgXcQ.
  • Display text fields such as comment_count and short_view_count follow a localized format. Use like_count and length_seconds for numeric strings.
  • To read comments, call YouTube Video Comments. To get more videos like this one, call YouTube Related Videos (Web V2).

Pricing

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

더 살펴보기

관련 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 Video Information (V2) API를 어떻게 사용하나요?

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

YouTube Video Information (V2) API 비용은 얼마인가요?

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

YouTube Video Information (V2) API는 어떤 매개변수를 받나요?

필수 매개변수는 없습니다. 선택: need_format (boolean), video_id (string) 및 video_url (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

YouTube Video Information (V2) API는 무엇을 반환하나요?

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

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

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