YouTube Data API v3 再次不提供一项基本功能。
我建议你尝试一下我的开源 https://github.com/Benjamin-Loison/YouTube-operational-API/blob/966b7dbde5b4da83f3c3236407beca4099f85c87/channels.php#L259-L304 YouTube 操作 API https://yt.lemnoslife.com。确实通过抓取您将检索到的链接About
给定 YouTube 频道的部分item["links"]
.
YouTube 频道示例 https://www.youtube.com/channel/UC9-y-6csu5WGm29I7JiwpnA/about (UC9-y-6csu5WGm29I7JiwpnA
) 中包含此类网站 URLAbout
标签。我的 API 将返回它:
{
"kind": "youtube#channelListResponse",
"etag": "NotImplemented",
"items": [
{
"kind": "youtube#channel",
"etag": "NotImplemented",
"id": "UC9-y-6csu5WGm29I7JiwpnA",
"countryChannelId": "UC9-y-6csu5WGm29I7JiwpnA",
"about": {
"stats": {
"joinedDate": 1239321600,
"viewCount": 201152616,
"subscriberCount": 2320000
},
"description": "Videos all about computers and computer stuff. Sister channel of Numberphile.",
"title": "Computerphile",
"details": {
"location": null
},
"links": [
{
"url": "http:\/\/www.facebook.com\/computerphile",
"title": "Facebook"
},
{
"url": "https:\/\/twitter.com\/computer_phile",
"title": "Twitter"
}
],
"handle": "@Computerphile"
}
}
]
}