# Export Spotify Playlist to CSV or Excel

**Use case:** 

Export any Spotify playlist to CSV, Excel or JSON from its link: one row per track with the track name, artists, album, release date, label, position in the playlist, the date it was added and its exact play count. Works for playlists of any size, yours or anyone's, without logging in. Paste several playlist links at once to back them up, analyze them or move them to another service.

## Input

```json
{
  "urls": [
    "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
  ],
  "artistReleases": [],
  "compareWithPreviousRun": false,
  "maxTracksPerUrl": 0
}
```

## Output

```json
{
  "playlistName": {
    "label": "Playlist",
    "format": "text"
  },
  "playlistPosition": {
    "label": "#",
    "format": "number"
  },
  "trackName": {
    "label": "Track",
    "format": "text"
  },
  "artistName": {
    "label": "Artist",
    "format": "text"
  },
  "playCount": {
    "label": "Play count",
    "format": "number"
  },
  "addedToPlaylistAt": {
    "label": "Added",
    "format": "date"
  },
  "trackUrl": {
    "label": "Link",
    "format": "link"
  }
}
```

## How it works

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

The Spotify Play Count Scraper: Tracks, Albums, Artists, Playlists Actor is ready to run with the inputs already set for "Export Spotify Playlist to CSV or Excel". [Sign up or log in](https://console.apify.com/create-task-from-example/LAP55J3Wi3QKxTewS) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export Spotify Playlist to CSV or Excel" task

The Spotify Play Count Scraper: Tracks, Albums, Artists, Playlists Actor will start running based on the input automatically. You can also change all the input fields, like spotify links, for artist links: play counts of, and more, to match your specific use case.

### 3. Receive the "Export Spotify Playlist to CSV or Excel" 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 playlist, #, track, 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 "Export Spotify Playlist to CSV or Excel" task via API](https://apify.com/epicscrapers/spotify-play-count-scraper.md).

## FAQ

### How do I export a Spotify playlist to CSV?

Copy the playlist link in Spotify (Share, then Copy link), paste it into Spotify links and run. Then export the Playlist tracks view as CSV.

### Can I export a Spotify playlist to Excel?

Yes. In the Output tab, choose Excel when you export. JSON, XML and HTML work too, and Google Sheets through the Integrations tab.

### Which columns are in the export?

Playlist name, position, track name, artists, album, album type, release date, label, date added to the playlist, exact play count, duration and track link.

### Do I need to log in to Spotify?

No. Any public playlist works without a Spotify login, so you can export other people's playlists too. Private playlists can't be read.

### Is there a track limit?

No. Playlists of any size are exported whole. Set Max tracks per link if you only want the first tracks.

### Can I export several playlists at once?

Yes. Paste one playlist link per line. Each row has playlistName and playlistId, so you can filter or pivot them in one file.

### Does it include play counts?

Yes. Every track has its exact Spotify play count, which normal playlist exporters don't give you.

### Can I export my Liked Songs?

Liked Songs is private. Add the songs to a public playlist first, then export that playlist's link.

### How much does it cost?

$0.002 per 100 tracks of a playlist. A 50-track playlist costs $0.002, a 1,000-track one $0.02. No start fee.

### Can I track a playlist over time?

Yes. Turn on Compare with previous run and schedule the task to see which tracks were added and how many streams each gained.

## About this Actor

This example demonstrates how to use [Spotify Play Count Scraper: Tracks, Albums, Artists, Playlists](https://apify.com/epicscrapers/spotify-play-count-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/epicscrapers/spotify-play-count-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/epicscrapers/spotify-play-count-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`).
