getTrack

suspend fun getTrack(id: String, market: CountryCode? = null): SpotifyApiResponse<Track>

Gets a Spotify track by track ID.

Return

Wrapped Spotify API response with status code and parsed Spotify payload.

Parameters

id

Spotify ID of the target resource for this endpoint.

market

Market (country) code used to localize and filter content.