Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jonathan343/spotify-sdk/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheAudiobookService (sync) and AsyncAudiobookService (async) provide methods for retrieving Spotify audiobook information and chapters.
Both sync and async versions are available. Import
AudiobookService for sync operations or AsyncAudiobookService for async operations.Methods
get
Retrieve detailed information about a single audiobook by its Spotify ID.The Spotify ID for the audiobook.
An ISO 3166-1 alpha-2 country code for availability. Audiobook availability varies by region.
Audiobook - The complete audiobook object with metadata including authors, narrators, and chapter information.
Raises: ValueError if id is empty.
get_several
Retrieve multiple audiobooks in a single request.List of Spotify audiobook IDs. Maximum of 50 IDs per request enforced by Spotify API.
An ISO 3166-1 alpha-2 country code for availability.
list[Audiobook] - List of audiobook objects.
Raises: ValueError if ids is empty.
get_chapters
Retrieve the chapters from a specific audiobook with pagination support.The Spotify ID for the audiobook.
An ISO 3166-1 alpha-2 country code for availability.
Maximum number of chapters to return. Valid range: 1-50.
Index of the first chapter to return (for pagination).
Page[SimplifiedChapter] - Paginated response containing simplified chapter objects.
Raises: ValueError if id is empty.
Chapter numbers and total counts help with navigation and displaying progress through an audiobook.
Related Models
Audiobook- Full audiobook object with complete metadataSimplifiedChapter- Chapter object with essential informationPage[T]- Paginated response wrapper
See Also
- Chapters Service - Work with individual chapters
- Episodes Service - Work with podcast episodes
- Authentication - Required scopes and auth flows