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.
Related
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?
I'm working on a site that lists upcoming live streams from a specific YouTube channel. This has recently stopped working without there being any changes to either the code of the YouTube account for the channel
The below request returns an empty items array even though the channel has upcoming live streams:
https://www.googleapis.com/youtube/v3/search?part=snippet&eventType=upcoming&type=video&channelId=UCvME6kEF02MqliB5TNHFLZA&maxResults=50&key=
Below is the URL for the upcoming live streams displayed on the YouTube website:
https://www.youtube.com/user/ClaytonTelevision/videos?view=2&sort=dd&live_view=502&shelf_id=20
I have done a few tests with the API by swapping the Channel ID to different channels, but these are working fine
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}
A client of mine is a YouTube Partner and can upload/set posterframes in their videos that are being uploaded and managed via the API. However, they would like the ability to upload and set these images in the application that has been written for them to manage all of their video assets.
I'd like to be able to upload a poster image (or at worse provide a timecode to grab an approximate frame of video) to set the posterframe on upload and/or via updates after it's been uploaded.
Is this possible for Partners? or are Partners restricted to having to manually do this in the YouTube UI?
There's a new thumbnails.set() method that's part of the YouTube Data API v3. Anyone who has the ability to set a custom thumbnail via any other mechanism (i.e. manually via the YouTube website) can accomplish the same thing using that API call.
I am planning to develop an app for the windows phone.
In this app actually, I need some metadata from youtube for each user, especially the videos they like and their playlists on youtube.
But, as I started to google for it, I came across this news that youtube apis are not fully supported on windows phone.
http://www.infoworld.com/t/windows-phone/in-blocking-windows-phone-access-youtube-google-delivers-rough-justice-210116
So, I wanted to know whether this feature can be implemented in windows phone app or not?
GData APIs work just fine on WP7/WP8 AFAIK. IANAL but it works fine and I haven't seen any official disclaimer saying it won't/shouldn't work. I believe this article has more to do about streaming video APIs then GData APIs.
You can see a sample of those APIs and how to use them in the official docs and in this previous answer of mine # Possible to play Youtube video in a wp7 app?
You can get the user metadata using YouTube Data API v3.
https://developers.google.com/youtube/v3/docs/playlists
from the documentation:
YouTube also uses playlists to identify special collections of videos
for a channel, such as:
uploaded videos
favorite videos
positively rated (liked) videos
watch history
watch later
The API can be consumed from any client, if you use any JSON library and OAUTH2 authentication.
This project shows how to do it;
https://yt-topic-explorer.googlecode.com/git/dist/index.html