用户使用 Google 登录后如何获取 YouTube 帐号?

问题描述 投票:0回答:1

截至目前是否有 API 可以检索用户的 YouTube 句柄?

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

youtube youtube-api
1个回答
0
投票

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"
            }
        }
    ]
}
© www.soinside.com 2019 - 2024. All rights reserved.