# Spotify Album Play Count Scraper 🎧📈 -Cheap (`scrapestorm/spotify-album-play-count-scraper--cheap`)

Collect detailed Spotify album data 🎧📈: album name, release date 📅, total tracks, album cover 📸, tracklist with play counts 🔢, duration ⏱️, popularity, and Spotify links 🔗. Perfect for analyzing music trends, song performance, and research projects in the music industry! 🎶📊

- **URL**: https://beta-securitybyobscurity.apify.com/scrapestorm/spotify-album-play-count-scraper--cheap.md
- **Developed by:** [Storm\_Scraper](https://beta-securitybyobscurity.apify.com/scrapestorm) (community)
- **Categories:** Automation, SEO tools, Social media
- **Stats:** 6 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$14.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.
You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

# README

### Spotify Album Play Count Scraper 🎧📈

The Spotify Album Play Count Scraper allows you to extract detailed data from Spotify albums, including track-level information and play counts.

Perfect for analyzing music trends, researching song performance, or generating content based on track popularity! 🎶

### Description 🎯📊

The Spotify Album Play Count Scraper is built to fetch all relevant information about a Spotify album.

By simply providing the URLs of the albums you want to scrape, you'll get:

```
album_name: Name of the album 📀

album_uri: Direct URL to the album on Spotify 🔗

artist_name: Name of the artist 🎤

release_date: Album release date 📅

total_tracks: Total number of tracks in the album 🔢

tracks: An array of track objects, each including:

    - name: Track title

    - artist_name: Artist performing the track

    - uri: Spotify URL for the track

    - duration_formatted: Track duration ⏱️

    - playcount: Total number of plays (if available)

    - track_number, disc_number, saved, and more
```

### How Many Results Can You Extract? 📊

📌 No limit!

You can input as many Spotify album URLs as you like — the scraper will process each and return all available data for the tracks.

### Key Features ✨

- 🎧 Full Album Analysis: Fetch all tracks from any album with metadata and play counts.

- 🔢 Clean Structure: Each track is listed with detailed information, including duration and Spotify links.

- 📊 Play Count Extraction: Ideal for performance analysis and monitoring trends.

- 🔗 Direct Access Links: Every album and track comes with a Spotify URL.

### 💸 Pricing

This scraper operates on a monthly subscription basis, priced at $14.99/month.

### How to Use It? 🚀

```
Sign up for an account on Apify.

Open the Spotify Album Play Count Scraper on the platform.

Input the list of Spotify album URLs.

(Optional) Apply any custom filters or settings.

Run the scraper and wait for it to complete.

Download the results in your preferred format: JSON, CSV, XML, Excel, or HTML.
```

### Applications 🌟

Music Analytics: Track and compare song popularity within albums.

Content Creation: Use track data to create playlists, reviews, or blog content.

Market Research: Monitor how albums are performing over time.

Fan Engagement: Share track insights with communities or on social media.

### Input Example 📲 👌

The tool requires you to input a list of Spotify Artist URLs (formatted as https://open.spotify.com/artist/SPOTIFY\_ARTIST\_ID). It will then fetch data like the artist’s name, biography, releases, followers, related artists, and more.. Here’s how to structure your input JSON:

```
{
  "urls": [
    "https://open.spotify.com/album/5eyZZoQEFQWRHkV2xgAeBw",
    "https://open.spotify.com/album/6kZ42qRrzov54LcAk4onW9"
  ]
}



```

🚨 urls: A list of URLs pointing to the specific Spotify album’s page. These URLs must follow the format https://open.spotify.com/artist/SPOTIFY\_ARTIST\_ID

### Example Output from Spotify Scraper 👌

Once the extraction is finished, the data will be stored in a dataset. You can download this data in various formats (JSON, CSV, XML, RSS, HTML Table).

```
{
      "album_name": "Taylor Swift (Deluxe Edition)",
      "album_uri": "https://open.spotify.com/intl-fr/album/5eyZZoQEFQWRHkV2xgAeBw",
      "artist_name": "Taylor Swift",
      "release_date": "2006-10-24T00:00:00Z",
      "total_tracks": 15,
      "tracks": [
          {
              "name": "Tim McGraw",
              "artist_name": "Taylor Swift",
              "artist_uri": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
              "disc_number": 1,
              "track_number": 1,
              "duration_ms": 232106,
              "duration_formatted": "3:52",
              "playable": true,
              "playcount": "154192211",
              "content_rating": "NONE",
              "video_associations_count": 0,
              "uri": "https://open.spotify.com/track/2Fn01AIMyHbha2ceNQeOqw",
              "saved": false,
              "uid": "2e17ea3593852e08cce4"
          },
          {
              "name": "Picture To Burn",
              "artist_name": "Taylor Swift",
              "artist_uri": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
              "disc_number": 1,
              "track_number": 2,
              "duration_ms": 173066,
              "duration_formatted": "2:53",
              "playable": true,
              "playcount": "233658988",
              "content_rating": "NONE",
              "video_associations_count": 1,
              "uri": "https://open.spotify.com/track/4BYejINgfZF0qKDMEH2cim",
              "saved": false,
              "uid": "a79be33b95e051b7b0e0"
          },
          {
              "name": "Teardrops On My Guitar - Radio Single Remix",
              "artist_name": "Taylor Swift",
              "artist_uri": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
              "disc_number": 1,
              "track_number": 3,
              "duration_ms": 203040,
              "duration_formatted": "3:23",
              "playable": true,
              "playcount": "245870311",
              "content_rating": "NONE",
              "video_associations_count": 0,
              "uri": "https://open.spotify.com/track/2TF4UtYreqNbQ6Z9AccldU",
              "saved": false,
              "uid": "da8e2a2f4428b2f28a45"
          }


```

### Related Actors ⭐

If you're interested in other Spotify, Pinterest, Google, social media scraper or real estate Actors:

- [Spotify Artist : Monthly Listeners & Contact Info Scraper📊📩](https://apify.com/scrapestorm/spotify-artist-monthly-listeners-contact-info-scraper)
- [Spotify Email Scraper 🎧📧](https://apify.com/scrapestorm/spotify-email-scraper)
- [Spotify Artists Search Scraper 🎧🎶](https://apify.com/scrapestorm/spotify-artists-search-scraper)
- [Spotify Songs Search Scraper 🎧🎶](https://apify.com/scrapestorm/spotify-songs-search-scraper)
- [Spotify Playlists Search Scraper 🎧🎶](https://apify.com/scrapestorm/spotify-playlists-search-scraper)
- [Spotify Albums Search Scraper 🎧🎶](https://apify.com/scrapestorm/spotify-albums-search-scraper)
- [Spotify Profiles Search Scraper 🎧🎶](https://apify.com/scrapestorm/spotify-profiles-search-scraper)
- [Pinterest Boards Search Scraper 🎨🔍](https://apify.com/scrapestorm/pinterest-boards-search-scraper)
- [Pinterest Pins/Videos Search Scraper 🎨🔍](https://apify.com/scrapestorm/pinterest-pins-videos-search-scraper)
- [Google News Scraper Fast & Real-Time (Pay per results) 📰⚡](https://apify.com/scrapestorm/google-news-scraper-fast-real-time-pay-per-results)
- [Facebook Likes Scraper (Fast & Cheap) 👍 🌟](https://apify.com/scrapestorm/facebook-likes-scraper-fast-cheap)
- [Facebook Followers & Following Scraper 📊👥](https://apify.com/scrapestorm/facebook-followers-following-scraper)
- [Facebook Comments Scraper (All-in-One) 💬](https://apify.com/scrapestorm/facebook-comments-scraper-all-in-one)
- [YouTube Scraper (By Keyword) - ⭐⭐⭐⭐⭐ Fast & cheap](https://apify.com/scrapestorm/youtube)
- [Youtube Channel Scraper](https://apify.com/scrapestorm/youtube-channel-scraper)
- [Youtube Shorts Scraper 📺 (Rental) - Fast & cheap](https://apify.com/scrapestorm/youtube-shorts-scraper-rental---fast-cheap)
- [Zillow (Find a Home Improvement Agent) 🛠️)](https://apify.com/scrapestorm/zillow-find-a-home-improvement-agent)
- [YouTube Transcript Video Scraper 📝 (⚡ Fast & 💸 Cheap)](https://apify.com/scrapestorm/youtube-transcript-videos)
- [Youtube Playlist Scraper 🎵 - Rental (Fast & cheap)](https://apify.com/scrapestorm/youtube-playlist-scraper---rental-fast-cheap)

***

### Can I use this Spotify Search API in Python? 🎓

Yes, you can use the Apify API with Python.

To access the Spotify Search API with Python, use the apify-client PyPI package. You can find more details about the client in our Python Client documentation.

### 📫 Support

😊 Leave us a star ⭐⭐⭐⭐⭐ if you are satisfied with the product!
🌍 For any questions, specific needs or issues, please reach out through Apify's platform or via email - [Storm\_Scraper 🌪️🌩️](https://apify.com/scrapestorm)
Happy scraping! 😊

# Actor input Schema

## `urls` (type: `array`):

Spotify Albums URLs for Data fetching 🎧📊 (format 🚨: https://open.spotify.com/album/SPOTIFY\_ALBUM\_ID)

## Actor input object example

```json
{
  "urls": [
    "https://open.spotify.com/album/5eyZZoQEFQWRHkV2xgAeBw",
    "https://open.spotify.com/album/5meb7aKE722LA66ssBhvfM",
    "https://open.spotify.com/album/6DEjYFkNZh67HP7R9PSZvv"
  ]
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://open.spotify.com/album/5eyZZoQEFQWRHkV2xgAeBw",
        "https://open.spotify.com/album/5meb7aKE722LA66ssBhvfM",
        "https://open.spotify.com/album/6DEjYFkNZh67HP7R9PSZvv"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapestorm/spotify-album-play-count-scraper--cheap").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://open.spotify.com/album/5eyZZoQEFQWRHkV2xgAeBw",
        "https://open.spotify.com/album/5meb7aKE722LA66ssBhvfM",
        "https://open.spotify.com/album/6DEjYFkNZh67HP7R9PSZvv",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapestorm/spotify-album-play-count-scraper--cheap").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://open.spotify.com/album/5eyZZoQEFQWRHkV2xgAeBw",
    "https://open.spotify.com/album/5meb7aKE722LA66ssBhvfM",
    "https://open.spotify.com/album/6DEjYFkNZh67HP7R9PSZvv"
  ]
}' |
apify call scrapestorm/spotify-album-play-count-scraper--cheap --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapestorm/spotify-album-play-count-scraper--cheap",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Spotify Album Play Count Scraper 🎧📈 -Cheap",
        "description": "Collect detailed Spotify album data 🎧📈: album name, release date 📅, total tracks, album cover 📸, tracklist with play counts 🔢, duration ⏱️, popularity, and Spotify links 🔗. Perfect for analyzing music trends, song performance, and research projects in the music industry! 🎶📊",
        "version": "0.0",
        "x-build-id": "10LhMDssBKD30ip4T"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapestorm~spotify-album-play-count-scraper--cheap/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapestorm-spotify-album-play-count-scraper--cheap",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapestorm~spotify-album-play-count-scraper--cheap/runs": {
            "post": {
                "operationId": "runs-sync-scrapestorm-spotify-album-play-count-scraper--cheap",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapestorm~spotify-album-play-count-scraper--cheap/run-sync": {
            "post": {
                "operationId": "run-sync-scrapestorm-spotify-album-play-count-scraper--cheap",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "urls"
                ],
                "properties": {
                    "urls": {
                        "title": "Spotify Albums URLs for Data fetching 🎧📊 (format 🚨: https://open.spotify.com/album/SPOTIFY_ALBUM_ID)",
                        "type": "array",
                        "description": "Spotify Albums URLs for Data fetching 🎧📊 (format 🚨: https://open.spotify.com/album/SPOTIFY_ALBUM_ID)",
                        "default": [
                            "https://open.spotify.com/album/5eyZZoQEFQWRHkV2xgAeBw",
                            "https://open.spotify.com/album/5meb7aKE722LA66ssBhvfM",
                            "https://open.spotify.com/album/6DEjYFkNZh67HP7R9PSZvv"
                        ],
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
