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
- freePelo preço do provedor
- Success rate
- 100%Last 30 days · 64 calls
- Latency p50
- 329 msp95 501 ms
- Last verified
- 28 de jul. de 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
part | string | Obrigatório | snippet | |
type | string | Obrigatório | must be 'video' whenever forMine is set — the API rejects any other type | video |
order | string | Opcional | date (default relevance) | rating | title | viewCount | date |
forMine | booleano | Obrigatório | restricts results to the connected account's videos | true |
pageToken | string | Opcional | nextPageToken from the previous response | |
maxResults | inteiro | Opcional | 1–50, default 5 | 25 |
- Parâmetros de consulta
partstringObrigatórioExemplo:
snippettypestringObrigatóriomust be 'video' whenever forMine is set — the API rejects any other type
Exemplo:
videoorderstringOpcionaldate (default relevance) | rating | title | viewCount
Exemplo:
dateforMinebooleanoObrigatóriorestricts results to the connected account's videos
Exemplo:
truepageTokenstringOpcionalnextPageToken from the previous response
maxResultsinteiroOpcional1–50, default 5
Exemplo:
25
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.