YouTube channel Shorts by channel id or URL
tikhub.x.youtube-web-v2-get-channel-shortsYoutube: get channel shorts (web_v2)
- Price
- $0.001/successPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-channel-shorts?channel_id=UCuAXFkgsw1L7xaCfnd5JJOw&channel_url=https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUCuAXFkgsw1L7xaCfnd5JJOwPreviewTry 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 | Opcional | Channel ID (e.g., UCuAXFkgsw1L7xaCfnd5JJOw) | UCuAXFkgsw1L7xaCfnd5JJOw |
channel_url | string | Opcional | Ignored if channel_id is provided) | https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw |
need_format | booleano | Opcional | Whether to format data | true |
continuation_token | string | Opcional | Pagination token | |
- Parâmetros de consulta
channel_idstringOpcionalChannel ID (e.g., UCuAXFkgsw1L7xaCfnd5JJOw)
Exemplo:
UCuAXFkgsw1L7xaCfnd5JJOwchannel_urlstringOpcionalIgnored if channel_id is provided)
Exemplo:
https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOwneed_formatbooleanoOpcionalWhether to format data
Exemplo:
truecontinuation_tokenstringOpcionalPagination token
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-channel-shorts?channel_id=UCuAXFkgsw1L7xaCfnd5JJOw&channel_url=https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUCuAXFkgsw1L7xaCfnd5JJOw' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-channel-shorts?channel_id=UCuAXFkgsw1L7xaCfnd5JJOw&channel_url=https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUCuAXFkgsw1L7xaCfnd5JJOw",
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.x.youtube-web-v2-get-channel-shorts?channel_id=UCuAXFkgsw1L7xaCfnd5JJOw&channel_url=https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUCuAXFkgsw1L7xaCfnd5JJOw", {
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.