YouTube Data API 'youtube#channel' query: the 'brandingSettings.image' is no longer available as of 11-11-2020?

怎甘沉沦 提交于 2020-12-26 08:32:33

问题


Using the YouTube Data API, doing a 'youtube#channel' query, the brandingSettings.image is no longer available as of 11-11-2020? Has anyone else noticed this? Will there any way to get the brandingSettings.image.bannerImageUrl going forward?

This is the API URL that used to return a channel's bannerImageUrl:

https://www.googleapis.com/youtube/v3/channels?part=brandingSettings&id=UCXGgrKt94gR6lmN4aN3mYTg&key=[your key].

Thanks, -Keith


回答1:


Indeed, the official API revision history doc specifies exactly that (albeit with a different date):

September 9, 2020

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

[...]

This announcement indicates no replacement for the deprecated and removed Channel resource properties. Neither the official spec of brandingSettings.image.

Moreover, as far as I know, there's no other API endpoint that'll provide those properties one way or the other.



来源:https://stackoverflow.com/questions/64792572/youtube-data-api-youtubechannel-query-the-brandingsettings-image-is-no-lon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!