# Spotify Streams Scraper (`pyronets/spotify-streams-scraper`) Actor

All-time Spotify streams and daily streams for an artist's top tracks, with feature flags and Spotify ids, plus the all-time artist chart.

- **URL**: https://apify.com/pyronets/spotify-streams-scraper.md
- **Developed by:** [Pyronets](https://apify.com/pyronets) (community)
- **Categories:** Social media, Marketing, For creators
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.04 / 1,000 tracks

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Spotify Streams Scraper

All-time Spotify stream counts for an artist's most-streamed tracks: total streams, daily
streams, and whether the artist leads the track or is featured on it, with Spotify track
ids. It can also give the all-time chart of the most-streamed artists. The figures are the
ones kworb.net publishes. Paste artists, press Start, and download JSON, CSV or Excel, or
pull the results through the API.

### What you get

One result per track:

| Field | Example | Meaning |
|---|---|---|
| `artistName` | `Drake` | The artist |
| `artistId` | `3TVXtAsR1Inumwj472S9r4` | The Spotify artist id |
| `rank` | `1` | The track's place among the artist's most-streamed tracks |
| `trackTitle` | `One Dance` | The track |
| `trackId` | `1zi7xx7UVEFkmKfv06H8x0` | The Spotify track id |
| `trackUrl` | | The track's Spotify link |
| `streams` | `4429380115` | All-time Spotify streams |
| `dailyStreams` | `1736858` | Streams on the latest day counted |
| `isFeature` | `false` | `true` when the artist is featured on another artist's track |
| `lastUpdated` | `2026-08-25` | When the figures were last updated at the source |
| `type` | `track` | `track` here; `artist` for chart results |
| `url`, `site`, `scrapedAt` | | The page the figures come from, and when they were read |

With the all-time artists chart, one result per artist (`type` is `artist`): `rank`,
`artistName`, `artistId`, `streams`, `dailyStreams`, `streamsAsLead`, `streamsSolo` and
`streamsAsFeature`. Chart figures are rounded at the source, to 0.1 million streams and
1,000 daily streams.

### How to use it

1. Paste artists into **Artists**, one per line. Each can be the artist's page on
   kworb.net, a Spotify artist link (`open.spotify.com/artist/...`) or a Spotify artist id.
2. For the chart of the most-streamed artists, add `https://kworb.net/spotify/artists.html`.
3. Optionally set **Tracks per artist** to keep only each artist's top tracks.
4. Click **Start**.

Example input:

```json
{"artistUrls": ["https://kworb.net/spotify/artist/3TVXtAsR1Inumwj472S9r4_songs.html",
                "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"],
 "maxTracksPerArtist": 50}
```

### How long it takes

An artist takes a second or two, and several artists are read at the same time
(**Artists at the same time**). The artists chart takes a few seconds.

### Pricing

You pay per result plus a small charge when the run starts. An artist has up to 500
results and the chart about 3,000: use **Tracks per artist**, **Max results** or a maximum
cost per run to cap a run.

### Good to know

- Each artist has up to 500 tracks: the most-streamed ones, highest first.
- Figures exist for artists with enough streams to be listed at the source. Others are
  reported in the run's **RUN_SUMMARY** record as not found.
- The source updates the figures about once a day; `lastUpdated` tells you when.
- Features are flagged with `isFeature`, so you can count them or leave them out.
- On the free Apify plan, results are limited to a daily sample.

### Integrations

Send results to Google Sheets, Slack, Zapier, Make or your own webhook with Apify's
integrations, or call the actor from your code through the Apify API.

### Questions and issues

Open an issue on this actor's **Issues** tab and include the run link.

Running at a high volume, or need another site or field? Ask in an issue.

This actor collects publicly available figures. You are responsible for using the data in
line with the law and the terms that apply to you.

# Actor input Schema

## `artistUrls` (type: `array`):

One per line: an artist's page on kworb.net, a Spotify artist link (open.spotify.com/artist/...) or a Spotify artist id. Add https://kworb.net/spotify/artists.html for the all-time chart of the most-streamed artists.

## `maxTracksPerArtist` (type: `integer`):

Keep only each artist's most-streamed tracks. Leave empty for all of them (up to 500).

## `maxItems` (type: `integer`):

Stop after this many results in total. Leave empty for no limit.

## `maxConcurrency` (type: `integer`):

How many artists are collected in parallel.

## Actor input object example

```json
{
  "artistUrls": [
    "https://kworb.net/spotify/artist/3TVXtAsR1Inumwj472S9r4_songs.html"
  ],
  "maxItems": 20,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "artistUrls": [
        "https://kworb.net/spotify/artist/3TVXtAsR1Inumwj472S9r4_songs.html"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pyronets/spotify-streams-scraper").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 = {
    "artistUrls": ["https://kworb.net/spotify/artist/3TVXtAsR1Inumwj472S9r4_songs.html"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pyronets/spotify-streams-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "artistUrls": [
    "https://kworb.net/spotify/artist/3TVXtAsR1Inumwj472S9r4_songs.html"
  ],
  "maxItems": 20
}' |
apify call pyronets/spotify-streams-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pyronets/spotify-streams-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RrtIdhfkhrFBcthYA/builds/I63BstOW944aKR59U/openapi.json
