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

YouTube Video Streams

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

Returns stream details and media information for a specified YouTube video. Queries accept either a direct video identifier or a full video URL.

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

Playground

입력
Video ID (recommended)
Full video URL (optional, ignored if video_id is provided)
출력준비됨

출력이 여기에 표시됩니다

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

API README

YouTube Video Streams API

Returns the downloadable stream formats for one YouTube video, with basic video details such as title, author and length. It needs a video_id or a full video_url.

Use cases

  • List the available audio and video formats for a video before choosing one to download.
  • Pick an audio-only stream by itag and mime_type for a podcast or transcription tool.
  • Check the available resolutions for a video before building a playback or preview tool.
  • Read the title, author, duration and view count of a video in the same call as its streams.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/video-streams" \
  -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
video_idstringNoVideo ID (recommended)
video_urlstringNoFull video URL (optional, ignored if video_id is provided)

Example response

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

{
  "adaptive_formats": [
    {
      "audio_quality": 30.813,
      "audio_sample_rate": 22050,
      "bitrate": 30.813,
      "content_length": 821022,
      "fps": null,
      "has_signature": false,
      "height": null,
      "itag": 599,
      "mime_type": "audio/mp4",
      "quality": "ultralow",
      "quality_label": "audio only",
      "type": "audio"
    }
  ],
  "author": "Rick Astley",
  "available_qualities": [
    "audio only"
  ],
  "expires_in_seconds": 21600,
  "formats": [
    {
      "audio_quality": null,
      "audio_sample_rate": 44100,
      "bitrate": 444.226,
      "content_length": 11832459,
      "fps": 25,
      "has_signature": false,
      "height": 360,
      "itag": 18,
      "mime_type": "video/mp4",
      "quality": "360p",
      "quality_label": "640x360",
      "type": "video"
    }
  ],
  "is_live": false,
  "length_seconds": 213,
  "short_description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Au…",
  "strategy": "account_mweb",
  "thumbnail": [
    {
      "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp"
    }
  ],
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "video_id": "dQw4w9WgXcQ"
}

Response fields

FieldMeaning
title / author / video_idTitle of the video, name of the channel that published it, and the video ID.
length_secondsLength of the video in seconds.
view_countNumber of views on the video.
is_liveWhether the video is a live stream (false for this video).
available_qualitiesList of quality labels offered, such as audio only, 854x480 and 640x360.
formats[]Streams that carry video and audio together. Each row has itag, mime_type, quality_label, width, height, fps, bitrate and content_length.
adaptive_formats[]Separate streams, such as audio only. Each row has type, itag, mime_type, quality_label, audio_sample_rate, bitrate and content_length.
formats[].url / adaptive_formats[].urlDirect link to the media stream for that format.
expires_in_secondsNumber of seconds given for the stream URLs, 21600 in this response.
thumbnail[].urlLink to a thumbnail image of the video.

Notes

  • Send video_id when you have it. video_url is ignored if video_id is provided.
  • The video_id is the 11-character value after v= in a YouTube watch URL, such as dQw4w9WgXcQ.
  • Fields like width, height and fps are null for audio-only streams.
  • For video details without stream links, see YouTube Video Information. For another stream response, see YouTube Video Streams (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 Streams API를 어떻게 사용하나요?

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

YouTube Video Streams API 비용은 얼마인가요?

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

YouTube Video Streams API는 어떤 매개변수를 받나요?

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

YouTube Video Streams API는 무엇을 반환하나요?

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

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

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