YouTube video metadata and stats by video id
justoneapi.youtube.video.detailPublic metadata and stats for a YouTube video by video id
- Price
- $0.01476/successAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 488 calls
- Latency p50
- 3.9 sp95 7.1 s
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.youtube.video.detail?videoId=jNQXAC9IVRwPreviewTry onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
videoId | chaîne | Obligatoire | the v= id from the watch URL | jNQXAC9IVRw |
- Paramètres de requête
videoIdchaîneObligatoirethe v= id from the watch URL
Exemple :
jNQXAC9IVRw
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.youtube.video.detail?videoId=jNQXAC9IVRw' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.youtube.video.detail?videoId=jNQXAC9IVRw",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.youtube.video.detail?videoId=jNQXAC9IVRw", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.01476/success, frais de service inclus.