Announcing the SoundCloud Widget Javascript API

Announcing the SoundCloud Widget Javascript API

A lot of developers asked for it and now you can has it: programming level access to the SoundCloud Widget Player.

Via the new Widget API you can access functions like play and pause, show additional info about the currently playing track on your page or even hide our widget and create your own JavaScript based interface for it.

Check out this demo and some code examples. It only takes a few lines like:

soundcloud.addEventListener('onPlayerReady', function(player, data) {
  console.log("widget ready, let's play");
  player.api_play();
});

The Widget API also integrates nicely with the popular JavaScript frameworks jQuery and Prototype.

The source code is available at github together with the documentation.

We’re curious to hear what you think so please post feedback and feature requests in our Google group. You are also welcome to contribute to the project if you think there’s something missing.

We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies as described in the Cookie Policy.

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close