The problem at hand is to find the official music video using the YouTube API.
To be more specific:
- Not only put a filter to get only Music video as shown here: Youtube API - search only music videos
- The actual link in YouTube is this
- I can always go through some 5 results and choose based on views, but my search space is already large and I want to minimize it one query per song.
- A major problem with point 1 and 3 combined is that there is a chance of a fan-made cover to have more views.
A working alternative I tried was like this: youtube_search(song_name +" VEVO"), This works of course only for big artists as you may have guessed.
To actually do it, I figured if YouTube API only searched in the link in point 2 then the work is done.
Is that possible or is there a better way?