getCurrentlyPlayingTrack

suspend fun getCurrentlyPlayingTrack(market: CountryCode? = null, additionalTypes: String? = null): SpotifyApiResponse<CurrentlyPlayingTrack>

Gets the currently playing item for the current user.

Return

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

Parameters

market

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

additionalTypes

Additional playable item types (for example episode).