Your YouTube channel profile — subscribers, views
youtube.youtube.channel.profileGet your YouTube channel's profile and lifetime stats (subscribers, views, video count)
- Price
- freeAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 3 403 calls
- Latency p50
- 93 msp95 240 ms
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/youtube.youtube.channel.profile?id=UCBR8-60-B28hp2BmDPdntcQ&part=snippet%2CstatisticsPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
exactly one of mine | id | forHandle. contentDetails.relatedPlaylists.uploads from part=contentDetails is the uploads playlist id needed by youtube.channel.videos.uploads
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
id | chaîne | Facultatif | UC… channel id — use INSTEAD of mine to read any public channel | UCX6OQ3DkcsbYNE6H8uQQuVA |
mine | booléen | Facultatif | true = the connected account's own channel | true |
part | chaîne | Obligatoire | comma-separated resource parts; snippet+statistics is the useful pair | snippet,statistics |
forHandle | chaîne | Facultatif | @handle — resolves a handle to a channel | @MrBeast |
- Paramètres de requête
idchaîneFacultatifUC… channel id — use INSTEAD of mine to read any public channel
Exemple :
UCX6OQ3DkcsbYNE6H8uQQuVAminebooléenFacultatiftrue = the connected account's own channel
Exemple :
truepartchaîneObligatoirecomma-separated resource parts; snippet+statistics is the useful pair
Exemple :
snippet,statisticsforHandlechaîneFacultatif@handle — resolves a handle to a channel
Exemple :
@MrBeast
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à free, frais de service inclus.