itagintegerobbligatorio
Format identifier, selected from formats list returned by get_video_streams
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.
[
{
"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=vide…"
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
Returns a signed playback stream URL ready for playback using a format itag and either a video_id or video_url.
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}'
| 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) |
itag value must come from the formats list returned by the video streams endpoint.video_id (recommended) or video_url to specify the target video.Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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,
"video_id": "dQw4w9WgXcQ"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
itagintegerobbligatorioFormat identifier, selected from formats list returned by get_video_streams
video_idstringVideo ID (recommended)
video_urlstringFull video URL (optional)
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"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=vide…"
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
YouTube Signed Video Stream URLQuesta API YouTube | $0.001 per chiamata | JSON |
YouTube | $0.001 per chiamata | JSON |
YouTube | $0.001 per chiamata | JSON |
YouTube | $0.001 per chiamata | JSON |
YouTube | $0.001 per chiamata | JSON |
YouTube | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/youtube/web-v2/signed-stream-url con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata. Ogni organizzazione riceve 100 chiamate gratuite al giorno UTC, condivise tra le API SandBase idonee, inclusa questa; dopo, ogni chiamata viene addebitata a questo prezzo dal tuo saldo SandBase. Non c'è alcun abbonamento.
Richiesti: itag (integer). Facoltativi: video_id (string) e video_url (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona).
No. YouTube Signed Video Stream URL funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API YouTube.