Episodes
API #
Implementation to make API calls with.
Parameters:
-
access_flow(AuthorizationCodeFlow | ClientCredentialsFlow) –Access flow to use for api requests.
get_episode #
Get Spotify catalog information for a single episode.
Warning
When not using a user token for auth, market is required. Otherwise you will receive a 404.
Parameters:
-
episode_id(str) –The ID of the episode.
-
market(str, default:MISSING) –Only get content available in that market. Must be an ISO 3166-1 alpha-2 country code.
Returns:
-
Episode–The requested episode.
get_several_episodes #
Get Spotify catalog information for several episodes.
Warning
When not using a user token for auth, market is required. Otherwise you will receive an error.
Parameters:
-
episode_ids(list[str]) –The IDs of the episodes. Maximum: 50.
-
market(str, default:MISSING) –Only get content available in that market. Must be an ISO 3166-1 alpha-2 country code.
Returns:
get_users_saved_episodes #
get_users_saved_episodes(*, limit: MissingOr[int] = MISSING, offset: MissingOr[int] = MISSING, market: MissingOr[str] = MISSING) -> Paginator[SavedEpisode]
Get a list of the episodes saved in the current user's 'Your Music' library.
Required Authorization Scope
Warning
This API endpoint is in beta and could break without warning.
Parameters:
-
limit(int, default:20) –The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
-
offset(int, default:0) –The index of the first item to return. Default: 0 (the first item).
-
market(str, default:MISSING) –Only get content available in that market. Must be an ISO 3166-1 alpha-2 country code.
Returns:
-
Paginator[SavedEpisode]–A paginator who's items are a list of episodes.
remove_users_saved_episodes #
Remove one or more episodes from the current user's 'Your Music' library.
Required Authorization Scope
Warning
This API endpoint is in beta and could break without warning.
Parameters:
check_users_saved_episodes #
Check if one or more episodes are already saved in the current user's 'Your Music' library.
Required Authorization Scope
Warning
This API endpoint is in beta and could break without warning.
Parameters:
Returns:
SimpleEpisode #
A simplified episode.
audio_preview_url #
audio_preview_url: str | None
A URL to a 30 second preview (MP3 format) of the episode. None if not available.
description #
description: str
A description of the episode. HTML tags are stripped away from this field, use the html_description field in case HTML tags are needed.
html_description #
html_description: str
A description of the episode. This field may contain HTML tags.
languages #
A list of the languages used in the episode, identified by their ISO 639-1 code.
release_date_precision #
release_date_precision: ReleaseDatePrecision
The precision with which release_date value is known.
resume_point #
resume_point: ResumePoint | None = None
The user's most recent position in the episode.
Required Authorization Scope
restrictions #
restrictions: Restrictions | None = None
Present when a content restriction is applied.
Episode #
An episode.
audio_preview_url #
audio_preview_url: str | None
A URL to a 30 second preview (MP3 format) of the episode. None if not available.
description #
description: str
A description of the episode. HTML tags are stripped away from this field, use the html_description field in case HTML tags are needed.
html_description #
html_description: str
A description of the episode. This field may contain HTML tags.
languages #
A list of the languages used in the episode, identified by their ISO 639-1 code.
release_date_precision #
release_date_precision: ReleaseDatePrecision
The precision with which release_date value is known.
resume_point #
resume_point: ResumePoint | None = None
The user's most recent position in the episode.
Required Authorization Scope
restrictions #
restrictions: Restrictions | None = None
Present when a content restriction is applied.