Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

YouTube Signed Video Stream URL

Documentazione API
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.

Prezzo
$0.001USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 2 opzionali
100 chiamate gratuite / giornoPrime 100 chiamate al giorno gratuite (condivise per organizzazione) · Si azzera alle 00:00 UTC. Dopo, pagamento per chiamata.

Playground

Input
Format identifier, selected from formats list returned by get_video_streams
Video ID (recommended)
Full video URL (optional)
OutputEsempio
Rispostaoutputs · 701 B · 9 righe
[
  {
    "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…"
    }
  }
]

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

README API

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.

Pricing

Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON
YouTube$0.001 per chiamataJSON

Guide:Best YouTube API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API YouTube Signed Video Stream URL?

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.

Quanto costa l'API YouTube Signed Video Stream URL?

$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.

Quali parametri accetta l'API YouTube Signed Video Stream URL?

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.

Cosa restituisce l'API YouTube Signed Video Stream URL?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona).

Mi serve un account sviluppatore o una chiave API YouTube?

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.