YouTube channel videos by channel id
tikhub.youtube.channel.videosVideos of a YouTube channel by channel id
- Price
- $0.001/successPelo preço do provedor
- Success rate
- 100%Last 30 days · 16.694 calls
- Latency p50
- 982 msp95 1.9 s
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.youtube.channel.videos?channel_id=UCX6OQ3DkcsbYNE6H8uQQuVA&language_code=en-USPreviewTry 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 | ||||
channel_id | string | Obrigatório | UC… channel id | UCX6OQ3DkcsbYNE6H8uQQuVA |
need_format | booleano | Opcional | ||
country_code | string | Opcional | default US | |
language_code | string | Opcional | default zh-CN | en-US |
continuation_token | string | Opcional | ||
- Parâmetros de consulta
channel_idstringObrigatórioUC… channel id
Exemplo:
UCX6OQ3DkcsbYNE6H8uQQuVAneed_formatbooleanoOpcionalcountry_codestringOpcionaldefault US
language_codestringOpcionaldefault zh-CN
Exemplo:
en-UScontinuation_tokenstringOpcional
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.youtube.channel.videos?channel_id=UCX6OQ3DkcsbYNE6H8uQQuVA&language_code=en-US' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.youtube.channel.videos?channel_id=UCX6OQ3DkcsbYNE6H8uQQuVA&language_code=en-US",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.youtube.channel.videos?channel_id=UCX6OQ3DkcsbYNE6H8uQQuVA&language_code=en-US", {
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.001/success, incluindo a taxa de serviço.