Fetch a user's public playlists (without full track data).
OAuth access token
The user's numeric ID or URN
Optional
Maximum number of playlists per page
Paginated list of playlists
When the API returns an error
import { getUserPlaylists } from 'soundcloud-api-ts';const result = await getUserPlaylists(token, 123456, 10);result.collection.forEach(p => console.log(p.title)); Copy
import { getUserPlaylists } from 'soundcloud-api-ts';const result = await getUserPlaylists(token, 123456, 10);result.collection.forEach(p => console.log(p.title));
https://developers.soundcloud.com/docs/api/explorer/open-api#/users/get_users__user_id__playlists
Fetch a user's public playlists (without full track data).