Overview
TheEpisodeService (sync) and AsyncEpisodeService (async) provide methods for retrieving Spotify podcast episode information and managing saved episodes in the user’s library.
Both sync and async versions are available. Import
EpisodeService for sync operations or AsyncEpisodeService for async operations.Methods
get
Retrieve detailed information about a single podcast episode by its Spotify ID.The Spotify ID for the episode.
An ISO 3166-1 alpha-2 country code for availability. Episode availability may vary by region.
Episode - The complete episode object with metadata including show information, duration, and description.
Raises: ValueError if id is empty.
get_saved
Retrieve podcast episodes saved in the current user’s library.Maximum number of episodes to return. Valid range: 1-50.
Index of the first episode to return (for pagination).
An ISO 3166-1 alpha-2 country code.
Page[SavedEpisode] - Paginated response containing saved episode objects with metadata.
Requires the
user-library-read scope.Response Models
SavedEpisode
TheSavedEpisode model wraps an episode with save metadata:
The timestamp when the episode was saved to the library.
The full episode object.
Episode
TheEpisode model includes:
The Spotify ID for the episode.
The name of the episode.
A description of the episode (may contain HTML).
The episode length in milliseconds.
The date the episode was first released.
The language used in the episode (ISO 639 code).
Information about the podcast show.
A URL to a 30-second preview (MP3 format) of the episode, if available.
Related Models
Episode- Full episode object with complete metadataSavedEpisode- Episode object with save timestampSimplifiedShow- Basic show information included with episodesPage[T]- Paginated response wrapper
See Also
- Library Service - Save and remove library items
- Chapters Service - Work with audiobook chapters
- Authentication - Required scopes and auth flows