Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

YouTube Signed Video Stream URL

Documentación de la 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.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 2 opcionales
100 llamadas gratis / díaLas primeras 100 llamadas de cada día son gratis (compartidas por organización) · Se restablecen a las 00:00 UTC. Después, pago por llamada.

Entorno de pruebas

Entrada
Format identifier, selected from formats list returned by get_video_streams
Video ID (recommended)
Full video URL (optional)
SalidaEjemplo
Respuestaoutputs · 701 B · 9 líneas
[
  {
    "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…"
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON
YouTube$0.001 por llamadaJSON

Guías:Best YouTube API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de YouTube Signed Video Stream URL?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/youtube/web-v2/signed-stream-url con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de YouTube Signed Video Stream URL?

$0.001 por llamada. Cada organización obtiene 100 llamadas gratis por día UTC, compartidas entre las APIs elegibles de SandBase, incluida esta; después, cada llamada se factura a este precio desde tu saldo de SandBase. No hay suscripción.

¿Qué parámetros acepta la API de YouTube Signed Video Stream URL?

Requeridos: itag (integer). Opcionales: video_id (string) y video_url (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de YouTube Signed Video Stream URL?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica).

¿Necesito una cuenta de desarrollador o una clave API de YouTube?

No. YouTube Signed Video Stream URL funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de YouTube por separado.