Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

YouTube Signed Video Stream URL

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

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 2 facultatifs
100 appels gratuits / jourLes 100 premiers appels par jour sont gratuits (partagés par organisation) · Réinitialisation à 00:00 UTC. Ensuite, paiement à l'appel.

Bac à sable

Entrée
Format identifier, selected from formats list returned by get_video_streams
Video ID (recommended)
Full video URL (optional)
SortieExemple
Réponseoutputs · 701 B · 9 lignes
[
  {
    "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…"
    }
  }
]

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON
YouTube$0.001 par appelJSON

Guides :Best YouTube API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API YouTube Signed Video Stream URL ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/youtube/web-v2/signed-stream-url avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API YouTube Signed Video Stream URL ?

$0.001 par appel. Chaque organisation bénéficie de 100 appels gratuits par jour UTC, partagés entre les API SandBase éligibles, y compris celle-ci ; au-delà, chaque appel est facturé à ce tarif depuis votre solde SandBase. Aucun abonnement.

Quels paramètres l’API YouTube Signed Video Stream URL accepte-t-elle ?

Obligatoire : itag (integer). Facultatif : video_id (string) et video_url (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API YouTube Signed Video Stream URL ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone).

Ai-je besoin d’un compte développeur ou d’une clé API YouTube ?

Non. YouTube Signed Video Stream URL fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API YouTube séparément.