Methods
add To My Saved Albums
add To My Saved Albums( albumIDs: string [] ) : Promise < SaveAlbumsForUserResponse >
Returns Promise < SaveAlbumsForUserResponse >
add To My Saved Shows
add To My Saved Shows( showIDs: string [] ) : Promise < SaveShowsForUserResponse >
Returns Promise < SaveShowsForUserResponse >
add To My Saved Tracks
add To My Saved Tracks( trackIDs: string [] ) : Promise < UsersSavedTracksResponse >
Returns Promise < UsersSavedTracksResponse >
add To Playlist
add To Playlist( playlistID: string , itemURIs: string [] ) : Promise < AddTracksToPlaylistResponse >
Parameters
playlistID: string
itemURIs: string []
Returns Promise < AddTracksToPlaylistResponse >
add Tracks To Playlist
add Tracks To Playlist( playlistID: string , trackURIs: string [] ) : Promise < AddTracksToPlaylistResponse >
Parameters
playlistID: string
trackURIs: string []
Returns Promise < AddTracksToPlaylistResponse >
add Tracks To Playlist WithIDs
add Tracks To Playlist WithIDs( playlistID: string , trackIDs: string [] ) : Promise < AddTracksToPlaylistResponse >
Parameters
playlistID: string
trackIDs: string []
Returns Promise < AddTracksToPlaylistResponse >
are Following Playlist
are Following Playlist( playlistID: string , userIDs: string [] ) : Promise < UsersFollowPlaylistResponse >
Parameters
playlistID: string
userIDs: string []
Returns Promise < UsersFollowPlaylistResponse >
change Playlist Details
change Playlist Details( playlistID: string , options: PlaylistOptions ) : Promise < ChangePlaylistDetailsResponse >
Returns Promise < ChangePlaylistDetailsResponse >
clear Playlist
clear Playlist( playlistID: string ) : Promise < ReplacePlaylistTracksResponse >
Returns Promise < ReplacePlaylistTracksResponse >
contains My Saved Albums
contains My Saved Albums( albumIDs: string [] ) : Promise < CheckUserSavedAlbumsResponse >
Returns Promise < CheckUserSavedAlbumsResponse >
contains My Saved Shows
contains My Saved Shows( showIDs: string [] ) : Promise < CheckUserSavedShowsResponse >
Returns Promise < CheckUserSavedShowsResponse >
contains My Saved Tracks
contains My Saved Tracks( trackIDs: string [] ) : Promise < CheckUsersSavedTracksResponse >
Returns Promise < CheckUsersSavedTracksResponse >
create Playlist
create Playlist( userID: string , options: PlaylistOptions ) : Promise < CreatePlaylistResponse >
Returns Promise < CreatePlaylistResponse >
follow Artists
follow Artists( artistIDs: string [] ) : Promise < FollowArtistsOrUsersResponse >
Returns Promise < FollowArtistsOrUsersResponse >
follow Playlist
follow Playlist( playlistID: string ) : Promise < FollowPlaylistResponse >
Returns Promise < FollowPlaylistResponse >
follow Users
follow Users( userIDs: string [] ) : Promise < FollowArtistsOrUsersResponse >
Returns Promise < FollowArtistsOrUsersResponse >
get Album
get Album( albumID: string ) : Promise < SingleAlbumResponse >
Returns Promise < SingleAlbumResponse >
get Album Tracks
get Album Tracks( albumID: string ) : Promise < AlbumTracksResponse >
Returns Promise < AlbumTracksResponse >
get Albums
get Albums( albumIDs: string [] ) : Promise < MultipleAlbumsResponse >
Returns Promise < MultipleAlbumsResponse >
get Api Url
get Api Url( ) : string
Returns string
get Artist
get Artist( artistID: string ) : Promise < SingleArtistResponse >
Returns Promise < SingleArtistResponse >
get Artist Albums
get Artist Albums( artistID: string ) : Promise < ArtistsAlbumsResponse >
Returns Promise < ArtistsAlbumsResponse >
get Artist Related Artists
get Artist Related Artists( artistID: string ) : Promise < ArtistsRelatedArtistsResponse >
Returns Promise < ArtistsRelatedArtistsResponse >
get Artist Top Tracks
get Artist Top Tracks( artistID: string , countryID: string ) : Promise < ArtistsTopTracksResponse >
Parameters
artistID: string
countryID: string
Returns Promise < ArtistsTopTracksResponse >
get Artists
get Artists( artistIDs: string [] ) : Promise < MultipleArtistsResponse >
Returns Promise < MultipleArtistsResponse >
get Audio Analysis For Track
get Audio Analysis For Track( trackID: string ) : Promise < AudioAnalysisTrack >
Returns Promise < AudioAnalysisTrack >
get Audio Features For Track
get Audio Features For Track( trackID: string ) : Promise < AudioFeaturesResponse >
Returns Promise < AudioFeaturesResponse >
get Audio Features For Tracks
get Audio Features For Tracks( trackIDs: string [] ) : Promise < MultipleAudioFeaturesResponse >
Returns Promise < MultipleAudioFeaturesResponse >
get Available Genre Seeds
get Available Genre Seeds( ) : Promise < AvailableGenreSeedsResponse >
Returns Promise < AvailableGenreSeedsResponse >
get Categories
get Categories( ) : Promise < MultipleCategoriesResponse >
Returns Promise < MultipleCategoriesResponse >
get Category
get Category( categoryID: string ) : Promise < SingleCategoryResponse >
Returns Promise < SingleCategoryResponse >
get Category Playlists
get Category Playlists( categoryID: string ) : Promise < CategoryPlaylistsResponse >
Returns Promise < CategoryPlaylistsResponse >
get Episode
get Episode( episodeID: string , market?: string ) : Promise < EpisodeObject >
Parameters
episodeID: string
Optional
market: string
Returns Promise < EpisodeObject >
get Episodes
get Episodes( episodeIDs: string [] , market?: string ) : Promise < MultipleEpisodesResponse >
Parameters
episodeIDs: string []
Optional
market: string
Returns Promise < MultipleEpisodesResponse >
get Featured Playlists
get Featured Playlists( ) : Promise < ListOfFeaturedPlaylistsResponse >
Returns Promise < ListOfFeaturedPlaylistsResponse >
get Followed Artists
get Followed Artists( ) : Promise < UsersFollowedArtistsResponse >
Returns Promise < UsersFollowedArtistsResponse >
get Me
get Me( ) : Promise < UserProfileResponse >
Returns Promise < UserProfileResponse >
get My Current Playback State
get My Current Playback State( ) : Promise < CurrentPlaybackResponse >
Returns Promise < CurrentPlaybackResponse >
get My Current Playing Track
get My Current Playing Track( ) : Promise < CurrentlyPlayingResponse >
Returns Promise < CurrentlyPlayingResponse >
get My Devices
get My Devices( ) : Promise < UserDevicesResponse >
Returns Promise < UserDevicesResponse >
get My Playlists
get My Playlists( ) : Promise < ListOfUsersPlaylistsResponse >
Returns Promise < ListOfUsersPlaylistsResponse >
get My Recently Played Tracks
get My Recently Played Tracks( ) : Promise < UsersRecentlyPlayedTracksResponse >
Returns Promise < UsersRecentlyPlayedTracksResponse >
get My Saved Albums
get My Saved Albums( ) : Promise < UsersSavedAlbumsResponse >
Returns Promise < UsersSavedAlbumsResponse >
get My Saved Shows
get My Saved Shows( ) : Promise < UsersSavedShowsResponse >
Returns Promise < UsersSavedShowsResponse >
get My Saved Tracks
get My Saved Tracks( ) : Promise < UsersSavedTracksResponse >
Returns Promise < UsersSavedTracksResponse >
get My Top Artists
get My Top Artists( ) : Promise < UsersTopArtistsResponse >
Returns Promise < UsersTopArtistsResponse >
get My Top Tracks
get My Top Tracks( ) : Promise < UsersTopTracksResponse >
Returns Promise < UsersTopTracksResponse >
get New Releases
get New Releases( ) : Promise < ListOfNewReleasesResponse >
Returns Promise < ListOfNewReleasesResponse >
get Playlist
get Playlist( playlistID: string ) : Promise < SinglePlaylistResponse >
Returns Promise < SinglePlaylistResponse >
get Playlist Cover Image
get Playlist Cover Image( playlistID: string ) : Promise < PlaylistCoverImageResponse >
Returns Promise < PlaylistCoverImageResponse >
get Playlist Tracks
get Playlist Tracks( playlistID: string ) : Promise < PlaylistTrackResponse >
Returns Promise < PlaylistTrackResponse >
get Recommendations
get Recommendations( options: RecommendationsOptionsObject ) : Promise < RecommendationsFromSeedsResponse >
Parameters
options: RecommendationsOptionsObject
Returns Promise < RecommendationsFromSeedsResponse >
get Show
get Show( showID: string , market?: string ) : Promise < ShowObject >
Parameters
showID: string
Optional
market: string
Returns Promise < ShowObject >
get Show Episodes
get Show Episodes( showID: string , market?: string ) : Promise < ShowEpisodesResponse >
Parameters
showID: string
Optional
market: string
Returns Promise < ShowEpisodesResponse >
get Shows
get Shows( showIDs: string [] , market?: string ) : Promise < MultipleShowsResponse >
Parameters
showIDs: string []
Optional
market: string
Returns Promise < MultipleShowsResponse >
get Track
get Track( trackID: string ) : Promise < SingleTrackResponse >
Returns Promise < SingleTrackResponse >
get Tracks
get Tracks( trackIDs: string [] ) : Promise < MultipleTracksResponse >
Returns Promise < MultipleTracksResponse >
get User
get User( userID: string ) : Promise < UserProfileResponse >
Returns Promise < UserProfileResponse >
get User Playlists
get User Playlists( userID: string ) : Promise < ListOfUsersPlaylistsResponse >
Returns Promise < ListOfUsersPlaylistsResponse >
is Following Artists
is Following Artists( artistIDs: string [] ) : Promise < UserFollowsUsersOrArtistsResponse >
Returns Promise < UserFollowsUsersOrArtistsResponse >
is Following Users
is Following Users( userIDs: string [] ) : Promise < UserFollowsUsersOrArtistsResponse >
Returns Promise < UserFollowsUsersOrArtistsResponse >
play
play( options: PlayOptions ) : Promise < any >
Returns Promise < any >
queue
queue( uri: string , options: DeviceOptions ) : Promise < AddToQueueResponse >
Returns Promise < AddToQueueResponse >
remove From My Saved Albums
remove From My Saved Albums( albumIDs: string [] ) : Promise < RemoveAlbumsForUserResponse >
Returns Promise < RemoveAlbumsForUserResponse >
remove From My Saved Shows
remove From My Saved Shows( showIDs: string [] ) : Promise < RemoveShowsForUserResponse >
Returns Promise < RemoveShowsForUserResponse >
remove From My Saved Tracks
remove From My Saved Tracks( trackIDs: string [] ) : Promise < RemoveUsersSavedTracksResponse >
Returns Promise < RemoveUsersSavedTracksResponse >
remove From Playlist
remove From Playlist( playlistID: string , itemURIs: string [] ) : Promise < RemoveTracksFromPlaylistResponse >
Parameters
playlistID: string
itemURIs: string []
Returns Promise < RemoveTracksFromPlaylistResponse >
remove From Playlist In Positions
remove From Playlist In Positions( playlistID: string , positions: number [] , snapshotID: string ) : Promise < RemoveTracksFromPlaylistResponse >
Parameters
playlistID: string
positions: number []
snapshotID: string
Returns Promise < RemoveTracksFromPlaylistResponse >
remove Items From Playlist With SnapshotID
remove Items From Playlist With SnapshotID( playlistID: string , itemURIs: string [] , snapshotID: string ) : Promise < RemoveTracksFromPlaylistResponse >
Parameters
playlistID: string
itemURIs: string []
snapshotID: string
Returns Promise < RemoveTracksFromPlaylistResponse >
remove Tracks From Playlist
remove Tracks From Playlist( playlistID: string , trackURIs: string [] ) : Promise < RemoveTracksFromPlaylistResponse >
Parameters
playlistID: string
trackURIs: string []
Returns Promise < RemoveTracksFromPlaylistResponse >
remove Tracks From Playlist WithIDs
remove Tracks From Playlist WithIDs( playlistID: string , trackIDs: string [] ) : Promise < RemoveTracksFromPlaylistResponse >
Parameters
playlistID: string
trackIDs: string []
Returns Promise < RemoveTracksFromPlaylistResponse >
reorder Items In Playlist
reorder Items In Playlist( playlistID: string , rangeStart: number , insertBefore: number , rangeLength?: number , snapshotID?: number ) : Promise < ReorderPlaylistTracksResponse >
Parameters
playlistID: string
rangeStart: number
insertBefore: number
Optional
rangeLength: number
Optional
snapshotID: number
Returns Promise < ReorderPlaylistTracksResponse >
replace Playlist Items
replace Playlist Items( playlistID: string , itemURIs: string [] ) : Promise < ReplacePlaylistTracksResponse >
Parameters
playlistID: string
itemURIs: string []
Returns Promise < ReplacePlaylistTracksResponse >
replace Playlist Items With TrackIDs
replace Playlist Items With TrackIDs( playlistID: string , trackIDs: string [] ) : Promise < ReplacePlaylistTracksResponse >
Parameters
playlistID: string
trackIDs: string []
Returns Promise < ReplacePlaylistTracksResponse >
replace Playlist Items With Tracks
replace Playlist Items With Tracks( playlistID: string , trackURIs: string [] ) : Promise < ReplacePlaylistTracksResponse >
Parameters
playlistID: string
trackURIs: string []
Returns Promise < ReplacePlaylistTracksResponse >
search
search( query: string , types: string [] ) : Promise < any >
Parameters
query: string
types: string []
Returns Promise < any >
search Albums
search Albums( query: string ) : Promise < AlbumSearchResponse >
Returns Promise < AlbumSearchResponse >
search Artists
search Artists( query: string ) : Promise < ArtistSearchResponse >
Returns Promise < ArtistSearchResponse >
search Episodes
search Episodes( query: string ) : Promise < EpisodeSearchResponse >
Returns Promise < EpisodeSearchResponse >
search Playlists
search Playlists( query: string ) : Promise < PlaylistSearchResponse >
Returns Promise < PlaylistSearchResponse >
search Shows
search Shows( query: string ) : Promise < ShowSearchResponse >
Returns Promise < ShowSearchResponse >
search Tracks
search Tracks( query: string ) : Promise < TrackSearchResponse >
Returns Promise < TrackSearchResponse >
seek
seek( position_ms: number , options: SeekOptions ) : Promise < any >
Returns Promise < any >
set Custom Fetch
set Custom Fetch( fetch: any ) : void
Returns void
set Repeat
set Repeat( state: string , options: SetRepeatOptions ) : Promise < any >
Returns Promise < any >
set Shuffle
set Shuffle( state: boolean , options: SetShuffleOptions ) : Promise < any >
Returns Promise < any >
set Volume
set Volume( volume_percent: number , options: SetVolumeOptions ) : Promise < any >
Returns Promise < any >
skip To Next
skip To Next( options: DeviceOptions ) : Promise < any >
Returns Promise < any >
skip To Previous
skip To Previous( options: DeviceOptions ) : Promise < any >
Returns Promise < any >
transfer My Playback
transfer My Playback( deviceID: string ) : Promise < any >
Returns Promise < any >
unfollow Artists
unfollow Artists( artistIDs: string [] ) : Promise < UnfollowArtistsOrUsersResponse >
Returns Promise < UnfollowArtistsOrUsersResponse >
unfollow Playlist
unfollow Playlist( playlistID: string ) : Promise < UnfollowPlaylistResponse >
Returns Promise < UnfollowPlaylistResponse >
unfollow Users
unfollow Users( userIDs: string [] ) : Promise < UnfollowArtistsOrUsersResponse >
Returns Promise < UnfollowArtistsOrUsersResponse >
upload Custom Playlist Cover Image
upload Custom Playlist Cover Image( playlistID: string , imageData: string ) : Promise < UploadCustomPlaylistCoverImageResponse >
Parameters
playlistID: string
imageData: string
Returns Promise < UploadCustomPlaylistCoverImageResponse >
Spotify API Client for making requests to the Spotify Web API.