YouTube channel videos by channel id
justoneapi.x.youtube-get-channel-videos-v1Retrieve public videos from a YouTube channel, with optional cursor-based pagination.
- Price
- $0.01476/successAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 308 calls
- Latency p50
- 1.8 sp95 2.9 s
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-channel-videos-v1?cursor=0&channelId=UC_x5XG1OV2P6uZZ5FSM9TtwPreviewTry onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
cursor | chaîne | Facultatif | The cursor for pagination. | 0 |
channelId | chaîne | Obligatoire | The unique identifier for a YouTube channel. | UC_x5XG1OV2P6uZZ5FSM9Ttw |
- Paramètres de requête
cursorchaîneFacultatifThe cursor for pagination.
Exemple :
0channelIdchaîneObligatoireThe unique identifier for a YouTube channel.
Exemple :
UC_x5XG1OV2P6uZZ5FSM9Ttw
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-channel-videos-v1?cursor=0&channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-channel-videos-v1?cursor=0&channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw",
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.x.youtube-get-channel-videos-v1?cursor=0&channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw", {
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.