Type Definitions
-
Status
-
Properties
Name Type Attributes Description statusnumber The status from the request.
snapshotstring <optional> The playlist's snapshot ID. (applies to playlist changes)
Details
-
CategoryOptions
-
Properties
Name Type Attributes Default Description countrystring <optional> An ISO 3166-1 alpha-2 country code.
localestring <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. For example: es_MX.
limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
offsetnumber <optional> 0 The index of the first item to return.
Details
-
ContextURI
-
Description
Track, album, artist joined with their id by a colon. eg: spotify:album:5ht7ItJgpBH7W6vJ5BqpPr
Details
-
LimitOptions
-
Properties
Name Type Attributes Default Description limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
offsetnumber <optional> 0 The index of the first item to return. Use with limit to get the next set of items.
Details
-
SearchOptions
-
Properties
Name Type Attributes Default Description externalboolean <optional> false If the client can play externally hosted audio content, and marks the content as playable in the response.
limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
offsetnumber <optional> 0 The index of the first item to return. Use with limit to get the next set of items.
Details
-
UserTopOptions
-
Properties
Name Type Attributes Default Description limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
offsetnumber <optional> 0 The index of the first item to return. Use with limit to get the next set of items.
rangeTimeRange <optional> 'medium' Over what time frame the affinities are computed.
Details
-
FollowingArtistOptions
-
Properties
Name Type Attributes Default Description afterstring <optional> The last artist ID retrieved from the previous request.
limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
Details
-
TimeRange
-
Description
short - Approximately last 4 weeks medium - Approximately last 6 months long - Calculated from serveral years of data.
Details
-
AlbumGroups
-
Description
The list of groups for an album by default all are supplied.
- album
- single
- appears_on
- compilation
Details
-
RecommendedOptions
-
Properties
Name Type Attributes Default Description seedsSeedOptions Recommendations based on the seed options.
maxAttributes <optional> The maximum values of for the attributes.
minAttributes <optional> The minimum values of for the attributes.
targetAttributes <optional> The target values of for the attributes.
limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
Details
-
ArtistAlbumsOptions
-
Parameters
Name Type Attributes Default Description groupsArray.<AlbumGroups> <optional> A list of keywords that will be used to filter the response.
limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
offsetnumber <optional> 0 The index of the first item to return. Use with limit to get the next set of items.
Details
-
SeedOptions
-
Properties
Name Type Description artistsArray.<string> A list of Spotify IDs for seed artists.
genresArray.<string> A list of any genres in the set of available genre seeds.
tracksArray.<string> A list of Spotify IDs for a seed track.
Details
-
Attributes
-
Description
https://developer.spotify.com/documentation/web-api/reference/#/operations/get-recommendations
Properties
Name Type Description acousticnessnumber >= 0 <= 1
danceabilitynumber >= 0 <= 1
duration_msnumber energynumber >= 0 <= 1
instrumentalnessnumber >= 0 <= 1
keynumber >= 0 <= 11
livenessnumber >= 0 <= 1
loudnessnumber modenumber >= 0 <= 1
popularitynumber >= 0 <= 100
speachinessnumber >= 0 <= 1
tempnumber time_signaturenumber valencenumber Details
-
StartOptions
-
Properties
Name Type Attributes Default Description devicestring <optional> The device id to start the playback on - by default the current active device.
offsetnumber <optional> 0 The offset to start the playback.
msnumber <optional> 0 The position to start the playbak in milliseconds.
Details
-
RecentOptions
-
Properties
Name Type Attributes Default Description limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
afternumber <optional> A Unix timestamp in milliseconds. Returns all items before (but not including) this cursor position.
beforenumber <optional> A Unix timestamp in milliseconds. Returns all items after (but not including) this cursor position.
Details
-
AdditionalTypes
-
Description
Additional types for the client to support - by default 'track' is the suppiled type.
- track
- episode
Details
-
RepeatStates
-
Description
track - will repeat the current track. context - will repeat the current context. off - will turn repeat off.
Details
-
PlaylistOptions
-
Properties
Name Type Attributes Default Description typesstring <optional> ['track'] The types that the client supports. (track, episode)
fieldsstring <optional> Filters for the query, a list of the fields to return. If omitted, all fields are returned.
Details
-
PlaylistTracksOptions
-
Properties
Name Type Attributes Default Description limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
offsetnumber <optional> 0 The index of the first item to return.
Details
-
FeaturedOptions
-
Properties
Name Type Attributes Default Description limitnumber <optional> 20 The maximum number of items to return. Minimum: 1. Maximum: 50.
localestring <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. For example: es_MX.
offsetnumber <optional> 0 The index of the first item to return.
timestampstring <optional> A timestamp in ISO 8601 format: yyyy-MM-ddTHH:mm:ss. Use this parameter to specify the user's local time to get results tailored for that specific date and time in the day. If not provided, the response defaults to the current UTC time.
Details
-
ModifyOptions
-
Properties
Name Type Description namestring The new name for the playlist.
publicboolean If true the playlist will be public, if false it will be private.
collaborativeboolean If true, the playlist will become collaborative and other users will be able to modify the playlist in their Spotify client.
descriptionstring Value for playlist description.
Details
-
UpdatePlaylistOptions
-
Properties
Name Type Attributes Default Description urisArray.<ContextURI> <optional> A list of Spotify URIs to set, can be track or episode URIs.
startnumber <optional> The position of the first item to be reordered.
beforenumber <optional> The position where the items should be inserted. To reorder the items to the end of the playlist, simply set insert_before to the position after the last item.
lengthnumber <optional> 1 The amount of items to be reordered.
snapshotstring <optional> The playlist's snapshot ID against which you want to make the changes.
Details