zackradisic/node-soundcloud-downloader

Get a user's likes

Closed this issue · 0 comments

It would be convenient to be able to retrieve information on the tracks a user has liked. The API endpoint looks like this:

https://api-v2.soundcloud.com/users/<user_ID>/likes?client_id=<client_id>&limit=10&offset=0

A user's ID can be retrieved using the link to their profile with the resolve endpoint, so I'm thinking this feature could be implemented like so:

const profileURL = 'https://soundcloud.com/<username>'
let likes = await getLikes(profileURL) // Gets the user's id for you, then calls the likes endpoint

// Or with user ID
likes = await getLikes(123123123123)