YouTube Signed Video Stream URL
https://api.sandbase.ai/v1/api/youtube/web-v2/signed-stream-urlReturns 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
Try the model
Playground
[
{
"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
| Name | Type | Required | Description |
|---|---|---|---|
itag | integer | Yes | Format identifier, selected from formats list returned by get_video_streams |
video_id | string | No | Video ID (recommended) |
video_url | string | No | Full video URL (optional) |
Notes
- The
itagvalue must come from the formats list returned by the video streams endpoint. - Supply either
video_id(recommended) orvideo_urlto specify the target video.
Related APIs
- YouTube Channel Community Posts: Returns community posts from a specific YouTube channel, including text content, polls, votes, and comment counts.
- YouTube Channel Description: Returns YouTube channel details including subscriber counts, video totals, view counts, joined date, and social links.
- YouTube Channel ID from URL: Resolves a YouTube channel URL to its canonical channel ID.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# 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
| API | Price | Response | Released |
|---|---|---|---|
YouTube Signed Video Stream URLThis API YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 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.
