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.
Common Models
These models are shared across multiple resource types in the Spotify API. They represent common data structures like URLs, images, pagination, and identifiers.ExternalUrls
External URLs for opening a resource in the Spotify web player or other platforms.Fields
The Spotify URL for the resource (opens in the Spotify web player)
Example JSON
Usage
Followers
Follower information for artists or playlists.Fields
A link to the Web API endpoint providing full details of followers. Currently always
None.The total number of followers
Example JSON
Usage
Image
Cover art or profile image. Used for albums, artists, playlists, shows, audiobooks, and user profiles.Fields
The source URL of the image
The image height in pixels, or
None if unknown (common for user-uploaded images)The image width in pixels, or
None if unknown (common for user-uploaded images)Example JSON
Usage
Restriction
Content restriction information explaining why content may not be available.Fields
The reason for the restriction. Possible values:
"market": Content not available in the given market"product": Content not available for the user’s subscription level"explicit": Content restricted due to explicit content settings
Example JSON
Usage
Copyright
Copyright statement for albums, audiobooks, and shows.Fields
The copyright text
The type of copyright:
"C": Copyright (℗)"P": Performance rights (©)
Example JSON
Usage
ExternalIds
External identifiers for tracks and albums (ISRC, EAN, UPC).Fields
International Standard Recording Code for tracks
International Article Number for albums
Universal Product Code for albums
Example JSON
Usage
LinkedFrom
Original track information when track relinking has replaced the requested track.Fields
External URLs for the originally requested track
A link to the Web API endpoint for the originally requested track
The Spotify ID for the originally requested track
The object type, always “track”
The Spotify URI for the originally requested track
Example JSON
Usage
Page
Generic paginated response containing a list of items and navigation links. This is used for offset-based pagination.Type Parameters
T: The type of items in the page (e.g.,Track,Album,SimplifiedTrack)
Fields
A link to the Web API endpoint returning the full result of the request
The maximum number of items in the response (as set in the query or default)
URL to the next page of items, or
None if this is the last pageThe offset of the items returned (as set in the query or default)
URL to the previous page of items, or
None if this is the first pageThe total number of items available to return
The requested data (array of objects)
Example JSON
Usage
Cursor
Cursor keys for cursor-based pagination.Fields
The cursor to use as a key to find the next page of items
The cursor to use as a key to find the previous page of items
Example JSON
CursorPage
Cursor-based paginated response. Similar toPage but uses cursors instead of offsets.
Type Parameters
T: The type of items in the page
Fields
A link to the Web API endpoint returning the full result of the request
The maximum number of items in the response
URL to the next page of items, or
None if this is the last pageCursor information for navigating pages
The total number of items available
The requested data (array of objects)
Example JSON
Usage
Pagination Overview
Offset vs Cursor PaginationSpotify uses two pagination strategies:Offset-based (
Page):- Used for most endpoints
- Allows jumping to any page
- Parameters:
offsetandlimit - Example:
/v1/me/tracks?offset=20&limit=20
CursorPage):- Used for endpoints that change frequently (e.g., following)
- More efficient for real-time data
- Parameters:
aftercursor andlimit - Example:
/v1/me/following?after=abc123&limit=20