Fetch stream URLs for a track (HLS, MP3, preview).
OAuth access token
The track's numeric ID or URN
Object containing available stream URLs
When the track is not found or not streamable
import { getTrackStreams } from 'soundcloud-api-ts';const streams = await getTrackStreams(token, 123456);console.log(streams.hls_mp3_128_url); Copy
import { getTrackStreams } from 'soundcloud-api-ts';const streams = await getTrackStreams(token, 123456);console.log(streams.hls_mp3_128_url);
https://developers.soundcloud.com/docs/api/explorer/open-api#/tracks/get_tracks__track_id__streams
Fetch stream URLs for a track (HLS, MP3, preview).