Package-level declarations
Types
The offset-based paging object is a container for a set of objects. It contains a key called items (whose value is an array of the requested objects) along with other keys like previous, next and limit that can be useful in future calls.
Represents an Album on Spotify
Album search type
Represents a Spotify Album URI (spotify:album:XXXXXXXXXX), parsed from either a Spotify ID or taken from an endpoint.
Represents an Artist (distinct from a regular user) on Spotify
Represents a Spotify Artist URI (spotify:artist:XXXXXXXXXX), parsed from either a Spotify ID or taken from an endpoint.
The Audio Analysis endpoint provides low-level audio analysis for all of the tracks in the Spotify catalog. The Audio Analysis describes the track’s structure and musical content, including rhythm, pitch, and timbre. All information is precise to the audio sample. Many elements of analysis include confidence values, a floating-point number ranging from 0.0 to 1.0. Confidence indicates the reliability of its corresponding attribute. Elements carrying a small confidence value should be considered speculative. There may not be sufficient data in the audio to compute the attribute with high certainty.
General attributes of a Track
Sections are defined by large variations in rhythm or timbre, e.g. chorus, verse, bridge, guitar solo, etc. Each section contains its own descriptions of tempo, key, mode, time_signature, and loudness.*
Audio segments attempts to subdivide a song into many segments, with each segment containing a roughly consistent sound throughout its duration.
An exception during the authentication process
Represents a Spotify Collection URI (one of PlaylistUri or ImmutableCollectionUri), parsed from either a Spotify ID or taken from an endpoint.
Represents a Spotify Context URI (one of AlbumUri, ArtistUri, PlaylistUri, UserCollectionUri, or ShowUri),
Copyright statement type of an Album
Represents a core Spotify object such as a Track or Album
Information about the current playback
Information about the currently playing track and context
The object type of the currently playing item
The cursor-based paging object is a container for a set of objects. It contains a key called items (whose value is an array of the requested objects) along with other keys like next and cursors that can be useful in future calls.
Electronic type of registered Spotify device
Maps a playback action to whether the user is disallowed from doing it
An episode (podcast) on Spotify
Represents a Spotify Episode URI (spotify:episode:XXXXXXXXXX), parsed from either a Spotify ID or taken from an endpoint.
An endpoint exception from Spotify
Wraps around ErrorObject. Serialized raw Spotify error response
An external id linked to the result object
Key/value pair mapping a name to an arbitrary url
Spotify featured playlists (on the Browse tab)
Represents an identifiable Spotify object such as an Album or Recommendation Seed
Represents an identifiable Spotify object such as an Album or Recommendation Seed
Represents a relinked track. This is playable in the searched market. If null, the API result is playable in the market.
Local track object that representing a song uploaded from a client locally
Represents a Spotify Local Track URI (spotify:local:XXXXXXXXXX), parsed from either a Spotify ID or taken from an endpoint.
Provide access to the underlying SpotifyApi
The offset-based nullable paging object is a container for a set of objects. It contains a key called items (whose value is an array of the requested objects) along with other keys like previous, next and limit that can be useful in future calls. Its items are not guaranteed to be not null
The offset-based non-nullable paging object is a container for a set of objects. It contains a key called items (whose value is an array of the requested objects) along with other keys like previous, next and limit that can be useful in future calls.
A local track, episode, or track. Serialized with PlayableSerializer
Represents a Spotify Playable URI (one of SpotifyTrackUri, LocalTrackUri, or EpisodeUri), parsed from either a Spotify ID or taken from an endpoint.
Action a user takes that will affect current playback
List of playback actions (pause, resume, etc) which a user is disallowed or allowed to do. Playback actions NOT in disallows are allowed.
Information about a previously-played track
Represents a Playlist on Spotify
Represents a Spotify track inside a Playlist
A collection containing a link ( href ) to the Web API endpoint where full details of the playlist’s tracks can be retrieved, along with the total number of tracks in the playlist.
Represents a Spotify Playlist URI (spotify:playlist:XXXXXXXXXX), parsed from either a Spotify ID or taken from an endpoint.
An episode (podcast) on Spotify
Seed from which the recommendation was constructed
Represents a response for which a relinked track could be available
Contains an explanation of why a track is not available
Interface that allows easy identifier retrieval for children with an implemented identifier
Represents the user’s most recent position in the episode. Set if the supplied access token is a user token and has the scope SpotifyScope.UserReadPlaybackPosition.
Represents an album saved in a user's library
Represents an episode saved in a user's library
Represents a show saved in a user's library
Represents a track saved in a user's library
A filter of type SearchFilterType. Should be unique by type.
Available filters that Spotify allows in search, in addition to filtering by object type.
Information about a Spotify show, including its episodes
Represents a Spotify Show URI (spotify:show:XXXXXXXXXX), parsed from either a Spotify ID or taken from an endpoint.
Simplified Album object that can be used to retrieve a full Album
Simplified Artist object that can be used to retrieve a full Artist
A simplified episode (podcast) on Spotify
Local album object that goes with LocalTrack - represents the local album it was obtained from (likely "Local Files")
Local artist object (goes with LocalTrack) representing an artist on a local track
Simplified Playlist object that can be used to retrieve a full Playlist
Basic information about a Spotify show
Simplified Playlist object that can be used to retrieve a full Playlist
Spotify music category
Context in which a track was played
Describes an album's copyright information
A Spotify image
Public information about a Spotify user
Thrown when SpotifyApiOptions.retryWhenRateLimited is false and requests have been ratelimited
Represents a Spotify Track URI (spotify:track:XXXXXXXXXX), parsed from either a Spotify ID or taken from an endpoint.
Represents any Spotify URI (one of ArtistUri, PlayableUri, ImmutableCollectionUri, UserUri, PlaylistUri), parsed from either a Spotify ID or taken from an endpoint.
Exception instantiating or deserializing a uri perceived as invalid
Private information about a Spotify user. Each field may require a specific scope.
This is a generic object used to represent various time intervals within Audio Analysis.
Represents a music track on Spotify
General information about the track as a whole
Represents a Spotify User Collection URI URI (spotify:user:XXXX:collection), parsed from either a Spotify ID or taken from an endpoint. It appears that this URI corresponds to the user's saved tracks collection in their library.
Represents a Spotify User URI (spotify:user:XXXXXXXXXX), parsed from either a Spotify ID or taken from an endpoint.
Functions
Convert an album id or uri string to an AlbumUri object
Convert an artist id or uri string to an ArtistUri object
Convert a collection (playlist/ImmutableCollectionUri) id or uri string to an ImmutableCollectionUri object. If an id is provided or the input is ambiguous, PlaylistUri is preferred.
Convert any (artist, album, playlist, or show) uri string to a ContextUri object.
Convert an episode id or uri string to an EpisodeUri object
Convert an immutable collection (album/show) id or uri string to an ImmutableCollectionUri object. If an id is provided or the input is ambiguous, AlbumUri is preferred.
Convert a local track id or uri string to a LocalTrackUri object
Convert a playable (track/local track/episode) id or uri string to a PlayableUri object. If an id is provided or the input is ambiguous, SpotifyTrackUri is preferred.
Convert a playlist id or uri string to a PlaylistUri object
Convert any (artist, PlayableUri, ImmutableCollectionUri, user, playlist) uri string to a SpotifyUri object. Ambiguity is not allowed.
Convert a track (non-local) id or uri string to a SpotifyTrackUri object
Convert a show id or uri string to a ShowUri object