Back to the radio app after a very long pause

Karina D.
2 min readJun 21, 2022

So, I stumbled across some issues with Mixcloud, spent a couple of weeks trying to figure out if I should make my own Mixcloud API npm package, had to write my own types, as I couldn’t find them anywhere and decided to rest for a bit to gain the space to see if I was on the right track.

Fast forwards, what’s now been a few months, I got a new job, focused on that and dropped the radio project for a bit. I also realised Mixcloud was a bad idea because is endpoints are deprecated and becoming more troublesome by the month.

Instead, I chose a radio I adore — nts.live and noticed they had a small Soundcloud icon by the stream widget for some mixes. I researched a bit and realised Soundcloud has a brand new v2 of their API with several good looking packages, ready for use in Typescript. Bingo.

some inspector gadjet stuffover here

So, now, my next few steps are to install and use soundcloud.ts.

I’m going to start off by identifying myself as an API client. I tried to get a Soundcloud developer license but they have stopped giving these out, so I’m forced to do some hacking. To get your client_id and 0auth token for Soundcloud, you need to open your dev tools, go to network and see more or less any request to the website — there, in the payload, you’ll find your auth_token. Your client_id is located in the name of the request. Slick Rick, let’s get to coding.

I’d like to believe this is legal.

--

--

Karina D.
0 Followers

Curious. Software Eng at Financial Times.