Your YouTube channel profile — subscribers, views
youtube.youtube.channel.profileGet your YouTube channel's profile and lifetime stats (subscribers, views, video count)
- 价格
- free按供应商原价
- 成功率
- 100%近 30 天 · 3,403 次
- 延迟 p50
- 93 毫秒p95 240 毫秒
- 最后验证
- 2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/youtube.youtube.channel.profile?id=UCBR8-60-B28hp2BmDPdntcQ&part=snippet%2Cstatistics预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
exactly one of mine | id | forHandle. contentDetails.relatedPlaylists.uploads from part=contentDetails is the uploads playlist id needed by youtube.channel.videos.uploads
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
id | 字符串 | 可选 | UC… channel id — use INSTEAD of mine to read any public channel | UCX6OQ3DkcsbYNE6H8uQQuVA |
mine | 布尔 | 可选 | true = the connected account's own channel | true |
part | 字符串 | 必填 | comma-separated resource parts; snippet+statistics is the useful pair | snippet,statistics |
forHandle | 字符串 | 可选 | @handle — resolves a handle to a channel | @MrBeast |
- 查询参数
id字符串可选UC… channel id — use INSTEAD of mine to read any public channel
示例:
UCX6OQ3DkcsbYNE6H8uQQuVAmine布尔可选true = the connected account's own channel
示例:
truepart字符串必填comma-separated resource parts; snippet+statistics is the useful pair
示例:
snippet,statisticsforHandle字符串可选@handle — resolves a handle to a channel
示例:
@MrBeast
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。