Get Soundcloud URL for a track using only its ID

前端 未结 3 1791
不知归路
不知归路 2021-01-03 03:02

I\'ve inherited a database of Soundcloud IDs and would like to build a page linking to each track on Soundcloud. Is it possible to link to a track on the Soundcloud website

3条回答
  •  Happy的楠姐
    2021-01-03 03:54

    It seems that the way to do this is to use the API. With a track number, you can call

    http://api.soundcloud.com/tracks/12345678.json?client_id=YOUR_CLIENT_ID
    

    This returns a JSON object with a permalink_url property which gives you the full url including the user and track name.

    See the API tracks documentation for more details.

提交回复
热议问题