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/successPelo preço do provedor
- Success rate
- 100%Last 30 days · 308 calls
- Latency p50
- 1.8 sp95 2.9 s
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-channel-videos-v1?cursor=0&channelId=UC_x5XG1OV2P6uZZ5FSM9TtwPreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
cursor | string | Opcional | The cursor for pagination. | 0 |
channelId | string | Obrigatório | The unique identifier for a YouTube channel. | UC_x5XG1OV2P6uZZ5FSM9Ttw |
- Parâmetros de consulta
cursorstringOpcionalThe cursor for pagination.
Exemplo:
0channelIdstringObrigatórioThe unique identifier for a YouTube channel.
Exemplo:
UC_x5XG1OV2P6uZZ5FSM9Ttw
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());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 $0.01476/success, incluindo a taxa de serviço.