I want to get a list of active streams from the channel. I am trying to do this through the following query. But he shows a stream that ended a day ago. Maybe someone has a working solution?
https://content.googleapis.com/youtube/v3/channels?id=CHANNEL_ID&part=snippet&key=API_KEY
I found a solution to this problem.
I used this link instead:
https://www.googleapis.com/youtube/v3/search?channelId=CHANNEL_ID&eventType=live&type=video&key=API_KEY
Related
A few days that the youtube api stop to show a livestream videos, is this error only on my api key? if does, is there any other way to find a livestream videos?
I googled if there any message from youtube about this, and i didn't find.
https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UC4R8DWoMoI7CAwX8_LjQHig&eventType=live&type=video&key={MY_API_KEY}
You are not alone.
It's broken for everybody, unfortunately, and it's been this way for over ten days now. As with all Google services, human support and feedback is non-existent, not even an acknowledgement of the issue.
Ref.: https://support.google.com/youtube/thread/14611425
As a workaround, I had to change the logic to use the q parameter along with eventType=live. This actually works, and, depending on keywords, can also return a whole lot of unrelated live material, which, I think, can be further filtered on the client. This also seems to incur higher quota usage.
Well, I guess the issue is you try to use a meta-channel. UC4R8DWoMoI7CAwX8_LjQHig refers to what you get when you click on live in the menu, but this only "sums up" what's live, it isn't a real channel itself. Just strip the channelId parameter you should get all active live streams (only tested at reference page https://developers.google.com/youtube/v3/docs/search/list but got me 14.5k at time of try).
Matt
The sorting is not working as expected since a few hours.
https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw&key=YOUR_API_KEY
Can be tried in the API explorer (Execute without OAuth) as well.
https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.search.list?part=snippet&channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw&order=date
date: Resources are sorted in reverse chronological order based on the date they were created.
https://developers.google.com/youtube/v3/docs/search/list
What is going wrong?
In case you are looking to get the latest videos of a channel:
Get the channels upload playlist from Channels
Get the latest videos in the channels upload playlist from PlaylistItems
Alternatively, you can use the channels RSS feed:
https://www.youtube.com/feeds/videos.xml?channel_id={ChannelId}
https://www.youtube.com/feeds/videos.xml?user={User}
This does not replace the full search sorted by date function however.
Thanks YouTube for making me work on a Sunday, all I wanted was to watch the latest videos from my favorite channels. At least I don't have to wait for a fix anymore, good luck to those less lucky!
Reports in Google's forum were commented by a Google employee:
https://support.google.com/youtube/thread/2494861?msgid=2520468
YouTube is aware the search/sorting functions aren't working as expected – this is temporary and part of our efforts to better respond, review and remove graphic, violative content from YouTube. Thanks for your patience while we work through this. Will update this thread when these features are working normally again, feel free to subscribe for updates.
Bug reports for this include:
https://issuetracker.google.com/issues/128673031
https://issuetracker.google.com/issues/128673552
Both have an official comment from Google:
Thank you all for bringing this up here. These specific filters have been currently disabled on both YouTube.com and through the APIs. We should have updates on this soon. Thanks again.
Not sure how credible that is:
Just confirming that this is only temporary, and related to YouTube's efforts to better respond, review and remove graphic, violative content from YouTube. Thanks for your patience while we work through this.
https://www.reddit.com/r/youtube/comments/b1plj5/sort_by_upload_date_not_working/eiojtjh/
I want to get the latest video posted to a playlist using Youtube Data Api.
If I do this
GET https://www.googleapis.com/youtube/v3/playlistItems?playlistId=<id>
It will get the videos from the list sorted from oldest to newest and paginated. If I want to get the latest all that I can think of is iterating over the pages until I get to the last one and picking the last item in the last page.
Anybody knows a better way to do this?
Cheers
I don't believe you can do this with the current api version. A workaround might be to instead perform a search such that your request looks like this:
https://www.googleapis.com/youtube/v3/search?part=snippet&type=playlistItems&order=date&channelId=<ChannelId>&maxResults=20&playlistId=<PlaylistId>&key=<ApiKey>
I can't find it in the documentation, or on a track-page itself https://soundcloud.com/jakechudnow/shona
I used a demo: SC.get("/tracks/293", function(track){...
Which works, but where do I get that track number? This doesn't help either: https://developers.soundcloud.com/docs/api/reference#tracks
And nothing is explained about how to go about finding these tracks: https://developers.soundcloud.com/docs/api/sdks#javascript
getting the latest track of a group
the lastest track of a group? which group? how do we define this?
For that SC offers the resolve-endpoint
https://developers.soundcloud.com/docs/api/reference#resolve
I am trying to get a list of all the available closed captions and SAP assets for a given stream but I havent been able to find a way to do this.
I have tried outputting availableChapterLocales, availableMetadataFormats, and trackGroups which didnt result in anything.
When I set closedCaptionDisplayEnabled I see closed captions on the player, so I know that they are there somewhere.
Does anyone know how I can get this information?
Any help would be appreciated. Thanks.