0

Happy new year.

I've been messing around with the youtube api for a couple of days now (this post helped me out a bunch:How do I get a random YouTube video with the YouTube API?). I'm mainly doing that because I want to save all of my recommended videos in a database, but the api seem to not have features to "List" my own recommendations, and the generally available search API returns the same exact values if my queries don't change.

For instance, when I use the webbased search I type in "meme", I get the ~5 results on the page, then I refresh and one/two change. The search API isn't like that, it lists the same value every time (unless you change your query), and I did try randomizing it (like adding a digit in the end of the string), but it starts displaying songs (because I searched based on that), which have nothing in common.

I'm not adding any code samples, because I copy pasted the code from the post, I just added the insert into the database part.

Anyway, has anyone done something like this?

Hopefully without making use of scraping tools.

Thanks for any tips.

  • Please add what you have tried so far, if I understand your question, you want to get the recommended videos via YouTube API - I think there is a way to do so, but, I'm not sure - see [this, for example - retrieve video recommendations](https://developers.google.com/youtube/v3/revision_history?hl=en). – Marco Aurelio Fernandez Reyes Jan 03 '22 at 15:14

0 Answers0