Spotify API Routes
GET/api/spotify/spotify-tokenGet a new Spotify access token
GET/api/spotify/meGet current user's profile
GET/api/spotify/me/playlistsGet current user's playlists
GET/api/spotify/me/player/currently-playingGet current user's currently playing track
GET/api/spotify/me/player/recently-playedGet current user's recently played tracks
GET/api/spotify/users/:id/playlistsGet a user's playlists
POST/api/spotify/users/:id/playlistsCreate a playlist for a user
GET/api/spotify/playlists/:idGet a playlist from Spotify catalog
GET/api/spotify/playlists/:id/tracksGet tracks from a playlist
POST/api/spotify/playlists/:id/tracksAdd tracks to a playlist
GET/api/spotify/playlists/:id/followers/containsCheck if users follow a playlist
PUT/api/spotify/playlists/:id/followersFollow a playlist
DELETE/api/spotify/playlists/:id/followersUnfollow a playlist
GET/api/spotify/me/tracksGet user's saved tracks
PUT/api/spotify/me/tracksSave tracks to user's library
Try it out
DELETE/api/spotify/me/tracksRemove tracks from user's library
GET/api/spotify/me/tracks/containsCheck if tracks are in user's library
GET/api/spotify/me/albumsGet user's saved albums
PUT/api/spotify/me/albumsSave albums to user's library
Try it out
DELETE/api/spotify/me/albumsRemove albums from user's library
GET/api/spotify/me/albums/containsCheck if albums are in user's library
GET/api/spotify/me/top/artistsGet user's top artists
GET/api/spotify/me/top/tracksGet user's top tracks
GET/api/spotify/me/followingGet user's followed artists
GET/api/spotify/me/following/containsCheck if current user follows artists or users
PUT/api/spotify/me/followingFollow artists or users
DELETE/api/spotify/me/followingUnfollow artists or users
GET/api/spotify/browse/featured-playlistsGet Spotify's featured playlists
GET/api/spotify/searchSearch for Spotify catalog items
GET/api/spotify/tracks/:idGet a track from Spotify catalog
GET/api/spotify/albums/:idGet an album from Spotify catalog
GET/api/spotify/albums/:id/tracksGet tracks from an album
GET/api/spotify/artists/:idGet an artist from Spotify catalog
GET/api/spotify/artists/:id/top-tracksGet an artist's top tracks
GET/api/spotify/artists/:id/related-artistsGet artists related to an artist
GET/api/spotify/artists/:id/albumsGet an artist's albums
GET/api/spotify/audio-features/:idGet audio features for a track
GET/api/spotify/audio-featuresGet audio features for multiple tracks
GET/api/spotify/audio-analysis/:idGet detailed audio analysis for a track
GET/api/spotify/recommendationsGet track recommendations
GET/api/spotify/recommendations/available-genre-seedsGet available genre seeds for recommendations
GET/api/spotify/top-genresGet top genres based on user's listening history
GET/api/spotify/top-album-of-genreGet top genre's top album
GET/api/spotify/audio-features/top-tracksGet features of top tracks for user