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
TheChapterService (sync) and AsyncChapterService (async) provide methods for retrieving individual audiobook chapter information from Spotify.
Both sync and async versions are available. Import
ChapterService for sync operations or AsyncChapterService for async operations.Methods
get
Retrieve detailed information about a single audiobook chapter by its Spotify ID.The Spotify ID for the chapter.
An ISO 3166-1 alpha-2 country code for chapter relinking and availability.
Chapter - The complete chapter object with metadata including name, description, duration, and audiobook reference.
Raises: ValueError if id is empty.
get_several
Retrieve multiple audiobook chapters in a single request.List of Spotify chapter IDs. Maximum of 50 IDs per request enforced by Spotify API.
An ISO 3166-1 alpha-2 country code for chapter relinking and availability.
list[Chapter] - List of chapter objects.
Raises: ValueError if ids is empty.
Chapters are part of audiobooks on Spotify. Use the Audiobooks Service to browse audiobook catalogs and retrieve chapter lists.
Related Models
Chapter- Full chapter object with complete metadataSimplifiedChapter- Simplified chapter object with essential informationAudiobook- Parent audiobook reference
See Also
- Audiobooks Service - Work with audiobooks
- Episodes Service - Work with podcast episodes
- Authentication - Required scopes and auth flows