Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a simple way to get the most popular SoundCloud tracks at the moment?

Tags:

ios

soundcloud

I need the "most popular" or "hottest tracks" from SoundCloud, but I don't find any way how to do that. I can get the newest tracks from

http://api.soundcloud.com/tracks?filter=streamable&limit=100&order=created_at

because the order type "hottest" doesn't exist anymore.
I want exactly the same songs that are listet at

https://soundcloud.com/explore

and then choose "Trending music". Is there any way to do that or not?

I thought about getting ~1000 songs, than sort out the most played and most favorited songs and only display them, but I think this is not the optimal solution.

like image 644
beeef Avatar asked Oct 21 '22 03:10

beeef


1 Answers

Why not try HTML Parsing ? You can get the entire page with a simple request, and then parse their (very nice and tidy) source code to get what you want.

There might be a better solution with their API, but this one seems very simple to me. Of course, your parsing might be broken if they decide to completely change this page layout.

On this page, they say you can do it with another API call.

like image 99
Pierre Avatar answered Nov 02 '22 05:11

Pierre