Fetch comments on a track.
OAuth access token
The track's numeric ID or URN
Optional
Maximum number of comments per page
Paginated list of comments
When the API returns an error
import { getTrackComments } from 'soundcloud-api-ts';const result = await getTrackComments(token, 123456, 20);result.collection.forEach(c => console.log(c.body)); Copy
import { getTrackComments } from 'soundcloud-api-ts';const result = await getTrackComments(token, 123456, 20);result.collection.forEach(c => console.log(c.body));
https://developers.soundcloud.com/docs/api/explorer/open-api#/tracks/get_tracks__track_id__comments
Fetch comments on a track.