如何在用户使用 Google 登录后获取用户的 YouTube 句柄?



是否有API来检索用户的YouTube句柄作为今天?

我在YouTube Data API v3文档中找不到任何内容。

再次说明YouTube Data API v3不提供基本功能。由于handle在YouTube Data API v3版本历史中没有找到通道句柄,虽然它是最近的功能。

我建议你尝试我的开源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"
}
}
]
}

最新更新