似乎YouTube Data API v3 又一次没有提供基本功能。
我建议你使用我的open-sourceYouTube operational API。事实上,通过请求 JSON 文档 https://yt.lemnoslife.com/channels?part=channels&id=CHANNEL_ID,您要查找的数据在 item["channels"] 中。
请注意,与 the channel you shared 关联的频道 ID 是 UCK4LDHLxBqiAtcwCm4z7DRg,因此您将获得:
{
"kind": "youtube#channelListResponse",
"etag": "NotImplemented",
"items": [
{
"kind": "youtube#channel",
"etag": "NotImplemented",
"id": "UCK4LDHLxBqiAtcwCm4z7DRg",
"channels": {
"paratext": "Mit Empfehlung des Dunklen!",
"channels": [
{
"channelId": "UCWZu-P34DVZUVrYAROU3Cmw",
"title": "Prinz",
"thumbnails": [
{
"url": "https://yt3.ggpht.com/knQfgyidSRlVLQfAw64R9DFWmnQt3BwdJUaRW1zHEVRgLswRcR9lsan_S4tGe4BfYJyo9Jppbg=s48-c-k-c0x00ffffff-no-rj-mo",
"width": 48,
"height": 48
},
...
],
"videoCount": 110,
"subscriberCount": 86400
},
...
]
}
}
]
}