Chapters
Note
Audiobooks are only available for the US, UK, Ireland, New Zealand and Australia markets.
API #
Implementation to make API calls with.
Parameters:
-
access_flow(AuthorizationCodeFlow | ClientCredentialsFlow) –Access flow to use for api requests.
get_chapter #
Get Spotify catalog information for a single chapter.
Parameters:
-
chapter_id(str) –The ID of the chapter.
-
market(str, default:MISSING) –Only get content available in that market. Must be an ISO 3166-1 alpha-2 country code.
Returns:
-
Chapter–The requested chapter.
get_several_chapters #
SimpleChapter #
A simplified chapter.
audio_preview_url #
audio_preview_url: str | None
A URL to a 30 second preview (MP3 format) of the chapter. None if not available.
available_markets #
A list of the countries in which the chapter can be played, identified by their ISO 3166-1 alpha-2 code.
description #
description: str
A description of the chapter. 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 chapter. This field may contain HTML tags.
languages #
A list of the languages used in the chapter, 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
The user's most recent position in the chapter.
Required Authorization Scope
restrictions #
restrictions: Restrictions | None = None
Present when a content restriction is applied.
Chapter #
A chapter.
audio_preview_url #
audio_preview_url: str | None
A URL to a 30 second preview (MP3 format) of the chapter. None if not available.
available_markets #
A list of the countries in which the chapter can be played, identified by their ISO 3166-1 alpha-2 code.
description #
description: str
A description of the chapter. 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 chapter. This field may contain HTML tags.
languages #
A list of the languages used in the chapter, 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
The user's most recent position in the chapter.
Required Authorization Scope
restrictions #
restrictions: Restrictions | None = None
Present when a content restriction is applied.