The YouTube method is used, provided that the search results on the main page include Linked videos based on a proprietary algorithm.
Unfortunately, this proprietary method is not yet available in their API (v1 or current v2), so you do not get the same results.
The YouTube API page shows how to use the Linked Videos API, but only for one video, since it is limited to this use.
I saw various questions / answers that come and go to the forum on this issue, for example to ignore .
Consider using Linked Video based on a single video that the API supports.
An example of this use for Gadz YouTube videos is Gucci Gucci gość. Joda :
https://gdata.youtube.com/feeds/api/videos/oepPdNKzxk0/related?v=2
You will see 25 results (the default, if not specified in the request), which are similar, but not accurate, as a separate YouTube YouTube page. Various algorithms also play here, but this method is the best at present.
My untested solution for your project goal:
1. Use the current method to obtain video images.
2. If the results are less than the required amount, use the returned results of the first Video ID as a reference.
3. The link to the video identifier (only one video) is then used to execute another request for similar videos. 4. Then you can combine the two queries to create the final list of the video ID to be used.
arttronics
source share