getEpisode

suspend fun getEpisode(id: String, market: Market): Episode?(source)

Get Spotify catalog information for a single episode identified by its unique Spotify ID.

Reading the user’s resume points on episode objects requires the SpotifyScope.UserReadPlaybackPosition scope

Api Reference

Return

possibly-null Episode.

Parameters

id

The Spotify ID for the episode.

market

If a country code is specified, only shows and episodes that are available in that market will be returned. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter. Note: If neither market or user country are provided, the content is considered unavailable for the client. Users can view the country that is associated with their account in the account settings. Required for SpotifyAppApi, but you may use Market.FROM_TOKEN to get the user market