I’m currently using this to query for the first video matching deadmau5:
https://gdata.youtube.com/feeds/api/videos?q=deadmau5&v=2&alt=json&max-results=1&prettyprint=true
This returns a bunch of info including the video id, and seems wasteful on both my end and there’s. All I need is the youtube id, is there a more efficient way to return only the video id?
Try this it makes use of jquery so you may need to include jquery library before running it
Check out console to see the video id. It can also work with a playlist and will provide all the video ids under a playlist