Hotness order has been removed from Soundclouds API

I saw the possibility of ordering hotness in some tutorials for the SoundCloud API. For example, in PHP:

// create a client object with your app credentials $client = new Services_Soundcloud('APP KEY'); // find all sounds of buskers licensed under 'creative commons share alike' $tracks = $client->get('tracks', array('genre' => json_encode($tag), 'limit' => '20', 'order' => 'hotness')); // array('q' => 'dubstep')); $tracks=json_decode($tracks); die(var_dump($tracks)); 

However, this returns a list of tracks with 0 games, and there is no mention of this sorting in the SoundClouds documentation:

http://developers.soundcloud.com/docs/api/sdks#methods

-1
source share
1 answer

Yes, the order parameter has recently been deleted. From the API Blog April 16, 2013:

Soon, GET requests to the endpoint / tracks will ignore the order parameter and, by default, will be ordered by creation date.
...
In the meantime, you can still approximate the result sets previously returned by specifying order=hotness by manually sorting the returned tracks with a combination of favoritings_count and playback_count .

http://developers.soundcloud.com/blog/removing-hotness-param

+2
source

Source: https://habr.com/ru/post/944351/


All Articles