He is trying to get the html for creating the Soundcloud widget, and not getting the API URL for the track. oEmbed method "will serve as a widget embed code for any SoundCloud URL that points to a user, group, set or playlist", and it is recommended to make confident changes Soundclouds do not violate your application (as opposed to creating your own Flash object or iframe) . You can call it using a PHP web request on
http://soundcloud.com/oembed?format=js&url=[escaped_url]&iframe=true
Or using a JSON-P call (using jQuery for convenience)
$.getJSON('http://soundcloud.com/oembed?callback=?', {format: 'js', url: 'http://snd.sc/yp6VMo', iframe: true}, function(data) {
I add iframe = true so that you get the new HTML5 player, omitting to get the old Flash object. It also works with the short .sc URLs you use.
Lincoln b
source share