Spotify API .NET Standard Library
Access Token Object
Error
Token Expiration Date
Refresh
Scopes
Access Token
Token Type
Authentication Token Type
Access Token
User Token
Auth Access Token Expired or Required Error
Auth Code State Error
Constructor
Name | Description |
---|---|
message | System.String Message |
Auth Code Value Error
Constructor
Name | Description |
---|---|
message | System.String Message |
Auth Code Verifier Expired or Required Error
Auth Exception
Constructor
Constructor
Name | Description |
---|---|
message | System.String Error Message |
Auth Token Expired or Required Error
Auth Token State Error
Constructor
Name | Description |
---|---|
message | System.String Message |
Auth Token Value Error
Constructor
Name | Description |
---|---|
message | System.String Message |
Auth User Token Expired or Required Error
Spotify API
Add Items to Playlist Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String The Spotify ID for the playlist. |
uris | System.Collections.Generic.List{System.String} (Optional) List of Spotify track URIs to add. |
position | System.Nullable{System.Int32} (Optional) The position to insert the tracks, a zero-based index. |
Snapshot Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Change Playlist Details Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
name | System.String (Optional) The new name for the playlist, for example "My New Playlist Title" |
isPublic | System.Nullable{System.Boolean} (Optional) If true the playlist will be public, if false it will be private. |
isCollaborative | System.Nullable{System.Boolean} (Optional) If true , the playlist will become collaborative and other users will be able to modify the playlist in their Spotify client. Note: You can only set collaborative to true on non-public playlists. |
description | System.String (Optional) Value for playlist description as displayed in Spotify Clients and in the Web API. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check User's Saved Albums Scopes: LibraryRead
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the albums |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check User's Saved Episodes Scopes: LibraryRead
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the episodes |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check User's Saved Shows Scopes: LibraryRead
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the shows |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check User's Saved Tracks Scopes: LibraryRead
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the tracks |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check if Users Follow a Playlist Scopes: PlaylistReadPrivate
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of Spotify User IDs, the ids of the users that you want to check to see if they follow the playlist. Maximum: 5 ids. |
playlistId | System.String (Required) The Spotify ID of the playlist. |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Spotify Client
Create Playlist Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
userId | System.String (Required) The user’s Spotify user ID. |
name | System.String (Required) The name for the new playlist, for example "Your Coolest Playlist" . This name does not need to be unique; a user may have several playlists with the same name. |
isPublic | System.Nullable{System.Boolean} (Optional) Defaults to true . If true the playlist will be public, if false it will be private. To be able to create private playlists, the user must have granted the playlist-modify-private scope |
isCollaborative | System.Nullable{System.Boolean} (Optional) Defaults to false . If true the playlist will be collaborative. Note that to create a collaborative playlist you must also set public to false . To create collaborative playlists you must have granted playlist-modify-private and playlist-modify-public scopes. |
description | System.String (Optional) Value for playlist description as displayed in Spotify Clients and in the Web API. |
Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Follow Artists or Users Scopes: FollowModify
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the artist or the user Spotify IDs. |
followType | Spotify.NetStandard.Enums.FollowType (Required) Either artist or user |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Follow Playlist Scopes: FollowModify
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private status, as long as you know its playlist ID. |
isPublic | System.Boolean (Optional) Defaults to true. If true the playlist will be included in user’s public playlists, if false it will remain private. To be able to follow playlists privately, the user must have granted the playlist-modify-private scope. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get an Album
Name | Description |
---|---|
id | System.String (Required) The Spotify ID of the album. |
market | System.String (Optional) The market you’d like to request. An ISO 3166-1 alpha-2 country code. |
Album Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get an Album's Tracks
Name | Description |
---|---|
id | System.String (Required) The Spotify ID of the album. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of tracks to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first track to return |
Paging of Track Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Several Browse Categories
Name | Description |
---|---|
country | System.String (Optional) A country: an ISO 3166-1 alpha-2 country code. |
locale | System.String (Optional) The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code, joined by an underscore. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of categories to return. Default: 20. Minimum: 1. Maximum: 50. Offset: The index of the first item to return. Default: 0 |
Paging List of Category Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Featured Playlists
Name | Description |
---|---|
country | System.String (Optional) A country: an ISO 3166-1 alpha-2 country code. Provide this parameter if you want the list of returned items to be relevant to a particular country |
locale | System.String (Optional) The desired language, consisting of a lowercase ISO 639-1 language code and an uppercase ISO 3166-1 alpha-2 country code, joined by an underscore |
timeStamp | System.Nullable{System.DateTime} (Optional) Use this parameter to specify the user’s local time to get results tailored for that specific date and time in the day. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first item to return. Default: 0 |
Paging List of Simplified Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get All New Releases
Name | Description |
---|---|
country | System.String (Optional) A country: an ISO 3166-1 alpha-2 country code. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first item to return. Default: 0 |
Paging List of Album Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get an Artist's Albums
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the artist. |
includeGroup | Spotify.NetStandard.Requests.IncludeGroup (Optional) Filters the response. If not supplied, all album types will be returned |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The number of album objects to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first album to return. Default: 0 |
Paging List of Album Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get an Artist
Name | Description |
---|---|
id | System.String (Required) The Spotify ID of the artist. |
Artist Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get an Artist's Related Artists
Name | Description |
---|---|
id | System.String (Requird) The Spotify ID for the artist. |
List of Artist Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get an Artist's Top Tracks
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the artist. |
market | System.String (Required) An ISO 3166-1 alpha-2 country code or the string from_token |
List of Track Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get an Audiobook
Name | Description |
---|---|
id | System.String (Required) The Spotify ID of the audiobook. |
market | System.String (Optional) The market you’d like to request. An ISO 3166-1 alpha-2 country code. |
Audiobook Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Audiobook Chapters
Name | Description |
---|---|
id | System.String (Required) The Spotify ID of the audiobook. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of tracks to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first track to return |
Paging of Chapter Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Authorisation Code Auth Token - Authorization Code Flow
Name | Description |
---|---|
responseUri | System.Uri Response Uri |
redirectUri | System.Uri Redirect Uri |
state | System.String State used to mitigate cross-site request forgery attacks |
AccessToken on Success, Null if Not
Spotify.NetStandard.Client.Exceptions.AuthCodeValueException: AuthCodeValueException
Spotify.NetStandard.Client.Exceptions.AuthCodeStateException: AuthCodeStateException
Get Authorisation Code Auth Token - Authorization Code Flow with Proof Key For Code Exchange (PKCE)
Name | Description |
---|---|
responseUri | System.Uri Response Uri |
redirectUri | System.Uri Redirect Uri |
state | System.String State used to mitigate cross-site request forgery attacks |
codeVerifier | System.String Provide Code Verifier for Proof Key For Code Exchange |
AccessToken on Success, Null if Not
Spotify.NetStandard.Client.Exceptions.AuthCodeVerifierRequiredException: AuthCodeVerifierRequiredException
Spotify.NetStandard.Client.Exceptions.AuthCodeValueException: AuthCodeValueException
Spotify.NetStandard.Client.Exceptions.AuthCodeStateException: AuthCodeStateException
Get Authorisation Code Auth Uri - Authorisation Code Flow
Name | Description |
---|---|
redirectUri | System.Uri Redirect Uri |
state | System.String State used to mitigate cross-site request forgery attacks |
scope | Spotify.NetStandard.Requests.Scope Authorisation Scopes |
showDialog | System.Boolean (Optional) Whether or not to force the user to approve the app again if they’ve already done so. |
Uri
Get Authorisation Code Auth Uri - Authorisation Code Flow with Proof Key For Code Exchange (PKCE)
Name | Description |
---|---|
redirectUri | System.Uri Redirect Uri |
state | System.String State used to mitigate cross-site request forgery attacks |
scope | Spotify.NetStandard.Requests.Scope Authorisation Scopes |
codeVerifier | System.String@ Generated Code Verifier for Proof Key For Code Exchange |
showDialog | System.Boolean (Optional) Whether or not to force the user to approve the app again if they’ve already done so. |
Uri
Get Available Markets
Available Markets
Get Single Browse Category
Name | Description |
---|---|
categoryId | System.String (Required) The Spotify category ID for the category. |
country | System.String (Optional) A country: an ISO 3166-1 alpha-2 country code. |
locale | System.String (Optional) The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code, joined by an underscore. |
Category Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Category's Playlists
Name | Description |
---|---|
categoryId | System.String (Required) The Spotify category ID for the category. |
country | System.String (Optional) A country: an ISO 3166-1 alpha-2 country code. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first item to return. Default: 0 |
Paging List of Simplified Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get a Chapter
Name | Description |
---|---|
id | System.String (Required) The Spotify ID of the chapter. |
market | System.String (Optional) The market you’d like to request. An ISO 3166-1 alpha-2 country code. |
Chapter Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Client Credentials Auth Token - Client Credentials Flow
AccessToken on Success, Null if Not
Get an Episode (Optional) Scopes: PlaybackPositionRead for ResumePoint
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the episode. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only shows and episodes that are available in that market will be returned. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter. |
Episode Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Check if User Follows Artists or Users Scopes: FollowRead
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the artist or the user Spotify IDs to check. |
followType | Spotify.NetStandard.Enums.FollowType (Required) Either artist or user. |
List of true or false values
Get Implicit Grant Auth Token - Implicit Grant Flow
Name | Description |
---|---|
responseUri | System.Uri Response Uri |
redirectUri | System.Uri Redirect Uri |
state | System.String State used to mitigate cross-site request forgery attacks |
AccessToken on Success, Null if Not
Spotify.NetStandard.Client.Exceptions.AuthTokenValueException: AuthTokenValueException
Spotify.NetStandard.Client.Exceptions.AuthTokenStateException: AuthTokenStateException
Get Implicit Grant Auth Uri - Implicit Grant Flow
Name | Description |
---|---|
redirectUri | System.Uri Redirect Uri |
state | System.String State used to mitigate cross-site request forgery attacks |
scope | Spotify.NetStandard.Requests.Scope Authorisation Scopes |
showDialog | System.Boolean (Optional) Whether or not to force the user to approve the app again if they’ve already done so. |
Uri
Get Several Albums
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the albums. Maximum: 20 IDs. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
List of Album Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Several Artists
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the artists. Maximum: 50 IDs. |
List of Artist Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Several Audiobooks
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the audiobooks. Maximum: 50 IDs. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. |
List of Album Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Several Chapters
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the chapters. Maximum: 50 IDs. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. |
List of Chapter Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Several Episodes (Optional) Scopes: PlaybackPositionRead for ResumePoint
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the episodes. Maximum: 50 ID |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only shows and episodes that are available in that market will be returned. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter. |
List of Episode Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Several Shows (Optional) Scopes: PlaybackPositionRead for ResumePoint
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the shows. Maximum: 50 IDs. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only shows and episodes that are available in that market will be returned. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter. |
List of Show Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get a Playlist
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
fields | System.String (Optional) Filters for the query: a comma-separated list of the fields to return. If omitted, all fields are returned. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token |
additionalTypes | System.Collections.Generic.List{System.String} (Optional) List of item types that your client supports besides the default track type. Valid types are track and episode. An unsupported type in the response is expected to be represented as null value in the item field. This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. |
Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Playlist Cover Image
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
List of Image Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Playlist Items
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the playlist. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return. Default: 100. Minimum: 1. Maximum: 100. - Offset: The index of the first item to return. Default: 0 |
fields | System.String (Optional) Filters for the query: a comma-separated list of the fields to return. If omitted, all fields are returned. |
additionalTypes | System.Collections.Generic.List{System.String} (Optional) List of item types that your client supports besides the default track type. Valid types are track and episode. An unsupported type in the response is expected to be represented as null value in the item field. This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. |
Paging List of Playlist Track Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Available Genre Seeds
Available Genre Seeds Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Recommendations
Name | Description |
---|---|
seedArtists | System.Collections.Generic.List{System.String} (Required) List of Spotify IDs for seed artists. Up to 5 seed values may be provided in any combination of seedArtists, seedTracks and seedGenres. |
seedGenres | System.Collections.Generic.List{System.String} (Required) List of any genres in the set of available genre seeds. Up to 5 seed values may be provided in any combination of seedArtists, seedTracks and seedGenres. |
seedTracks | System.Collections.Generic.List{System.String} (Required) List of Spotify IDs for a seed track. Up to 5 seed values may be provided in any combination of seedArtists, seedTracks and seedGenres. |
limit | System.Nullable{System.Int32} (Optional) The target size of the list of recommended tracks. Default: 20. Minimum: 1. Maximum: 100. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token |
minTuneableTrack | Spotify.NetStandard.Requests.TuneableTrack (Optional) Multiple values. For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided |
maxTuneableTrack | Spotify.NetStandard.Requests.TuneableTrack (Optional) Multiple values. For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. |
targetTuneableTrack | Spotify.NetStandard.Requests.TuneableTrack (Optional) Multiple values. For each of the tunable track attributes (below) a target value may be provided. |
Recommendation Response Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Several Tracks
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the tracks. Maximum: 50 IDs. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
List of Track Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Tracks' Audio Features
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the tracks. Maximum: 100 IDs. |
List of Audio Features Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get a Show (Optional) Scopes: PlaybackPositionRead for ResumePoint
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the show. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only shows and episodes that are available in that market will be returned. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter. |
Show Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Show Episodes (Optional) Scopes: PlaybackPositionRead for ResumePoint
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the show |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only shows and episodes that are available in that market will be returned. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of tracks to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first track to return |
Paging of Episode Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get a Track
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the track. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
Track Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Track's Audio Analysis
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the track |
Audio Analysis Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Track's Audio Features
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the track |
Audio Features Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Playback State Scopes: ConnectReadPlaybackState
Name | Description |
---|---|
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
additionalTypes | System.Collections.Generic.List{System.String} (Optional) List of item types that your client supports besides the default track type. Valid types are track and episode. An unsupported type in the response is expected to be represented as null value in the item field. This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. |
Currently Playing Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Currently Playing Track Scopes: ConnectReadCurrentlyPlaying, ConnectReadPlaybackState
Name | Description |
---|---|
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
additionalTypes | System.Collections.Generic.List{System.String} (Optional) List of item types that your client supports besides the default track type. Valid types are track and episode. An unsupported type in the response is expected to be represented as null value in the item field. This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. |
Simplified Currently Playing Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Available Devices Scopes: ConnectReadPlaybackState
Devices Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Playlists Scopes: PlaylistReadPrivate, PlaylistReadCollaborative
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of playlists to return. Default: 20. Minimum: 1. Maximum: 50. - The index of the first playlist to return. Default: 0 (the first object). Maximum offset: 100. Use with limit to get the next set of playlists. |
CursorPaging of Simplified Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Playlists Scopes: PlaylistReadPrivate, PlaylistReadCollaborative
Name | Description |
---|---|
userId | System.String (Required) The user’s Spotify user ID. |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of playlists to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first playlist to return. Default: 0 (the first object). Maximum offset: 100 |
CursorPaging of Simplified Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Current User's Profile Scopes: UserReadEmail, UserReadPrivate
Private User Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Profile
Name | Description |
---|---|
userId | System.String The user’s Spotify user ID. |
Public User Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get the User's Queue Scopes: ConnectReadCurrentlyPlaying
Queue Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Recently Played Tracks Scopes: ListeningRecentlyPlayed
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. - After: A Unix timestamp in milliseconds. Returns all items after (but not including) this cursor position. If after is specified, before must not be specified. Before - (Optional) A Unix timestamp in milliseconds. Returns all items before (but not including) this cursor position. If before is specified, after must not be specified. |
Cursor Paging of Play History Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Saved Albums Scopes: LibraryRead
Name | Description |
---|---|
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. |
Cursor Paging of Saved Album Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Saved Episodes Scopes: LibraryRead
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. |
Cursor Paging of Saved Episode Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Saved Shows Scopes: LibraryRead
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. |
Cursor Paging of Saved Show Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Saved Tracks Scopes: LibraryRead
Name | Description |
---|---|
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. |
Cursor Paging of Saved Track Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Followed Artists Scopes: FollowRead
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. - After: The last artist ID retrieved from the previous request. |
CursorPaging of Artist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get a User's Top Items (Artists) Scopes: ListeningTopRead
Name | Description |
---|---|
timeRange | System.Nullable{Spotify.NetStandard.Enums.TimeRange} (Optional) Over what time frame the affinities are computed. Long Term: alculated from several years of data and including all new data as it becomes available, Medium Term: (Default) approximately last 6 months, Short Term: approximately last 4 weeks |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The number of entities to return. Default: 20. Minimum: 1. Maximum: 50. For example - Offset: he index of the first entity to return. Default: 0. Use with limit to get the next set of entities. |
Cursor Paging of Artist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get a User's Top Items (Tracks) Scopes: ListeningTopRead
Name | Description |
---|---|
timeRange | System.Nullable{Spotify.NetStandard.Enums.TimeRange} (Optional) Over what time frame the affinities are computed. Long Term: alculated from several years of data and including all new data as it becomes available, Medium Term: (Default) approximately last 6 months, Short Term: approximately last 4 weeks |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The number of entities to return. Default: 20. Minimum: 1. Maximum: 50. For example - Offset: he index of the first entity to return. Default: 0. Use with limit to get the next set of entities. |
Cursor Paging of Track Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove Playlist Items Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
uris | System.Collections.Generic.List{System.String} (Required) List of Spotify URIs of the tracks to remove |
snapshotId | System.String (Optional) The playlist’s snapshot ID against which you want to make the changes. The API will validate that the specified tracks exist and in the specified positions and make the changes, even if more recent changes have been made to the playlist. |
uriPositions | System.Collections.Generic.List{System.Collections.Generic.List{System.Int32}} (Optional) List of Positions for each of the Uris in the playlist, positions are zero-indexed, that is the first item in the playlist has the value 0, the second item 1, and so on |
Snapshot Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove Albums for Current User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the albums |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove User's Saved Episodes Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the episodes |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only episodes that are available in that market will be removed. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove User's Saved Shows Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the shows |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only shows that are available in that market will be removed. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove User's Saved Tracks Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the tracks |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Update Playlist Items Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String The Spotify ID for the playlist. |
rangeStart | System.Int32 (Required) The position of the first track to be reordered. |
insertBefore | System.Int32 (Required) The position where the tracks should be inserted. To reorder the tracks to the end of the playlist, simply set insert_before to the position after the last track. |
rangeLength | System.Nullable{System.Int32} (Optional) The amount of tracks to be reordered. Defaults to 1 if not set. The range of tracks to be reordered begins from the range_start position, and includes the range_length subsequent tracks. |
snapshotId | System.String (Optional) The playlist’s snapshot ID against which you want to make the changes. |
Snapshot Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Replace Playlist Items Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
uris | System.Collections.Generic.List{System.String} (Optional) List of Spotify track URIs. |
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Save Albums for Current User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the albums |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Save Episodes for User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the episodes |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Save Shows for Current User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the shows |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Save Tracks for User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the tracks |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Search for Item
Name | Description |
---|---|
query | System.String (Required) Search query keywords and optional field filters and operators. |
searchType | Spotify.NetStandard.Requests.SearchType (Required) List of item types to search across. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. |
external | System.Nullable{System.Boolean} (Optional) Include any relevant audio content that is hosted externally. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: Maximum number of results to return. Default: 20 Minimum: 1 Maximum: 50 - Offset: The index of the first track to return |
Content Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Unfollow Artists or Users Scopes: FollowModify
Name | Description |
---|---|
ids | System.Collections.Generic.List{System.String} (Required) List of the artist or the user Spotify IDs. |
followType | Spotify.NetStandard.Enums.FollowType (Required) Either artist or user |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Unfollow Playlist Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID of the playlist that is to be no longer followed. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Add Custom Playlist Cover Image Scopes: UserGeneratedContentImageUpload, PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
file | System.Byte[] (Required) JPEG Image File Bytes |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Add an Item to Playback Queue Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
uri | System.String (Required) The uri of the item to add to the queue. Must be a track or an episode uri. |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Skip to Next Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Pause Playback Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Skip To Previous Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Seek To Position Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
position | System.Int32 (Required) The position in milliseconds to seek to. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song. |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Set Repeat Mode Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
state | Spotify.NetStandard.Enums.RepeatState (Required) track, context or off. track will repeat the current track. context will repeat the current context. off will turn repeat off. |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Set Playback Volume Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
percent | System.Int32 (Required) The volume to set. Must be a value from 0 to 100 inclusive. |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Start/Resume Playback Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
contextUri | System.String (Optional) Spotify URI of the context to play. Valid contexts are albums, artists, playlists. Example: "spotify:album:1Je1IMUlBXcx1Fz0WE7oPT" |
uris | System.Collections.Generic.List{System.String} (Optional) List of the Spotify track URIs to play. For example: ["spotify:track:4iV5W9uYEdYUVa79Axb7Rh", "spotify:track:1301WleyT98MSxVHPZCA6M"]} |
offsetUri | System.Nullable{System.Int32} (Optional) Use either offsetUri or offsetPosition, Indicates from where in the context playback should start. Only available when context_uri corresponds to an album or playlist object, or when the uris parameter is used. “position” is zero based and can’t be negative. Example: 5. |
offsetPosition | System.String (Optional) Use either offsetPosition or offsetUri, Indicates from where in the context playback should start. Only available when context_uri corresponds to an album or playlist object, or when the uris parameter is used. “uri” is a string representing the uri of the item to start at. Example: "spotify:track:1301WleyT98MSxVHPZCA6M" |
position | System.Nullable{System.Int32} (Optional) Indicates from what position to start playback.Must be a positive number.Passing in a position that is greater than the length of the track will cause the player to start playing the next song. |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Toggle Playback Shuffle Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
state | System.Boolean (Required) true : Shuffle user’s playback, false : Do not shuffle user’s playback |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Transfer Playback Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
deviceIds | System.Collections.Generic.List{System.String} (Required) List containing the ID of the device on which playback should be started/transferred. Although an array is accepted, only a single device_id is currently supported. |
play | System.Nullable{System.Boolean} (Optional) true: ensure playback happens on new device. false or not provided: keep the current playback state. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Spotify Client
Spotify API
Add Items to a Playlist Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
uris | Spotify.NetStandard.Requests.UriListRequest (Optional) List of Spotify URIs to add, can be track or episode URIs |
position | System.Nullable{System.Int32} (Optional) The position to insert the tracks, a zero-based index. If omitted, the items will be appended to the playlist. Items are added in the order they are listed. |
Snapshot Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Auth - Client Credentials Flow
AccessToken on Success, Null if Not
Change a Playlist's Details Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
request | Spotify.NetStandard.Requests.PlaylistRequest (Optional) Playlist Request Object |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Create a Playlist Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
userId | System.String (Required) The user’s Spotify user ID. |
request | Spotify.NetStandard.Requests.PlaylistRequest (Required) Playlist Request |
Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Follow Artists or Users Scopes: FollowModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the artist or the user Spotify IDs. |
followType | Spotify.NetStandard.Enums.FollowType (Required) Either artist or user |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Follow a Playlist Scopes: FollowModify
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private status, as long as you know its playlist ID. |
isPublic | System.Boolean (Optional) Defaults to true. If true the playlist will be included in user’s public playlists, if false it will remain private. To be able to follow playlists privately, the user must have granted the playlist-modify-private scope. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Authenticated Get
Name | Description |
---|---|
hostname | System.String Hostname |
endpoint | System.String Endpoint |
parameters | System.Collections.Generic.Dictionary{System.String,System.String} Parameters |
Response
Authenticated Get
Name | Description |
---|---|
source | System.Uri Source Uri |
Response
Get a Playlist Cover Image
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
Image Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check User's Saved Albums Scopes: LibraryRead
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the albums |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check User's Saved Episodes Scopes: LibraryRead
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the episodes |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check User's Saved Shows Scopes: LibraryRead
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the shows |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check User's Saved Tracks Scopes: LibraryRead
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the tracks |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Followed Artists Scopes: FollowRead
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. - After: The last artist ID retrieved from the previous request. |
CursorPaging of Artist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Following State for Artists/Users Scopes: FollowRead
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the artist or the user Spotify IDs to check. |
followType | Spotify.NetStandard.Enums.FollowType (Required) Either artist or user. |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Check if Users Follow a Playlist Scopes: PlaylistReadPrivate
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of Spotify User IDs, the ids of the users that you want to check to see if they follow the playlist. Maximum: 5 ids. |
playlistId | System.String (Required) The Spotify ID of the playlist. |
List of true or false values
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Information About The User's Current Playback Scopes: ConnectReadPlaybackState
Name | Description |
---|---|
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
additionalTypes | System.Collections.Generic.List{System.String} (Optional) List of item types that your client supports besides the default track type. Valid types are track and episode. An unsupported type in the response is expected to be represented as null value in the item field. This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. |
Currently Playing Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get the User's Currently Playing Track Scopes: ConnectReadCurrentlyPlaying, ConnectReadPlaybackState
Name | Description |
---|---|
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
additionalTypes | System.Collections.Generic.List{System.String} (Optional) List of item types that your client supports besides the default track type. Valid types are track and episode. An unsupported type in the response is expected to be represented as null value in the item field. This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. |
Simplified Currently Playing Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get a User's Available Devices Scopes: ConnectReadPlaybackState
Devices Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get a List of Current User's Playlists Scopes: PlaylistReadPrivate, PlaylistReadCollaborative
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of playlists to return. Default: 20. Minimum: 1. Maximum: 50. - The index of the first playlist to return. Default: 0 (the first object). Maximum offset: 100. Use with limit to get the next set of playlists. |
CursorPaging of Simplified Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get a List of a User's Playlists Scopes: PlaylistReadPrivate, PlaylistReadCollaborative
Name | Description |
---|---|
userId | System.String (Required) The user’s Spotify user ID. |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of playlists to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first playlist to return. Default: 0 (the first object). Maximum offset: 100 |
CursorPaging of Simplified Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Current User's Profile Scopes: UserReadEmail, UserReadPrivate
Private User Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get a User's Profile
Name | Description |
---|---|
userId | System.String The user’s Spotify user ID. |
Public User Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get the User's Queue Scopes: ConnectReadCurrentlyPlaying
Queue Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get Current User's Recently Played Tracks Scopes: ListeningRecentlyPlayed
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. - After: A Unix timestamp in milliseconds. Returns all items after (but not including) this cursor position. If after is specified, before must not be specified. Before - (Optional) A Unix timestamp in milliseconds. Returns all items before (but not including) this cursor position. If before is specified, after must not be specified. |
Cursor Paging of Play History Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Saved Albums Scopes: LibraryRead
Name | Description |
---|---|
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. |
Cursor Paging of Saved Album Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Saved Episodes Scopes: LibraryRead
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. |
Cursor Paging of Saved Episode Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Saved Shows Scopes: LibraryRead
Name | Description |
---|---|
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. |
Cursor Paging of Saved Show Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get User's Saved Tracks Scopes: LibraryRead
Name | Description |
---|---|
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token. Provide this parameter if you want to apply Track Relinking. |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first object to return. Default: 0 (i.e., the first object). Use with limit to get the next set of objects. |
Cursor Paging of Saved Track Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get a User's Top Artists Scopes: ListeningTopRead
Name | Description |
---|---|
timeRange | System.Nullable{Spotify.NetStandard.Enums.TimeRange} (Optional) Over what time frame the affinities are computed. Long Term: alculated from several years of data and including all new data as it becomes available, Medium Term: (Default) approximately last 6 months, Short Term: approximately last 4 weeks |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The number of entities to return. Default: 20. Minimum: 1. Maximum: 50. For example - Offset: he index of the first entity to return. Default: 0. Use with limit to get the next set of entities. |
Cursor Paging of Artist Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get a User's Top Tracks Scopes: ListeningTopRead
Name | Description |
---|---|
timeRange | System.Nullable{Spotify.NetStandard.Enums.TimeRange} (Optional) Over what time frame the affinities are computed. Long Term: alculated from several years of data and including all new data as it becomes available, Medium Term: (Default) approximately last 6 months, Short Term: approximately last 4 weeks |
cursor | Spotify.NetStandard.Requests.Cursor (Optional) Limit: The number of entities to return. Default: 20. Minimum: 1. Maximum: 50. For example - Offset: he index of the first entity to return. Default: 0. Use with limit to get the next set of entities. |
Cursor Paging of Track Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Authenticated Navigate
Name | Description |
---|---|
cursor | Spotify.NetStandard.Responses.CursorPaging{``0} Cursor Object |
navigateType | Spotify.NetStandard.Enums.NavigateType Navigate Type |
Content Response
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove Items from a Playlist Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
request | Spotify.NetStandard.Requests.PlaylistTracksRequest (Optional) Tracks: An array of objects containing Spotify URIs of the tracks or episodes to remove. Snapshot ID : The playlist’s snapshot ID against which you want to make the changes. The API will validate that the specified tracks exist and in the specified positions and make the changes, even if more recent changes have been made to the playlist. |
Snapshot Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove Albums for Current User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the albums |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove User's Saved Episodes Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the episodes |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only episodes that are available in that market will be removed. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove User's Saved Shows Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the shows |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code. If a country code is specified, only shows that are available in that market will be removed. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Remove User's Saved Tracks Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the tracks |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Reorder a Playlist's Tracks Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
request | Spotify.NetStandard.Requests.PlaylistReorderRequest (Required) Playlist Reorder Request |
Snapshot Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Replace a Playlist's Tracks Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
uris | Spotify.NetStandard.Requests.UriListRequest (Optional) Uri List Request. |
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Save Albums for Current User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the albums |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Save Episodes for User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the episodes |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Save Shows for Current User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the shows |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Save Tracks for User Scopes: LibraryModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the Spotify IDs for the tracks |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Unfollow Artists or Users Scopes: FollowModify
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of the artist or the user Spotify IDs. |
followType | Spotify.NetStandard.Enums.FollowType (Required) Either artist or user |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Unfollow Playlist Scopes: PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID of the playlist that is to be no longer followed. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Upload a Custom Playlist Cover Image Scopes: UserGeneratedContentImageUpload, PlaylistModifyPublic, PlaylistModifyPrivate
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
file | System.Byte[] (Required) JPEG Image File Bytes |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Auth User - Authorisation Code Flow
Name | Description |
---|---|
redirectUri | System.Uri (Required) Redirect Uri |
state | System.String (Recommended) State used to mitigate cross-site request forgery attacks |
scope | Spotify.NetStandard.Requests.Scope (Optional) Authorisation Scopes |
codeVerifier | System.String@ Generated Code Verifier for Proof Key For Code Exchange |
showDialog | System.Boolean (Optional) Whether or not to force the user to approve the app again if they’ve already done so. |
Uri
Auth User - Authorisation Code Flow
Name | Description |
---|---|
responseUri | System.Uri (Required) Response Uri |
redirectUri | System.Uri (Required) Redirect Uri |
state | System.String (Recommended) State used to mitigate cross-site request forgery attacks |
codeVerifier | System.String Generated Code Verifier for Proof Key For Code Exchange |
AccessToken on Success, Null if Not
Spotify.NetStandard.Client.Exceptions.AuthCodeVerifierRequiredException: AuthCodeVerifierRequiredException
Spotify.NetStandard.Client.Exceptions.AuthCodeValueException: AuthCodeValueException
Spotify.NetStandard.Client.Exceptions.AuthCodeStateException: AuthCodeStateException
Auth User Implicit - Implicit Grant Flow
Name | Description |
---|---|
redirectUri | System.Uri (Required) Redirect Uri |
state | System.String (Recommended) State used to mitigate cross-site request forgery attacks |
scope | Spotify.NetStandard.Requests.Scope (Optional) Authorisation Scopes |
showDialog | System.Boolean (Optional) Whether or not to force the user to approve the app again if they’ve already done so. |
Uri
Auth User Implicit - Implicit Grant Flow
Name | Description |
---|---|
responseUri | System.Uri (Required) Response Uri |
redirectUri | System.Uri (Required) Redirect Uri |
state | System.String (Recommended) State used to mitigate cross-site request forgery attacks |
AccessToken on Success, Null if Not
Spotify.NetStandard.Client.Exceptions.AuthTokenValueException: AuthCodeValueException
Spotify.NetStandard.Client.Exceptions.AuthTokenStateException: AuthCodeStateException
Add an Item to the User's Playback Queue Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
uri | System.String (Required) The uri of the item to add to the queue. Must be a track or an episode uri. |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Skip User’s Playback To Next Track Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Pause a User's Playback Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Skip User’s Playback To Previous Track Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Seek To Position In Currently Playing Track Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
position | System.Int32 (Required) The position in milliseconds to seek to. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song. |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Set Repeat Mode On User’s Playback Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
state | Spotify.NetStandard.Enums.RepeatState (Required) track, context or off. track will repeat the current track. context will repeat the current context. off will turn repeat off. |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Set Volume For User's Playback Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
percent | System.Int32 (Required) The volume to set. Must be a value from 0 to 100 inclusive. |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Start/Resume a User's Playback Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
request | Spotify.NetStandard.Requests.PlaybackRequest (Optional) Playback Request Object |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Toggle Shuffle For User’s Playback Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
state | System.Boolean (Required) true : Shuffle user’s playback, false : Do not shuffle user’s playback |
deviceId | System.String (Optional) The id of the device this command is targeting. If not supplied, the user’s currently active device is the target. |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Transfer a User's Playback Scopes: ConnectModifyPlaybackState
Name | Description |
---|---|
request | Spotify.NetStandard.Requests.DevicesRequest (Required) Devices Request Object |
Status Object
Spotify.NetStandard.Client.Exceptions.AuthUserTokenRequiredException:
Get
Name | Description |
---|---|
hostname | System.String Hostname |
endpoint | System.String Endpoint |
parameters | System.Collections.Generic.Dictionary{System.String,System.String} Parameters |
Response
Get
Name | Description |
---|---|
source | System.Uri Source Uri |
Response
Get Access Token
Access Token
Lookup All Categories
Name | Description |
---|---|
country | System.String (Optional) A country: an ISO 3166-1 alpha-2 country code. |
locale | System.String (Optional) The desired language, consisting of a lowercase ISO 639-1 language code and an uppercase ISO 3166-1 alpha-2 country code, joined by an underscore |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of categories to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first item to return. Default: 0 |
Content Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup Artist's Albums
Name | Description |
---|---|
itemId | System.String (Required) The Spotify ID for the artist. |
includeGroup | Spotify.NetStandard.Requests.IncludeGroup (Optional) Filters the response. If not supplied, all album types will be returned |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The number of album objects to return. Default: 20. Minimum: 1. Maximum: 50 - Offset: The index of the first album to return. Default: 0 (i.e., the first album). |
Paging List of Album
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup Artist's Related Artists
Name | Description |
---|---|
itemId | System.String (Required) The Spotify ID for the artist. |
Lookup Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup Artist's Top Tracks
Name | Description |
---|---|
itemId | System.String (Required) The Spotify ID for the artist. |
market | System.String (Required) A country: an ISO 3166-1 alpha-2 country code or the string from_token |
Lookup Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup
Name | Description |
---|---|
itemIds | System.Collections.Generic.List{System.String} (Required) List of Spotify ID for the items |
lookupType | Spotify.NetStandard.Enums.LookupType (Required) Lookup Item Type |
market | System.String (Optional) ISO 3166-1 alpha-2 country code or the string from_token |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return - Offset: The index of the first item to return |
Lookup Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup
Name | Description |
---|---|
itemId | System.String (Required) The Spotify ID for the album. |
lookupType | Spotify.NetStandard.Enums.LookupType (Required) Item Type |
market | System.String (Optional) ISO 3166-1 alpha-2 country code or the string from_token |
country | System.String (Optional) ISO 3166-1 alpha-2 country code or the string from_token |
fields | System.String (Optional) Filters for the query: a comma-separated list of the fields to return for Playlist and PlaylistTracks LookupType if omitted, all fields are returned |
key | System.String (Optional) Query Parameter Key |
value | System.String (Optional) Query Parameter Value |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return - Offset: The index of the first item to return |
Lookup Response by Type
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get Available Markets
List of Markets where Spotify is available
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup Category
Name | Description |
---|---|
categoryId | System.String The Spotify category ID for the category. |
country | System.String (Optional) A country: an ISO 3166-1 alpha-2 country code. |
locale | System.String (Optional) The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code, joined by an underscore. |
Category Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup Featured Playlists
Name | Description |
---|---|
country | System.String (Optional) A country: an ISO 3166-1 alpha-2 country code. |
locale | System.String (Optional) The desired language, consisting of a lowercase ISO 639-1 language code and an uppercase ISO 3166-1 alpha-2 country code, joined by an underscore |
timestamp | System.Nullable{System.DateTime} (Optional) Use this parameter to specify the user’s local time to get results tailored for that specific date and time in the day. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first item to return. Default: 0 |
Content Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup New Releases
Name | Description |
---|---|
country | System.String (Optional) A country: an ISO 3166-1 alpha-2 country code. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. - Offset: The index of the first item to return. Default: 0 |
Content Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get a Playlist
Name | Description |
---|---|
playlistId | System.String (Required) The Spotify ID for the playlist. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token |
fields | System.String (Optional) Filters for the query: a comma-separated list of the fields to return. If omitted, all fields are returned. |
additionalTypes | System.Collections.Generic.List{System.String} (Optional) List of item types that your client supports besides the default track type. Valid types are track and episode. An unsupported type in the response is expected to be represented as null value in the item field. This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. |
Playlist Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Get a Playlist's Items
Name | Description |
---|---|
id | System.String (Required) The Spotify ID for the playlist. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return. Default: 100. Minimum: 1. Maximum: 100. - Offset: The index of the first item to return. Default: 0 |
fields | System.String (Optional) Filters for the query: a comma-separated list of the fields to return. If omitted, all fields are returned. |
additionalTypes | System.Collections.Generic.List{System.String} (Optional) List of item types that your client supports besides the default track type. Valid types are track and episode. An unsupported type in the response is expected to be represented as null value in the item field. This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. |
Paging List of Playlist Track Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup Recommendation Genres
Available Genre Seeds Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Lookup Recommendations
Name | Description |
---|---|
seedArtists | System.Collections.Generic.List{System.String} List of Spotify IDs for seed artists |
seedGenres | System.Collections.Generic.List{System.String} List of any genres in the set of available genre seeds |
seedTracks | System.Collections.Generic.List{System.String} List of Spotify IDs for a seed track |
limit | System.Nullable{System.Int32} The target size of the list of recommended tracks. Default: 20. Minimum: 1. Maximum: 100. |
market | System.String An ISO 3166-1 alpha-2 country code |
minTuneableTrack | Spotify.NetStandard.Requests.TuneableTrack Multiple values. For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided |
maxTuneableTrack | Spotify.NetStandard.Requests.TuneableTrack Multiple values. For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided. |
targetTuneableTrack | Spotify.NetStandard.Requests.TuneableTrack Multiple values. For each of the tunable track attributes a target value may be provided. |
Recommendation Response Object
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Navigate
Name | Description |
---|---|
paging | Spotify.NetStandard.Responses.Paging{``0} Paging Object |
navigateType | Spotify.NetStandard.Enums.NavigateType Navigate Type |
Content Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Paging
Name | Description |
---|---|
paging | Spotify.NetStandard.Responses.Paging{``0} Paging |
navigateType | Spotify.NetStandard.Enums.NavigateType Navigate Type |
Content Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Refresh Token
Access Token
Refresh Token
Name | Description |
---|---|
value | Spotify.NetStandard.Client.Authentication.AccessToken Access Token |
Access Token
Search
Name | Description |
---|---|
query | System.String (Required) Search Query |
searchType | Spotify.NetStandard.Requests.SearchType (Required) Search results include hits from all the specified item types. |
market | System.String (Optional) An ISO 3166-1 alpha-2 country code or the string from_token |
external | System.Nullable{System.Boolean} (Optional) Include any relevant audio content that is hosted externally. |
page | Spotify.NetStandard.Requests.Page (Optional) Limit: The maximum number of items to return - Offset: The index of the first item to return |
Content Response
Spotify.NetStandard.Client.Exceptions.AuthAccessTokenRequiredException:
Set Access Token
Name | Description |
---|---|
value | Spotify.NetStandard.Client.Authentication.AccessToken Access Token |
Spotify Client Factory
Create Spotify Client
Name | Description |
---|---|
httpClient | System.Net.Http.HttpClient (Required) Http Client |
clientId | System.String (Required) Spotify Client Id |
clientSecret | System.String (Optional) Spotify Client Secret |
Spotify Client
Create Spotify Client
Name | Description |
---|---|
clientId | System.String (Required) Spotify Client Id |
clientSecret | System.String (Optional) Spotify Client Secret |
Spotify Client
Get or Add Authentication Cache
Name | Description |
---|---|
clientId | System.String Spotify Client Id |
clientSecret | System.String Spotify Client Secret |
Authentication Cache
Follow Type
Artist
User
Lookup Type
Albums
Album Tracks
Artist Albums
Artists
Audio Analysis
Audiobook Chapters
Audiobooks
Audio Features
Categories
Category Playlists
Chapters
Episodes
Playlists
Playlist Tracks
Show Episodes
Shows
Tracks
Navigate Type
Navigate Next
None
Navigate Previous
Repeat State
Will repeat the current context.
Will turn repeat off.
Will repeat the current track
Time Range
Calculated from several years of data and including all new data as it becomes available
Approximately last 6 months
Approximately last 4 weeks
Cursor Object
The cursor to use as key to find the next page of items.
The cursor to use as key to find the previous page of items.
The maximum number of items in the response (as set in the query or by default).
URL to the next page of items. (null if none)
The offset of the items returned (as set in the query or by default).
Devices Request Object
(Required) List containing the ID of the device on which playback should be started/transferred. Although an array is accepted, only a single id is currently supported.
(Optional) true: ensure playback happens on new device. false or not provided: keep the current playback state.
Include Group
Album
Appears On
Compliation
Single
Page
Page Count
Get / Set Current Page
The maximum number of items in the response (as set in the query or by default).
The offset of the items returned (as set in the query or by default).
The total number of items available to return.
Playback Request Object
(Optional) Spotify URI of the context to play. Valid contexts are albums, artists, playlists. Example: spotify:album:1Je1IMUlBXcx1Fz0WE7oPT
(Optional) Indicates from where in the context playback should start. Only available when ContextUri corresponds to an album or playlist object, or when the uris parameter is used. “position” is zero based and can’t be negative. Example: PositionRequest with Position = 5 or a UriRequest with Uri representing the uri of the item to start at. Example: UriRequest with Uri = "spotify:track:1301WleyT98MSxVHPZCA6M"
(Optional) Indicates from what position to start playback. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song.
(Optional) A JSON array of the Spotify track URIs to play. Example: spotify:track:4iV5W9uYEdYUVa79Axb7Rh, spotify:track:1301WleyT98MSxVHPZCA6M
Playlist Reorder Request Object
(Required) The position where the tracks should be inserted. To reorder the tracks to the end of the playlist, simply set insert_before to the position after the last track.
(Optional) The amount of tracks to be reordered. Defaults to 1 if not set. The range of tracks to be reordered begins from the RangeStart position, and includes the RangeLength subsequent tracks.
(Required) The position of the first track to be reordered.
(Optional) The playlist’s snapshot ID against which you want to make the changes.
Playlist Request Object
(Optional) Value for playlist description as displayed in Spotify Clients and in the Web API.
(Optional) If true , the playlist will become collaborative and other users will be able to modify the playlist in their Spotify client. Note: You can only set collaborative to true on non-public playlists.
(Optional) If true the playlist will be public, if false it will be private.
The new name for the playlist, for example "My New Playlist Title"
Playlist Tracks Request Object
The playlist’s snapshot ID against which you want to make the changes
Spotify URIs and Positions of Tracks
Position Request Object
Position
Position URI Request Object
Positions for each of the Uris in the playlist, positions are zero-indexed, that is the first item in the playlist has the value 0, the second item 1, and so on
Public Request Object
Is Public
Authorisation Scopes
Returns a new Scope object with all scopes set to true Usage : Scope.AllPermissions
Pause a User's Playback Required For
Seek To Position In Currently Playing Track, Set Repeat Mode On User’s Playback, Set Volume For User's Playback
Skip User’s Playback To Next Track, Skip User’s Playback To Previous Track, Start/Resume a User's Playback
Toggle Shuffle For User’s Playback Transfer a User's Playback
Read access to a user’s currently playing track Required For
Get the User's Currently Playing Track
Read access to a user’s player state. Required For
Get a User's Available Devices, Get Information About The User's Current Playback, Get the User's Currently Playing Track
Returns a new Scope object with all scopes within the confines of Users set to true Usage : Scope.FollowAll
Write/delete access to the list of artists and other users that the user follows. Required For
Follow Artists or Users, Unfollow Artists or Users
Read access to the list of artists and other users that the user follows. Required For
Check if Current User Follows Artists or Users, Get User's Followed Artists
Returns a new Scope object with all scopes within the confines of Library set to true Usage : Scope.LibraryAll
Write/delete access to a user's "Your Music" library. Required For
Remove Albums for Current User, Remove User's Saved Tracks, Save Albums for Current User Save Tracks for User
Read access to a user's "Your Music" library. Required For
Check User's Saved Albums Check User's Saved Tracks, Get Current User's Saved Albums Get a User's Saved Tracks
Returns a new Scope object with all scopes within the confines of Listening History set to true Usage : Scope.ListeningHistoryAll
Read access to a user’s recently played tracks Required For
Get Current User's Recently Played Tracks
Read access to a user's top artists and tracks. Required For
Get a User's Top Artists and Tracks
Returns a new Scope object with all "modify" scopes set to true Usage : Scope.ModifyAllAccess
Returns a new Scope object with all scopes set to false Usage: Scope.None
Returns a new Scope object with all scopes within the confines of Playback set to true Usage : Scope.PlaybackAll
Remote control playback of Spotify.
Read access to a user’s playback position in a content Optional For
Get an Episodes, Get Multiple Episodes, Get a Show, Get Multiple Shows, Get a Show's Episodes
Control playback of a Spotify track. The user must have a Spotify Premium account.
Returns a new Scope object with all scopes within the confines of Playlists set to true Usage : Scope.PlaylistAll
Write access to a user's private playlists. Required For
Follow a Playlist, Unfollow a Playlist, Add Tracks to a Playlist
Change a Playlist's Details, Create a Playlist, Remove Tracks from a Playlist
Reorder a Playlist's Tracks, Replace a Playlist's Tracks, Upload a Custom Playlist Cover Image
Write access to a user's public playlists. Required For
Follow a Playlist, Unfollow a Playlist, Add Tracks to a Playlist
Change a Playlist's Details, Create a Playlist, Remove Tracks from a Playlist
Reorder a Playlist's Tracks, Replace a Playlist's Tracks, Upload a Custom Playlist Cover Image
Include collaborative playlists when requesting a user's playlists. Required For
Get a List of Current User's Playlists, Get a List of a User's Playlists
Read access to user's private playlists. Required For
Check if Users Follow a Playlist, Get a List of Current User's Playlists, Get a List of a User's Playlists
Returns a new Scope object with all "read" scopes set to true Usage : Scope.ReadAllAccess
Returns a new Scope object with all scopes within the confines of Spotify Connect set to true Usage : Scope.SpotifyConnectAll
Write access to user-provided images Required For
Upload a Custom Playlist Cover Image
Read access to user’s email address. Required For
Get Current User's Profile
Read access to user’s subscription details (type of user account). Required For
Search for an Item, Get Current User's Profile
Returns a new Scope object with all scopes within the confines of Users set to true Usage : Scope.UsersAll
Extension Methods for Scope Class to allow fluent additions of scopes for the API
Adds all scopes to a scope within the Follow section of the defined Scopes
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Adds all scopes to a scope within the Library section of the defined Scopes
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Adds all scopes to a scope within the Listening History section of the defined Scopes
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Extension method to add all scopes with "modify" in their scope string
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Extension method to add no scopes
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Adds all scopes to a scope within the Playback section of the defined Scopes
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Adds all scopes to a scope within the Playlist section of the defined Scopes
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Extension method to add all scopes with "read" in their scope string
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Adds all scopes to a scope within the Spotify Connect section of the defined Scopes
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Adds all scopes to a scope within the Users section of the defined Scopes
Name | Description |
---|---|
scope | Spotify.NetStandard.Requests.Scope Scope |
Scope
Search Type
Album
Artist
Audiobook
Episode
Playlist
Show
Track
Tuneable Track Object
A confidence measure from 0.0 to 1.0 of whether the track is acoustic.
Danceability describes how suitable a track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity.
The duration of the track in milliseconds.
Energy is a measure from 0.0 to 1.0 and represents a perceptual measure of intensity and activity
Predicts whether a track contains no vocals
The key the track is in. Integers map to pitches using standard Pitch Class notation.
Detects the presence of an audience in the recording.
The overall loudness of a track in decibels (dB)
Mode indicates the modality(major or minor) of a track, the type of scale from which its melodic content is derived
The popularity of the track. The value will be between 0 and 100, with 100 being the most popular.
Speechiness detects the presence of spoken words in a track.
The overall estimated tempo of a track in beats per minute (BPM).
An estimated overall time signature of a track.
A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track.
URI List Request Object
URIs
URI Request Object
Spotify URI
Actions Object
Allows to update the user interface based on which playback actions are available within the current context
Album Object
The copyright statements of the album.
Known external IDs for the album.
A list of the genres used to classify the album. For example: "Prog Rock" , "Post-Grunge"
The label for the album.
The popularity of the album. The value will be between 0 and 100, with 100 being the most popular
The date the album was first released, for example 1981. Depending on the precision, it might be shown as 1981-12 or 1981-12-15
The precision with which ReleaseDate value is known: year , month , or day.
The tracks of the album.
Artist Object
Information about the followers of the artist.
A list of the genres the artist is associated with. For example: "Prog Rock" , "Post-Grunge".
Images of the artist in various sizes, widest first.
The popularity of the artist. The value will be between 0 and 100, with 100 being the most popular.
Audio Analysis Object
The time intervals of the bars throughout the track
The time intervals of beats throughout the track.
Sections are defined by large variations in rhythm or timbre, e.g.chorus, verse, bridge, guitar solo, etc.
Audio segments attempts to subdivide a song into many segments, with each segment containing a roughly consitent sound throughout its duration.
A tatum represents the lowest regular pulse train that a listener intuitively infers from the timing of perceived musical events
Audiobook Object
The chapters of the audiobook.
Audio Features Object
A confidence measure from 0.0 to 1.0 of whether the track is acoustic.
An HTTP URL to access the full audio analysis of this track.
Danceability describes how suitable a track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity. A value of 0.0 is least danceable and 1.0 is most danceable.
The duration of the track in milliseconds.
Energy is a measure from 0.0 to 1.0 and represents a perceptual measure of intensity and activity
Predicts whether a track contains no vocals. “Ooh” and “aah” sounds are treated as instrumental in this context. Rap or spoken word tracks are clearly “vocal”. The closer the instrumentalness value is to 1.0, the greater likelihood the track contains no vocal content. Values above 0.5 are intended to represent instrumental tracks, but confidence is higher as the value approaches 1.0.
The key the track is in. Integers map to pitches using standard Pitch Class notation.
Detects the presence of an audience in the recording. Higher liveness values represent an increased probability that the track was performed live. A value above 0.8 provides strong likelihood that the track is live.
The overall loudness of a track in decibels (dB). Loudness values are averaged across the entire track and are useful for comparing relative loudness of tracks. Loudness is the quality of a sound that is the primary psychological correlate of physical strength (amplitude). Values typical range between -60 and 0 db.
Mode indicates the modality(major or minor) of a track, the type of scale from which its melodic content is derived. Major is represented by 1 and minor is 0.
Speechiness detects the presence of spoken words in a track. The more exclusively speech-like the recording (e.g. talk show, audio book, poetry), the closer to 1.0 the attribute value. Values above 0.66 describe tracks that are probably made entirely of spoken words. Values between 0.33 and 0.66 describe tracks that may contain both music and speech, either in sections or layered, including such cases as rap music. Values below 0.33 most likely represent music and other non-speech-like tracks.
The overall estimated tempo of a track in beats per minute (BPM). In musical terminology, tempo is the speed or pace of a given piece and derives directly from the average beat duration.
An estimated overall time signature of a track. The time signature (meter) is a notational convention to specify how many beats are in each bar (or measure).
A link to the Web API endpoint providing full details of the track.
A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track. Tracks with high valence sound more positive (e.g. happy, cheerful, euphoric), while tracks with low valence sound more negative (e.g. sad, depressed, angry).
Author Object
The name of the author
Available Genre Seeds Object
Genres
Available Markets Object
Get the list of markets where Spotify is available
Base Response Object
Error Object
List of true or false values
Constructor
Constructor
Name | Description |
---|---|
errorResponse | Spotify.NetStandard.Responses.ErrorResponse Error Response |
Error Object
Category Object
The category icon, in various sizes.
Chapter Object
Audiobook Object
Content
The base-62 identifier that you can find at the end of the Spotify URI for the object
The name of the content
Content Response
Paging Object of Albums
Paging Object of Artists
Paging Object of Simplified Audiobook Objects
Paging Object of Category
Paging Object of Simplified Episode Objects
Message
Paging Object of Simplified Playlists
Paging Object of Simplified Show Objects
Paging Object of Tracks
Context Object
Known external URLs for this object.
A link to the Web API endpoint providing full details of the object
The object type of the object
The Spotify URI for the object
Copyright Object
The copyright text for this album.
The type of copyright: C = the copyright, P = the sound recording (performance) copyright.
Currently Playing Object
The device that is currently active
off, track, context
If shuffle is on or off
Cursor Paging Object
Constructor
The cursors used to find the next set of items.
Error Object
A link to the Web API endpoint returning the full result of the request.
The requested data.
IEnumerable of Type
The total number of items available to return.
Device Object
The device ID. This may be null.
If this device is the currently active device.
If this device is currently in a private session.
Whether controlling this device is restricted. If true then no commands will be accepted by this device.
The name of the device.
Device type, such as “computer”, “smartphone” or “speaker”.
The current volume in percent. This may be null.
Devices Object
A list of 0..n Device objects.
Disallows Object
Interrupting playback not allowed?
Pausing not allowed?
Resuming not allowed?
Seeking not allowed? Will be set to true while playing an ad track
Skipping next not allowed? Will be set to true while playing an ad track
Skipping previous not allowed? Will be set to true while playing an ad track
Toggling repeat context not allowed?
Toggling repeat track not allowed?
Toggling shuffle not allowed?
Transferring playback not allowed?
Episode Object
The show on which the episode belongs.
Error Object
A short description of the cause of the error.
The HTTP status code
External Id Object
International Article Number
International Standard Recording Code
Universal Product Code
External Url Object
An external, public URL to the object.
Followers Object
A link to the Web API endpoint providing full details of the followers; null if not available
The total number of followers.
Image Object
The image height in pixels. If unknown: null or not returned.
The source URL of the image.
The image width in pixels. If unknown: null or not returned.
Content Cursor Response
Cursor Paging Object of Artist
Internal Response
Linked Track Object
Lookup Response
List of Album Object
List of Artist Object
List of Audiobook Object
List of Audio Feature Object
List of Chapter Object
List of Episode Object
List of Show Object
List of Track Object
Narrator Object
The name of the Narrator
Paging Object
Constructor
Error Object
A link to the Web API endpoint returning the full result of the request.
The requested data.
URL to the next page of items. (null if none)
Page
URL to the previous page of items. (null if none)
IEnumerable of Type
Play History Object
The context the track was played from.
The date and time the track was played. Format yyyy-MM-ddTHH:mm:ss
The track the user listened to.
Playlist Object
The playlist description. Only returned for modified, verified playlists, otherwise null.
Information about the followers of the playlist.
Playlist Track Object
The date and time the track was added.
The Spotify user who added the track.
Information about the episode
Whether this track is a local file or not.
Information about the track or episode.
Information about the track
Private User Object
The country of the user, as set in the user’s account profile.An ISO 3166-1 alpha-2 country code.This field is only available when the current user has granted access to the user-read-private scope.
The user’s email address, as entered by the user when creating their account. his field is only available when the current user has granted access to the user-read-email scope
The user’s Spotify subscription level: “premium”, “free”, etc. This field is only available when the current user has granted access to the user-read-private scope.
Public User Object
The name displayed on the user’s profile. null if not available.
Information about the followers of this user.
The user’s profile image.
Queue
Tracks or Episodes in the Queue
Currently Playing Track or Episode. Can be null
Recommendation Seed Object
The number of tracks available after min* and max* filters have been applied.
The number of tracks available after relinking for regional availability.
The number of recommended tracks available for this seed.
Recommendations Response Object
An array of recommendation seed objects.
An array of track object (simplified) ordered according to the parameters supplied.
Resume Point Object
Whether or not the episode has been fully played by the user
The user’s most recent position in the episode in milliseconds
Saved Album Object
The date and time the album was saved Timestamps are returned in ISO 8601 format as Coordinated Universal Time (UTC) with a zero offset: YYYY-MM-DDTHH:MM:SSZ. If the time is imprecise (for example, the date/time of an album release), an additional field indicates the precision; see for example, ReleaseDate in an album object.
Information about the album.
Saved Episode Object
The date and time the episode was saved. Timestamps are returned in ISO 8601 format as Coordinated Universal Time (UTC) with a zero offset: YYYY-MM-DDTHH:MM:SSZ. If the time is imprecise (for example, the date/time of an show release), an additional field indicates the precision; see for example, ReleaseDate in a show object.
Information about the episode
Saved Show Object
The date and time the show was saved. Timestamps are returned in ISO 8601 format as Coordinated Universal Time (UTC) with a zero offset: YYYY-MM-DDTHH:MM:SSZ. If the time is imprecise (for example, the date/time of an show release), an additional field indicates the precision; see for example, ReleaseDate in a show object.
Information about the show
Saved Track Object
The date and time the track was saved. Timestamps are returned in ISO 8601 format as Coordinated Universal Time (UTC) with a zero offset: YYYY-MM-DDTHH:MM:SSZ. If the time is imprecise (for example, the date/time of an album release), an additional field indicates the precision; see for example, release_date in an album object.
Information about the track.
Section Object
The estimated overall key of the section. The values in this field ranging from 0 to 11 mapping to pitches using standard Pitch Class notation
The confidence, from 0.0 to 1.0, of the reliability of the key.
The overall loudness of the section in decibels (dB).
Indicates the modality (major or minor) of a track, the type of scale from which its melodic content is derived.This field will contain a 0 for “minor”, a 1 for “major”, or a -1 for no result.
The confidence, from 0.0 to 1.0, of the reliability of the mode.
The overall estimated tempo of the section in beats per minute (BPM).
The confidence, from 0.0 to 1.0, of the reliability of the tempo.
An estimated overall time signature of a track. The time signature (meter) is a notational convention to specify how many beats are in each bar (or measure). The time signature ranges from 3 to 7 indicating time signatures of “3/4”, to “7/4”.
The confidence, from 0.0 to 1.0, of the reliability of the time_signature.
Segment Object
The offset loudness of the segment in decibels (dB).
The peak loudness of the segment in decibels (dB).
The segment-relative offset of the segment peak loudness in seconds.
The onset loudness of the segment in decibels (dB).
A “chroma” vector representing the pitch content of the segment, corresponding to the 12 pitch classes C, C#, D to B, with values ranging from 0 to 1 that describe the relative dominance of every pitch in the chromatic scale
Timbre is the quality of a musical note or sound that distinguishes different types of musical instruments, or voices.
Show Object
A list of the show’s episodes.
Simplified Album Object
The field is present when getting an artist’s albums. Possible values are “album”, “single”, “compilation”, “appears_on”.
The type of the album: one of "album" , "single" , or "compilation".
The artists of the album. Each artist object includes a link in href to more detailed information about the artist.
The markets in which the album is available: ISO 3166-1 alpha-2 country codes
The cover art for the album in various sizes, widest first.
The total number of tracks
Simplified Artist Object
Simplified Audiobook Object
The author(s) for the audiobook
A list of the countries in which the audiobook can be played, identified by their ISO 3166-1 alpha-2 code
The copyright statements of the audiobook.
A description of the audiobook. HTML tags are stripped away from this field, use html_description field in case HTML tags are needed.
A description of the audiobook. This field may contain HTML tags.
The cover art for the audiobook in various sizes, widest first.
Whether or not the audiobook has explicit content (true = yes it does; false = no it does not OR unknown).
A list of the languages used in the audiobook, identified by their ISO 639 code.
The media type of the audiobook.
The narrators(s) of the audiobook
The publisher of the audiobook.
The number of chapters in this audiobook.
Simplified Chapter Object
The number of the chapter.
A description of the chapter. HTML tags are stripped away from this field, use html_description field in case HTML tags are needed.
The chapter length in milliseconds
A description of the chapter. This field may contain HTML tags.
The cover art for the chapter in various sizes, widest first
Whether or not the chapter has explicit content ( true = yes it does; false = no it does not OR unknown)
True if the chapter is playable in the given market. Otherwise false
A list of the languages used in the chapter, identified by their ISO 639 code
A URL to a 30 second preview (MP3 format) of the chapter - null if not available.
The date the chapter was first released, for example 1981-12-15. Depending on the precision, it might be shown as 1981 or 1981-12
The precision with which ReleaseDate value is known: year, month, or day
Included in the response when a content restriction is applied.
The user's most recent position in the chapter. Set if the supplied access token is a user token and has the scope user-read-playback-position
Simplified Currently Playing Object
Allows to update the user interface based on which playback actions are available within the current context
A Context Object. Can be null
The currently playing episode. Can be null.
If something is currently playing, return true.
The currently playing item. Can be null.
Progress into the currently playing track. Can be null.
Unix Millisecond Timestamp when data was fetched
The currently playing track. Can be null.
The object type of the currently playing item. Can be one of track, episode, ad or unknown.
Simplified Episode Object
The description of the episode
The episode length in milliseconds
The cover art for the episode in various sizes, widest first
Whether or not the episode has explicit content ( true = yes it does; false = no it does not OR unknown)
True if the episode is hosted outside of Spotify's CDN
True if the episode is playable in the given market. Otherwise false
A list of the languages used in the episode, identified by their ISO 639 code
A URL to a 30 second preview (MP3 format) of the episode - null if not available
The date the episode was first released, for example 1981-12-15. Depending on the precision, it might be shown as 1981 or 1981-12
The precision with which ReleaseDate value is known: year, month, or day
The user's most recent position in the episode. Set if the supplied access token is a user token and has the scope user-read-playback-position
Simplified Playlist Object
Returns true if the owner allows other users to modify the playlist.
Images for the playlist. The array may be empty or contain up to three images. The images are returned by size in descending order.
The user who owns the playlist
The playlist’s public/private status: true the playlist is public, false the playlist is private, null the playlist status is not relevant
The version identifier for the current playlist.
Information about the tracks of the playlist.
Simplified Show Object
A list of the countries in which the show can be played, identified by their ISO 3166-1 alpha-2 code
The copyright statements of the show
A description of the show
The cover art for the show in various sizes, widest first
Whether or not the show has explicit content ( true = yes it does; false = no it does not OR unknown)
True if all of the show's episodes are hosted outside of Spotify’s CDN
A list of the languages used in the show, identified by their ISO 639 code
The media type of the show
The publisher of the show
Simplified Track Object
The artists who performed the track. Each artist object includes a link in href to more detailed information about the artist.
A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code.
The disc number (usually 1 unless the album consists of more than one disc).
The track length in milliseconds.
Whether or not the track has explicit lyrics ( true = yes it does; false = no it does not OR unknown).
Whether or not the track is from a local file.
Part of the response when Track Relinking is applied. If true , the track is playable in the given market. Otherwise false.
Part of the response when Track Relinking is applied and is only part of the response if the track linking, in fact, exists
A link to a 30 second preview (MP3 format) of the track.
The number of the track. If an album has several discs, the track number is the number on the specified disc.
Snapshot Response Object
Can be used to identify playlist version in future requests
Status Response
Code
Status Code
Success
Time Interval Object
The reliability confidence, from 0.0 to 1.0
The duration in seconds
The starting point in seconds.
Track Object
The album on which the track appears.The album object includes a link in href to full information about the album.
Known external IDs for the track.
The popularity of the track. The value will be between 0 and 100, with 100 being the most popular.
Part of the response when Track Relinking is applied, the original track is not available in the given market
Track Restriction Object
Contains the reason why the track is not available e.g. market