Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Get the official music video from YouTube API

$
0
0

The problem at hand is to find the official music video using the YouTube API.

To be more specific:

  1. Not only put a filter to get only Music video as shown here: Youtube API - search only music videos
  2. The actual link in YouTube is this
  3. 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.
  4. 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?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>