Can you share the arguments you give to the Song Requests YouTube API?

Hi, I am building a system that makes a request to the YouTube API to get the current thumbnail of a song that has been requested through !sr.

My YT API call contains the following arguments:
&geo=FR
&lang=en
&type=video
&features=HD
&sort_by=relevance

and 9 out of 10 times when a viewer requests a song, your player finds the same video as my YouTube API request, but sometimes it doesn’t and it finds something else.

So now I’m curious what arguments you feed into the YouTube API when somebody requests a song, as it seems your results are better than mine :slight_smile:

Thanks for any help.

Hello,

'videoCategoryId' => '10',
'videoEmbeddable' => 'true'

These are the additional arguments used :slight_smile:

I was missing category 10 which is music. Very smart and very ‘duh’ as well. Thanks!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.