Using the genres filter on Soundcloud API

2019-04-15 09:06发布

问题:

I am using the genres filter on Soundcloud API, the codes:

$tracks = $client->get('tracks', array('genres' => 'punk'));

It is working well and return all tracks which genre are punk, but when I try to change the codes:

$tracks = $client->get('tracks', array('genres' => 'rock'));

It can not return all tracks which genre are rock.

My question is: where can we find correct music genres from Soundcloud?

Maybe the Soundcloud API which should give us a method to get a list for common genres.

回答1:

Unfortunately, we do not offer a way of retrieving list of genres. You can look into discussions here.

Please test this link, it seems to work for me: http://api.soundcloud.com/tracks?genres=rock&client_id=YOUR_CLIENT_ID

If the problem is with particular SDK, please let us now so we could look into it.



标签: soundcloud