Spotify Get Playlists
spotify_get_playlists · Nodes · Media
Lists Spotify playlists.
Spotify Get Playlists#
Overview#
Fetches playlists owned/followed by the connected Spotify user.
Returns a playlists array plus Spotify's total count.
This node is read-only and does not require an active playback device.
When to Use#
- Build playlist pickers in automated workflows
- Select a playlist URI before starting playback
- Sync playlist metadata into reports or tables
Configuration#
connection (required)
- Spotify connection from workspace Settings → Connections
limit (required, default: 20)
- Maximum playlists to fetch
- Valid range:
1..50
retry (optional, default: Off)
- Sends a request again after a failure that passes; see Retries. Listing playlists is a read, sent again freely.
Inputs#
input (required)
- Any value; used for workflow control flow
Outputs#
output
{
"playlists": [
{
"id": "37i9dQZF1DXcBWIGoYBM5M",
"name": "Today's Top Hits",
"uri": "spotify:playlist:37i9dQZF1DXcBWIGoYBM5M",
"description": "...",
"owner_name": "Spotify",
"track_count": 50,
"public": true
}
],
"total": 123
}
owner_name, description, and public may be null depending on Spotify data.
Example#
{
"connection": "spotify-main",
"limit": 25
}
Tips#
- Use
uridirectly with Spotify Playback Control (play+context_uri). totalcan be larger than returned items; paginate by re-running with different logic if needed.- Keep
limitmodest if this runs frequently to reduce API usage.
Inputs
inputRequired
Outputs
output
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
connection | connection(spotify) | Yes | Spotify connection id ULID from list_connections |
limit | integer | No | Maximum number of playlists to fetch |
retry | tagged_union | No | Sends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once. |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |