YouTube Api v3 - video in the subject

So, how can I post a video from a channel that is automatically generated by YouTube (theme)? https://www.youtube.com/channel/UCSkJDgBGvNOEXSQl4YNjDtQ/videos

I can get topic identifiers from a channel call, but when I search on these topics, I get completely different results.

And if I ran an api call to search with:

{ 'part':'snippet', 'channelId':'UCSkJDgBGvNOEXSQl4YNjDtQ', 'topicId':'/m/03lty' } 

I only get playlists and channels. No video results.

+5
source share
2 answers

You should do this:

It works like a charm to me.

- editing March 27, 2016. You can also explore how a search engine works. Just check ToS and Policy.

+1
source

Videos recorded in an automatically generated channel are not created (uploaded) by this channel, therefore they are not displayed in search results limited to this channel identifier.

However, you can get a list of videos related to the topic by removing the channelId parameter.

EDIT: You can also make subsequent calls to retrieve the video for each playlist published by the automatically generated channel, with the following calls: https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlistItems. list? part = snippet & playlistId = PLfY-m4YMsF-OSodOIoTKPVblnYvdjU2Tn & _h = 7 &

0
source

Source: https://habr.com/ru/post/1213516/


All Articles