I want to embed the soundcloud widget (ex: http://www.sabbatella.com/soundcloud.htm) of lots of users in their profiles. I have all their usernames but not the user ids, which are necessary to embed the code.
Could you please explain me how to convert a soundcloud username to its userid in the most simple way? Ex: http://www.soundcloud.com/nightclubber is user id 32661578.
You don't actually need the user id. Embed the player with the user's profile page as the
url
parameter and it will automatically be resolved when the player starts. It will mean one additional ajax request before the player loads, but it's probably not too bad.For example, these two are equivalent:
Alternatively, you can use the resolve endpoint to resolve a permalink to a user