List your YouTube videos, private and unlisted included
youtube.youtube.channel.videosList your own channel's videos, newest first (includes private and unlisted ones)
- Price
- freeAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 64 calls
- Latency p50
- 329 msp95 501 ms
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/youtube.youtube.channel.videos?part=snippet&type=video&channelId=UCBR8-60-B28hp2BmDPdntcQ&maxResults=2Preview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
part | chaîne | Obligatoire | snippet | |
type | chaîne | Obligatoire | must be 'video' whenever forMine is set — the API rejects any other type | video |
order | chaîne | Facultatif | date (default relevance) | rating | title | viewCount | date |
forMine | booléen | Obligatoire | restricts results to the connected account's videos | true |
pageToken | chaîne | Facultatif | nextPageToken from the previous response | |
maxResults | entier | Facultatif | 1–50, default 5 | 25 |
- Paramètres de requête
partchaîneObligatoireExemple :
snippettypechaîneObligatoiremust be 'video' whenever forMine is set — the API rejects any other type
Exemple :
videoorderchaîneFacultatifdate (default relevance) | rating | title | viewCount
Exemple :
dateforMinebooléenObligatoirerestricts results to the connected account's videos
Exemple :
truepageTokenchaîneFacultatifnextPageToken from the previous response
maxResultsentierFacultatif1–50, default 5
Exemple :
25
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/youtube.youtube.channel.videos?part=snippet&type=video&channelId=UCBR8-60-B28hp2BmDPdntcQ&maxResults=2' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/youtube.youtube.channel.videos?part=snippet&type=video&channelId=UCBR8-60-B28hp2BmDPdntcQ&maxResults=2",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/youtube.youtube.channel.videos?part=snippet&type=video&channelId=UCBR8-60-B28hp2BmDPdntcQ&maxResults=2", {
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 à free, frais de service inclus.