App Logo
open.spotify.com

Add tracks to a Spotify playlist

TL;DR

Automatically add tracks to a Spotify playlist on open.spotify.com. Add one or more tracks to the end of a Spotify playlist, in the order you give.

About

It works on playlists that your account can edit. Spotify accepts duplicates, so a track already in the playlist is added again. It returns the number of tracks before and after, so you can check the change. To undo it, use the remove_tracks_from_playlist script. It needs a browser signed in to Spotify.

Inputs

tracks required

Tracks to add, each an id, a spotify:track: uri or an open.spotify.com/track/ link.

playlist required

Target playlist, as an id, a spotify:playlist: uri or an open.spotify.com/playlist/ link. The signed-in account must be able to edit it.

Output

added required

How many tracks the playlist gained, read back from Spotify after the addition.

requested required
playlist_id required
playlist_name required
track_count_after required
track_count_before required
track_uris optional

The tracks sent, as uris, in order.

playlist_url optional

FAQ

Add one or more tracks to the end of a playlist the signed-in Spotify account can edit, in the order given. Spotify accepts duplicates, so a track already in the playlist is added again. Returns the playlist's track count before and after, so the addition can be checked. Use remove_tracks_from_playlist to undo it.
Ask an AI agent connected to Reduck to run reduck/open.spotify.com/add_tracks_to_playlist, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/open.spotify.com/add_tracks_to_playlist
You do not need one. "Add tracks to a Spotify playlist" drives the real open.spotify.com pages in a browser, so it works whether or not open.spotify.com offers an API for this.
Required: playlist, tracks.
It returns added, requested, track_uris, playlist_id, playlist_url, playlist_name, track_count_after, track_count_before.
Yes. It acts as you on open.spotify.com: in your browser it reuses your session, and on a cloud browser it loads your Auth session cookies for open.spotify.com.
It makes changes on open.spotify.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/open.spotify.com/add_tracks_to_playlist, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/open.spotify.com/add_tracks_to_playlist
It is one of Reduck's official scripts.

Start building not clicking