Fetch a playlist by ID.
OAuth access token
The playlist's numeric ID or URN
The playlist object with track data
When the playlist is not found or the API returns an error
import { getPlaylist } from 'soundcloud-api-ts';const playlist = await getPlaylist(token, 123456);console.log(playlist.title, playlist.track_count); Copy
import { getPlaylist } from 'soundcloud-api-ts';const playlist = await getPlaylist(token, 123456);console.log(playlist.title, playlist.track_count);
https://developers.soundcloud.com/docs/api/explorer/open-api#/playlists/get_playlists__playlist_id_
Fetch a playlist by ID.