How to get track ID from URL using the SoundCloud API

前端 未结 5 2105
时光说笑
时光说笑 2020-12-24 15:02

How can I get a track ID from a track URL using the SoundCloud API?

5条回答
  •  青春惊慌失措
    2020-12-24 15:32

    I know this is kinda late but i faced the same issue yesterday and found a new (undocumented) endpoint that you can use.

    https://api-widget.soundcloud.com/resolve?url=SOUNDLCOUD_URL&format=json&client_id=CLIENT_ID
    

    You can find your CLIENT_ID by looking at the Network Inspector in the DevTools and select the XHR filter while browsing the SoundCloud website.

    I think this is sufficient until the official APIs are usable again.

提交回复
热议问题