Your YouTube channel profile — subscribers, views
youtube.youtube.channel.profileGet your YouTube channel's profile and lifetime stats (subscribers, views, video count)
- Preço
- freePelo preço de tabela
- Taxa de sucesso
- 99,9%Últimos 30 dias · 2.985 chamadas
- Latência p50
- 105 msp95 259 ms
- Última verificação
- 28 de jul. de 2026Verificado e funcionando
GEThttps://toolswitch.dev/v1/tools/youtube.youtube.channel.profile?id=UCBR8-60-B28hp2BmDPdntcQ&part=snippet%2CstatisticsBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados públicos
Parâmetros
exactly one of mine | id | forHandle. contentDetails.relatedPlaylists.uploads from part=contentDetails is the uploads playlist id needed by youtube.channel.videos.uploads
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
id | string | Opcional | UC… channel id — use INSTEAD of mine to read any public channel | UCX6OQ3DkcsbYNE6H8uQQuVA |
mine | booleano | Opcional | true = the connected account's own channel | true |
part | string | Obrigatório | comma-separated resource parts; snippet+statistics is the useful pair | snippet,statistics |
forHandle | string | Opcional | @handle — resolves a handle to a channel | @MrBeast |
- Parâmetros de consulta
idstringOpcionalUC… channel id — use INSTEAD of mine to read any public channel
Exemplo:
UCX6OQ3DkcsbYNE6H8uQQuVAminebooleanoOpcionaltrue = the connected account's own channel
Exemplo:
truepartstringObrigatóriocomma-separated resource parts; snippet+statistics is the useful pair
Exemplo:
snippet,statisticsforHandlestringOpcional@handle — resolves a handle to a channel
Exemplo:
@MrBeast
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/youtube.youtube.channel.profile?id=UCBR8-60-B28hp2BmDPdntcQ&part=snippet%2Cstatistics' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/youtube.youtube.channel.profile?id=UCBR8-60-B28hp2BmDPdntcQ&part=snippet%2Cstatistics",
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.profile?id=UCBR8-60-B28hp2BmDPdntcQ&part=snippet%2Cstatistics", {
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 Beta; 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.