YouTube Signed Video Stream URL

https://api.sandbase.ai/v1/api/youtube/web-v2/signed-stream-url

Returns a signed playback stream URL for a specific YouTube video format. Requires a format itag identifier alongside either a video ID or full video link.

Price
$0.0015USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 2 optional
Production route

Try the model

Playground

Open playground
Input
Format identifier, selected from formats list returned by get_video_streams
Video ID (recommended)
Full video URL (optional)
OutputExample
Responseoutputs · 1.4 KB · 9 lines
[
  {
    "data": {
      "expires_in_seconds": 21600,
      "itag": 18,
      "url": "https://rr6---sn-bvvbaxivnuxqjvhj5nu-hp56.googlevideo.com/videoplayback?expire=1790713536&ei=YMq7aqHfG_yLut0P-tTSSQ&ip=76.153.140.203&id=o-AFy0UPGNBbD9EAfvG-1LN4Ye9_CrF5MOUXqWHJjzKY7H&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1790691936%2C&mh=7c&mm=18%2C29&mn=sn-bvvbaxivnuxqjvhj5nu-hp56%2Csn-hp57knk7&ms=aub%2Crdu&mv=m&mvi=6&pl=23&rms=aub%2Caub&initcwndbps=4024500&bui=AWzQHwrkGdalR1KzZo862nm05ap9aIF1UE7YfGBWL4YbLSGNh82tuy5DdfQjXvYrJbcMD8qhdAdSk643&spc=I-rgIRoihLWN_AtuHQdSzB9qnW93I9Vsc6DVqsVNW3CV-l3kEZd2tdS7jnjdCTEPx7xbFU7UIO7s5eeRl5Iw7OIO6qd5O_dO7s0&vprv=1&svpuc=1&mime=video%2Fmp4&ns=wBYJZt1uSqDVpWlO_lABDsQY&rqh=1&cnr=14&ratebypass=yes&dur=213.089&lmt=1766960953317159&mt=1790691421&fvip=3&fexp=51565116%2C52178456&c=MWEB&sefc=1&txp=5538534&n=4Du1G5So5qGJnw&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Ccnr%2Cratebypass%2Cdur%2Clmt&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=APaTxxMwRQIgDRHF7VZ5A03BQwYLxlxLpajtz1ebodTpXiLcvRiXGNoCIQCjXa2JiuxaSluCeK040PeAgek4o3gP3FOq3LVToUBWFQ%3D%3D&sig=AE0s2JYwRAIgSn9SHUZkKER_A3D9N8RB-hMq01px7yoGXQ9zTt3h-_0CIGPOX1u6iTAQWYSwizEt30qgaodwBFGOyf7hMS32Jk3f&pot=MlvWsnuMm-_GP9b2uLjOVB8cdGgj9ZwS3TIKO5KYvT00or0pZWDBXxPwRBJBNltGt70kt5-XfZs9saj-rsV5ZzwegiFWWkvIPLPlhiJzmvU3qkclUBjc92okLO2Z"
    }
  }
]

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.0015 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

itag
integer · required
video_id
string · optional
video_url
string · optional

Access

Provider
YouTube
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/youtube/web-v2/signed-stream-url
Authentication
Bearer API key

API README

YouTube Signed Video Stream URL API

Returns a signed playback stream URL ready for playback using a format itag and either a video_id or video_url.

Use cases

  • Stream a selected YouTube video format in a media player.
  • Obtain direct playback links based on a specific format itag.
  • Access playable video streams using either a video ID or full URL.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/signed-stream-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"itag": 18}'

Parameters

NameTypeRequiredDescription
itagintegerYesFormat identifier, selected from formats list returned by get_video_streams
video_idstringNoVideo ID (recommended)
video_urlstringNoFull video URL (optional)

Notes

  • The itag value must come from the formats list returned by the video streams endpoint.
  • Supply either video_id (recommended) or video_url to specify the target video.

Related APIs

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/youtube/web-v2/signed-stream-url
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/signed-stream-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "itag": 18,
  "video_id": "dQw4w9WgXcQ"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
YouTube$0.0015 per callJSONJul 31, 2026
YouTube$0.0015 per callJSONJul 31, 2026
YouTube$0.0015 per callJSONJul 31, 2026
YouTube$0.0015 per callJSONJul 31, 2026
YouTube$0.0015 per callJSONJul 31, 2026
YouTube$0.0015 per callJSONJul 31, 2026

Questions

FAQ

How do I use the YouTube Signed Video Stream URL API?

Send a POST request to https://api.sandbase.ai/v1/api/youtube/web-v2/signed-stream-url with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the YouTube Signed Video Stream URL API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the YouTube Signed Video Stream URL API accept?

Required: itag (integer). Optional: video_id (string) and video_url (string). The Parameters table and the Playground on this page list every field.

What does the YouTube Signed Video Stream URL API return?

A JSON response returned in the same HTTP request (synchronous).

Do I need a YouTube developer account or API key?

No. YouTube Signed Video Stream URL runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for YouTube API access separately.