gpt4 book ai didi

youtube - 使用 channel ID 查找 youtube channel 名称

转载 作者:行者123 更新时间:2023-12-03 05:57:17 25 4
gpt4 key购买 nike

如果您有该 channel 的 channel ID,有没有办法获取该 channel 的 channel 名称?

我需要做整个oauth事情才能得到它吗?还是有简单的方法?

最佳答案

Channels: list有一个 Id 参数结合片段返回 channel 的标题。

id string The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the resource(s) that are being retrieved. In a channel resource, the id property specifies the channel's YouTube channel ID.



获取 https://www.googleapis.com/youtube/v3/channels?part=snippet&id=UC_x5XG1OV2P6uZZ5FSM9Ttw&key= {YOUR_API_KEY}

备注 :这是对 api 的公开调用,因此您可以使用 API key 执行此操作,而无需使用 Oauth2。

关于youtube - 使用 channel ID 查找 youtube channel 名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33647566/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com