Soundcloud API - Why stream_urls for a particular artist no longer works (404)

my site transmits Soundcloud soundtracks from different groups using SoundManager2 with the stream_url soundbar and added secret_token and client_id. It seems that all the groups work except for one, and I don't see anything in the API responses that show any difference.

Here is a specific set that worked for several weeks but started returning 404 today: https://soundcloud.com/mona-official/sets/torches-pitchforks

The group states that it has not changed anything with their settings, applications and widgets are included, and for all tracks in the API it’s true, and the songs seem public in any case and play perfectly on soundcloud.com. The tape access token still seems valid.

Thanks! Rick

+6
source share
1 answer

Here is one ugly workaround if your application can check 404 in a stream:

Call

https://api.soundcloud.com/i1/tracks/<track_id>/streams?client_id=<cid>

will respond with an unconditional JSON response (that is, you cannot get XML) with an RTMP stream that will be valid for a couple of minutes or so:

{"rtmp_mp3_128_url":"rtmp://ec-rtmp-media.soundcloud.com:80/mp3:VeAGXsGTFb59.128?9527d18f1063a01f059bf10590159adb10dea0996b8c0cdb6748962c2c1b859ce6b56ee301b0b087e0695d03f6e9498fd963ef1328bc89c05e156bacca00317de55e78139e168138ead65c8fdac11f8d626674293d53f230cf5a"}

+4
source

Source: https://habr.com/ru/post/957647/


All Articles