Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SoundCloud /users/{id}/tracks URL not working

We've been using a CURL call on /users/{id}/tracks to get the tracks for a user for a while now, but recently we noticed it stopped working. In fact, when we call the URL in the browser we get a 404 error.

Example URL:

https://api.soundcloud.com/users/lgarciabes/tracks/?client_id={my_id}&format=json

The call to get the tracks in a playlist works fine, but not the one to get all the tracks for the user.

Something changed in the API or is it a bug?

Which URL should we use to get the list of all the tracks for a user?

[UPDATE]

As milleph pointed, using the user ID instead of the permalink name works fine. So the code needs an extra step (getting the ID for a given user name). Letting it get the tracks lists with the permalink was more comfortable and required less cURL calls.

like image 230
AngelGris Avatar asked Dec 07 '25 11:12

AngelGris


1 Answers

Not sure why Soundcloud changed this but replacing username with user id works

https://api.soundcloud.com/users/10827351/tracks/?client_id={my_id}&format=json

like image 79
milleph Avatar answered Dec 11 '25 09:12

milleph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!