---
related_nodes: ["spotify_search", "spotify_playback_control", "spotify_add_to_queue"]
---

# 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](http_get.md#retries). Listing playlists is a read, sent again freely.

## Inputs

**input** (required)
- Any value; used for workflow control flow

## Outputs

**output**
```json
{
  "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

```json
{
  "connection": "spotify-main",
  "limit": 25
}
```

## Tips

- Use `uri` directly with **Spotify Playback Control** (`play` + `context_uri`).
- `total` can be larger than returned items; paginate by re-running with different logic if needed.
- Keep `limit` modest if this runs frequently to reduce API usage.
