截至目前是否有 API 可以检索用户的 YouTube 句柄?
我在 YouTube Data API v3 文档中找不到任何内容。
YouTube Data API v3 再次不提供基本功能。由于在
YouTube Data API v3 修订历史记录中找不到频道句柄
handle
,尽管它是最近的功能。
我建议您尝试我的开源YouTube操作API。事实上,通过获取 https://yt.lemnoslife.com/channels?part=about&id=CHANNEL_ID,您将获得您在
item["about"]["handle"]
中寻找的频道句柄。
UCQxJsAlqmBPAbR_0syDi9mg
你会得到:
{
"kind": "youtube#channelListResponse",
"etag": "NotImplemented",
"items": [
{
"kind": "youtube#channel",
"etag": "NotImplemented",
"id": "UCQxJsAlqmBPAbR_0syDi9mg",
"about": {
...
"handle": "@Fairphone"
}
}
]
}