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
- freeAl precio del proveedor
- Success rate
- 100 %Last 30 days · 64 calls
- Latency p50
- 329 msp95 501 ms
- Last verified
- 28 jul 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
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
part | cadena | Obligatorio | snippet | |
type | cadena | Obligatorio | must be 'video' whenever forMine is set — the API rejects any other type | video |
order | cadena | Opcional | date (default relevance) | rating | title | viewCount | date |
forMine | booleano | Obligatorio | restricts results to the connected account's videos | true |
pageToken | cadena | Opcional | nextPageToken from the previous response | |
maxResults | entero | Opcional | 1–50, default 5 | 25 |
- Parámetros de consulta
partcadenaObligatorioEjemplo:
snippettypecadenaObligatoriomust be 'video' whenever forMine is set — the API rejects any other type
Ejemplo:
videoordercadenaOpcionaldate (default relevance) | rating | title | viewCount
Ejemplo:
dateforMinebooleanoObligatoriorestricts results to the connected account's videos
Ejemplo:
truepageTokencadenaOpcionalnextPageToken from the previous response
maxResultsenteroOpcional1–50, default 5
Ejemplo:
25
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.