问题
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