使用 YouTube 数据 API,执行“youtube#channel”查询,brandingSettings.image
自 2020 年 11 月 11 日起不再可用?有没有其他人注意到这一点?请问有什么办法可以拿到brandingSettings.image.bannerImageUrl
往前走?
这是用于返回 channel 的 bannerImageUrl
的 API URL :https://www.googleapis.com/youtube/v3/channels?part=brandingSettings&id=UCXGgrKt94gR6lmN4aN3mYTg&key=[your key]
.
谢谢,
-基思
最佳答案
事实上,官方 API 修订历史文档准确地指定了这一点(尽管日期不同):
This update covers the following API changes. All changes will go into effect on or after 9 September 2020, the date of this announcement. With that in mind, developers should no longer rely on any of the API features listed below.
- The following API resources, methods, parameters, and resource properties are deprecated immediately and will stop working on or after the date of this announcement:
- The following
channel
resource properties:
- The
brandingSettings.image
object and all of its child properties[...]
此公告表示不建议替换已弃用和删除的
Channel
资源属性。 brandingSettings.image
的官方规范都没有.此外,据我所知,没有其他 API 端点会以一种或另一种方式提供这些属性。
关于youtube-api - YouTube 数据 API 'youtube#channel' 查询 : the 'brandingSettings.image' is no longer available as of 11-11-2020?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64792572/