I have a question related to YT API brandingSettings.image which is now deprecated. I used it to retrieve the channel banner image brandingSettings.getImage().getBannerImageUrl(). Is there any other way to retrieve the banner image for channel using YT API?
Related
I want to get list of channels of a specific genre in my App using YouTube API.
For Example -
I want to get list of all comedy channels on YouTube in my App.
Is this possible , if yes than How ?
YouTube's V3 API doesn't have a category for each channel.
Take a look at this similar question: How to get the Channel Type or Category of each YouTube channel using YouTube API?
YouTube documentation for this: https://developers.google.com/youtube/v3/docs/channels
The YouTube API does however show if videos and by extension channels make videos for kids.
How can I retrieve channel wide image (not thumbnails) with latest YouTube Data API?
There used to be brandingSettings.image, which worked fine; however, according to this, it's now deprecated.
The latest video for this channel shows up when viewed via the Youtube website:
https://www.youtube.com/user/stefbot/videos
(video ID a4pPLwAL_Qo)
However that video does not get returned when the channel is queried via the Youtube API. I retrieve the channel video list by making a call to channels, followed by a call to playlistItems e.g.:
https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=stefbot&key=xxxxxxxxxxxxxxxxx
https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=UUC3L8QaxqEGUiBC252GHy3w&key=xxxxxxxxxxxxxxxxxx
See playlist response JSON here
It has been more than 24hrs since this video was posted. Can someone explain why the API would not be returning the latest video for this channel?
Based from this support page, it can take a few days for uploaded videos to be reflected in YouTube search results, especially if you recently changed or removed your video. Also, you can use this reference and use Search: list to get the latest videos from user's uploads.
GET https://www.googleapis.com/youtube/v3/search?part=snippet&channelId={CHANNEL_ID}&maxResults=10&order=date&type=video&key={YOUR_API_KEY}
As per current documentation liking a video can be done by adding video into likes playlist.
Is there any way to dislike a video with Youtube data api v3.0.
There's no way to dislike (equivalent to the "thumbs down" UI option on the watch page) using the YouTube Data API v3 at this time.
Is there any way to detect if a video was removed or unavailable?
We need to have ability to remove it from the video listing if it has been removed from youtube server.
Hung BUI if you are using youtube API there is a way to filter the video which has been removed or not availble in your locality.
Kindly watch this video and seek it to 2m:03s, The tutor will say how to filter the unavailable and restricted video,..
Youtube Video on YOUTUBE search API
Use a parameter format and restriction along with the youtube api endpoint
https://gdata.youtube.com/feeds/api/videos?q=GoogleDevelopers&max-results=1&v=2.1&alt=jsonc&format=5&restriction=DE
If you hit this endpoint of youtube you can get a set of youtube videos which can be embedded as well as we can check whether the video is restricted in our locality.