getEpisodes

suspend fun getEpisodes(vararg ids: String, market: Market): List<Episode?>(source)

Get Spotify catalog information for multiple episodes based on their Spotify IDs.

**Invalid episode ids will result in a BadRequestException

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

Api Reference

Return

List of possibly-null Episode objects.

Parameters

ids

The id or uri for the episodes. Maximum 50.

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

Throws

If any invalid show id is provided, if this is a SpotifyClientApi