# Get Spotify playlist tracks with play counts

**Use case:** 

Reads a public Spotify playlist and returns the playlist details (owner, followers, total tracks) plus one row per track with artists, album, release date, duration, play count, explicit flag and position. Good for playlist pitching research and for tracking which songs a big playlist adds.

## Input

```json
{
  "urls": [
    "https://open.spotify.com/playlist/37i9dQZF1DX0XUsuxWHRQd"
  ],
  "includeListItems": true,
  "maxItems": 31,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "imageUrl": {
    "label": "Image",
    "format": "image"
  },
  "name": {
    "label": "Name",
    "format": "text"
  },
  "artistNames": {
    "label": "Artists",
    "format": "text"
  },
  "albumName": {
    "label": "Album",
    "format": "text"
  },
  "releaseDate": {
    "label": "Released",
    "format": "text"
  },
  "duration": {
    "label": "Duration",
    "format": "text"
  },
  "playCount": {
    "label": "Play count",
    "format": "number"
  },
  "explicit": {
    "label": "Explicit",
    "format": "boolean"
  },
  "position": {
    "label": "Position",
    "format": "number"
  },
  "parentName": {
    "label": "From list",
    "format": "text"
  },
  "source": {
    "label": "From",
    "format": "text"
  },
  "url": {
    "label": "Link",
    "format": "link"
  },
  "previewUrl": {
    "label": "Preview MP3",
    "format": "link"
  },
  "id": {
    "label": "Spotify ID",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Spotify Scraper: Tracks, Albums, Artists, Playlists, Podcasts Actor is ready to run with the inputs already set for "Get Spotify playlist tracks with play counts". [Sign up or log in](https://console.apify.com/create-task-from-example/o5TO4vkwQFmM3F6t9) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get Spotify playlist tracks with play counts" task

The Spotify Scraper: Tracks, Albums, Artists, Playlists, Podcasts Actor will start running based on the input automatically. You can also change all the input fields, like spotify links, save tracks and episodes as separate rows, and more, to match your specific use case.

### 3. Receive the "Get Spotify playlist tracks with play counts" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as image, name, artists, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Get Spotify playlist tracks with play counts" task via API](https://apify.com/zhtech/spotify-scraper.md).

## FAQ

### What does the Spotify playlist tracks task return?

The Spotify playlist tracks task returns one playlist row with name, owner, followers and total tracks, plus one row per track with artists, album, release date, duration, play count, explicit flag and position.

### How many tracks does the Spotify playlist tracks task get?

The Spotify playlist tracks task reads the first 30 tracks of each playlist, which is what Spotify shows without an account. The tracksComplete field tells you when a playlist is longer.

### Can I run the Spotify playlist tracks task on a schedule or through the API?

Save the Spotify playlist tracks task to your Apify account, then add it to an Apify Schedule (for example daily) or start it from the Apify API, webhooks, Zapier, Make, n8n or the Apify MCP server for AI agents.

### How much does the Spotify playlist tracks task cost?

The Spotify playlist tracks task is pay per event: a small start fee per run plus a fee per playlist link and track row saved. Error rows and duplicate links are free. Prices are on the Pricing tab.

## About this Actor

This example demonstrates how to use [Spotify Scraper: Tracks, Albums, Artists, Playlists, Podcasts](https://apify.com/zhtech/spotify-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhtech/spotify-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhtech/spotify-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
