Search code examples
soundcloudembedding

Soundcloud embedding: change in iframe source URI?


Until a few days ago, I could just take a Soundcloud link like this one:

https://soundcloud.com/artist/song-title

… and put it into an iframe src like this:

//w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/artist/song-title

Now I’m getting an error saying “url parameter is not a valid SoundCloud URL”. The embedding options at any Soundcloud page now show a link built like this:

https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/12345678

I couldn’t find any information on a recent change. Does this mean I cannot derive the embedded source from a standard Soundcloud URI? Is there no way around a server-side oEmbed call?


Solution

  • I found that removing 'api.' from the url parameter worked.

    Old:

    //w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/(blah blah blah)
    

    New:

    //w.soundcloud.com/player/?url=https%3A//soundcloud.com/(blah blah blah)