What is IFTTT?
Explore Plans Developers
Mobile menu Close menu
SpotifySpotify

Add track to a playlist

This Action will search for a track and add the first result to a playlist you specify.

About this action

Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.

Developer info
Description
This Action will search for a track and add the first result to a playlist you specify.
API endpoint slug
spotify.add_a_track_to_a_playlist
Filter code method
Spotify.addATrackToAPlaylist.skip(string?: reason)
Runtime method
runAction("spotify.add_a_track_to_a_playlist", {})

Action fields

Playlist Text input > Document title
Label
Playlist name
Helper text
Must be a playlist owned by you. If a playlist with the name given can't be found, a new private playlist will be created.
Slug
playlist
Required
true
Can have default value
true
Filter code method
Spotify.addATrackToAPlaylist.setPlaylist(string: playlist)
Search query Text input > Short text
Label
Search query
Helper text
For maximum accuracy, include the song title here and the artist name in the "Artist name" field
Slug
search_query
Required
true
Can have default value
true
Filter code method
Spotify.addATrackToAPlaylist.setSearchQuery(string: searchQuery)
Artist name Text input > Other
Label
Artist name
Helper text
Optional
Slug
artist_name
Required
false
Can have default value
true
Filter code method
Spotify.addATrackToAPlaylist.setArtistName(string: artistName)