Spotify
Search music, manage playlists, control playback, and access your Spotify library.
Spotify is the world's leading music streaming service. The AACFlow block connects to the Spotify Web API using OAuth 2.0 to automate music discovery, playlist management, library curation, and playback control.
Official API documentation: https://developer.spotify.com/documentation/web-api
- Go to the Spotify Developer Dashboard and create an application.
- Add
https://app.aacflow.io/api/auth/callback/spotify as a Redirect URI (replace with your instance URL if self-hosted).
- Note the Client ID and Client Secret.
- In AACFlow, go to Settings → Integrations → Spotify and complete the OAuth connection. Grant the scopes required for the operations you plan to use (see the Spotify API scopes reference).
| Operation | Description |
|---|
spotify_search | Search for tracks, albums, artists, playlists, shows, episodes, or audiobooks. |
spotify_get_new_releases | Browse new album releases. |
spotify_get_categories | List Spotify content categories. |
spotify_get_markets | List available markets. |
| Operation | Description |
|---|
spotify_get_track | Get a track by Spotify ID. |
spotify_get_tracks | Get multiple tracks by IDs. |
spotify_get_saved_tracks | Get the current user's saved tracks. |
spotify_save_tracks | Save tracks to the current user's library. |
spotify_remove_saved_tracks | Remove saved tracks. |
spotify_check_saved_tracks | Check whether tracks are saved. |
spotify_get_recently_played | Get recently played tracks. |
| Operation | Description |
|---|
spotify_get_album | Get an album by ID. |
spotify_get_albums | Get multiple albums. |
spotify_get_album_tracks | Get tracks of an album. |
spotify_get_saved_albums | Get saved albums. |
spotify_save_albums | Save albums. |
spotify_remove_saved_albums | Remove saved albums. |
spotify_check_saved_albums | Check whether albums are saved. |
| Operation | Description |
|---|
spotify_get_artist | Get an artist by ID. |
spotify_get_artists | Get multiple artists. |
spotify_get_artist_albums | Get albums by an artist. |
spotify_get_artist_top_tracks | Get an artist's top tracks. |
spotify_follow_artists | Follow artists. |
spotify_unfollow_artists | Unfollow artists. |
spotify_get_followed_artists | Get followed artists. |
spotify_check_following | Check whether the user follows artists or users. |
| Operation | Description |
|---|
spotify_get_playlist | Get a playlist by ID. |
spotify_get_playlist_tracks | Get tracks in a playlist. |
spotify_get_playlist_cover | Get a playlist's cover image. |
spotify_get_user_playlists | Get the current user's playlists. |
spotify_create_playlist | Create a new playlist. |
spotify_update_playlist | Update a playlist's name or description. |
spotify_add_playlist_cover | Upload a custom cover image (base64 JPEG). |
spotify_add_tracks_to_playlist | Add tracks to a playlist. |
spotify_remove_tracks_from_playlist | Remove tracks from a playlist. |
spotify_reorder_playlist_items | Reorder items in a playlist. |
spotify_replace_playlist_items | Replace all items in a playlist. |
spotify_follow_playlist | Follow a playlist. |
spotify_unfollow_playlist | Unfollow a playlist. |
spotify_check_playlist_followers | Check whether users follow a playlist. |
| Operation | Description |
|---|
spotify_get_show | Get a show (podcast) by ID. |
spotify_get_shows | Get multiple shows. |
spotify_get_show_episodes | Get episodes of a show. |
spotify_get_saved_shows | Get saved shows. |
spotify_save_shows | Save shows. |
spotify_remove_saved_shows | Remove saved shows. |
spotify_check_saved_shows | Check whether shows are saved. |
| Operation | Description |
|---|
spotify_get_episode | Get an episode by ID. |
spotify_get_episodes | Get multiple episodes. |
spotify_get_saved_episodes | Get saved episodes. |
spotify_save_episodes | Save episodes. |
spotify_remove_saved_episodes | Remove saved episodes. |
spotify_check_saved_episodes | Check whether episodes are saved. |
| Operation | Description |
|---|
spotify_get_audiobook | Get an audiobook by ID. |
spotify_get_audiobooks | Get multiple audiobooks. |
spotify_get_audiobook_chapters | Get chapters of an audiobook. |
spotify_get_saved_audiobooks | Get saved audiobooks. |
spotify_save_audiobooks | Save audiobooks. |
spotify_remove_saved_audiobooks | Remove saved audiobooks. |
spotify_check_saved_audiobooks | Check whether audiobooks are saved. |
| Operation | Description |
|---|
spotify_get_current_user | Get the current user's Spotify profile. |
spotify_get_user_profile | Get a public user's profile. |
spotify_get_top_tracks | Get the current user's top tracks. |
spotify_get_top_artists | Get the current user's top artists. |
| Operation | Description |
|---|
spotify_get_playback_state | Get the current playback state. |
spotify_get_currently_playing | Get the currently playing track. |
spotify_get_devices | Get available playback devices. |
spotify_get_queue | Get the playback queue. |
spotify_play | Start or resume playback. |
spotify_pause | Pause playback. |
spotify_skip_next | Skip to the next track. |
spotify_skip_previous | Skip to the previous track. |
spotify_seek | Seek to a position in the current track. |
spotify_add_to_queue | Add an item to the playback queue. |
spotify_set_volume | Set the playback volume (0–100). |
spotify_set_repeat | Set the repeat mode (off / track / context). |
spotify_set_shuffle | Enable or disable shuffle. |
spotify_transfer_playback | Transfer playback to a different device. |
Search for tracks matching a mood keyword, create a new playlist for the day, add the top 20 results, then transfer playback to a specified device — all triggered by a morning schedule.