# Spotify Editorial Playlists Scraper (`w3crawler/spotify-editorial-playlists-scraper`) Actor

Validate a transparent fixed set of public Spotify editorial playlist IDs and collect current page metadata snapshots.

- **URL**: https://apify.com/w3crawler/spotify-editorial-playlists-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 editorial playlists

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Editorial Playlists Scraper

Snapshot aggregate metadata for a **fixed set of six Spotify-owned editorial playlist IDs** covering hits, mood, rap, Latin, piano, and focus. Each saved row is validated against the public playlist page and can include the playlist name, description, declared counts, curated category, selection rank, and market context. The Actor does not discover the editorial catalog dynamically and does not extract playlist tracks.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/spotify-editorial-playlists-scraper) and select **Try for free** or open the **Input** tab.
2. Optionally set `categoryId` to filter the fixed list, such as `hits`, `mood`, `rap`, `latin`, `piano`, or `focus`.
3. Keep `maxItems` at the default `5` for the first run; the fixed list currently contains six IDs.
4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check the outcome and counts.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `market` | string | Optional | `US` | Two-letter market context retained in each record. The public page is not market-forced. |
| `categoryId` | string | Optional | Not supplied | Optional filter over the fixed curated categories, such as `hits`, `mood`, `rap`, `latin`, `piano`, or `focus`. Up to 100 characters. |
| `maxItems` | integer | Optional | `5` | Maximum records selected from the fixed list, 1–10. The current list has six entries. |
| `timeoutSecs` | integer | Optional | `30` | Per-request timeout, 5–60 seconds. |
| `maxResponseBytes` | integer | Optional | `2000000` | Maximum bytes accepted per response, 100000–5000000. |

Full default input:

```json
{
  "market": "US",
  "maxItems": 5,
  "timeoutSecs": 30,
  "maxResponseBytes": 2000000
}
```

The Actor reads public Spotify playlist pages over direct HTTP. It does not log in, call the official Web API, capture Web Player tokens, download audio, or bypass access challenges.

### Output

The dataset contains one `editorialPlaylist` row per selected playlist. Optional values are omitted rather than inferred, and no diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable key in the form `spotify_editorial_<playlistId>`. |
| `recordType` | string | Always | Row discriminator; always `editorialPlaylist`. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |
| `playlistId` | string | Always | 22-character public Spotify playlist ID from the fixed list. |
| `name` | string | Always | Playlist name read from the public page. |
| `spotifyUrl` | string | Always | Canonical `https://open.spotify.com/playlist/<id>` URL. |
| `description` | string | When the playlist supplies one | Public playlist description. |
| `declaredItemCount` | integer | When a count is present in the description | Declared item count, at least 0. It was not present in the saved run. |
| `declaredSaveCount` | integer | When a save count is present in the description | Declared save count, at least 0. It was not present in the saved run. |
| `curatedCategory` | string | Always | Local category label from the fixed list: `hits`, `mood`, `rap`, `latin`, `piano`, or `focus`. |
| `selectionRank` | integer | Always | One-based position among the selected fixed IDs, at least 0. |
| `market` | string | Always | Requested market context. |
| `catalogDiscoveryStatus` | string | Always | Fixed value `restricted_for_new_and_development_mode_apps`; the Actor does not attempt live catalog discovery. |
| `playlistContentsStatus` | string | Always | Fixed value `not_requested_public_metadata_only`; track rows are never collected. |
| `sourceUrl` | string | Always | Public playlist page used to validate the row. Observed field not declared in `dataset_schema.json`. |

#### Full JSON output

The example below is a real saved row from the 2026-10-25 verification run.

```json
{
  "recordId": "spotify_editorial_37i9dQZF1DXcBWIGoYBM5M",
  "recordType": "editorialPlaylist",
  "playlistId": "37i9dQZF1DXcBWIGoYBM5M",
  "name": "Today’s Top Hits",
  "spotifyUrl": "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
  "description": "The hottest 50. Cover: Tate McRae",
  "curatedCategory": "hits",
  "selectionRank": 1,
  "market": "US",
  "catalogDiscoveryStatus": "restricted_for_new_and_development_mode_apps",
  "playlistContentsStatus": "not_requested_public_metadata_only",
  "sourceUrl": "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
  "scrapedAt": "2026-10-25T21:02:46.841Z"
}
```

### Run summary

**Run summary** is stored in the run's key-value store under `OUTPUT_SUMMARY`; the same object is also written to `OUTPUT`. It reports the selected fixed-list size, saved rows, and failures.

| Field | Meaning |
| --- | --- |
| `recordType` | Always `runSummary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of saved rows: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `market` | Market context used for the run. |
| `categoryId` | Category filter supplied, or an empty string when unfiltered. |
| `maxItems` | Fixed-list selection limit used for the run. |
| `candidateCount` | Fixed-list entries selected after filtering and truncation. |
| `playlistRecordCount` | Playlist records produced. |
| `recordsStored` | Playlist rows saved to the dataset. |
| `failureCount` | Playlist pages that failed validation. |
| `startedAt` | Run start time, in ISO UTC. |
| `completedAt` | Time the summary was written, in ISO UTC. |
| `durationMs` | Run duration in milliseconds. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Every selected playlist produced a valid row. |
| `SUCCEEDED` | `PARTIAL` | At least one row was saved, but another selected playlist failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The run completed cleanly without a usable playlist row. |
| `FAILED` | `FAILED` | The run failed before any usable playlist row was saved. |

Example `OUTPUT_SUMMARY` from the saved run (also written to `OUTPUT`):

```json
{
  "recordType": "runSummary",
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "market": "US",
  "categoryId": "",
  "maxItems": 5,
  "candidateCount": 5,
  "playlistRecordCount": 5,
  "recordsStored": 5,
  "failureCount": 0,
  "startedAt": "2026-10-25T21:02:46.435Z",
  "completedAt": "2026-10-25T21:02:48.424Z",
  "durationMs": 1989
}
```

### Coverage and limitations

The Actor uses a small fixed list of six Spotify-owned editorial playlist IDs; it does not search for editorial playlists, browse categories, or discover newly added playlists. `categoryId` filters that fixed list, and `maxItems` truncates it, so `candidateCount` can never exceed six. `catalogDiscoveryStatus` is recorded as `restricted_for_new_and_development_mode_apps` to make the fixed-list approach explicit.

Only aggregate playlist metadata is collected. Track rows and audio are never requested, as reported by `playlistContentsStatus`. Names and descriptions come from the public playlist page; declared item and save counts are parsed from the description only when that text contains a recognizable count, which is why they are absent from the saved rows. A failed page is counted in the summary and logged, never written as a data row.

### Usage and support

Apify compute and storage costs vary with request volume and output size; this Actor uses direct HTTP rather than a browser. The fixed list is small, so cost is driven mainly by how many selected playlists are requested. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/spotify-editorial-playlists-scraper/issues) to report a problem. Include the run ID, the input used, and the `OUTPUT_SUMMARY`; do not include tokens, cookies, or private data. This Actor is an independent community tool and is not affiliated with, endorsed by, or sponsored by Spotify. Use it only for public data and in accordance with Spotify's terms, robots guidance, and applicable law.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/spotify-editorial-playlists-scraper/changelog.md

# Actor input Schema

## `market` (type: `string`):

Two-letter market context retained in each record.

## `categoryId` (type: `string`):

Optional category filter for the curated set, such as hits, mood, rap, latin, piano, or focus.

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

Maximum unique Spotify-owned playlist records.

## `timeoutSecs` (type: `integer`):

Per-request timeout seconds.

## `maxResponseBytes` (type: `integer`):

Maximum bytes per response.

## Actor input object example

```json
{
  "market": "US",
  "maxItems": 5,
  "timeoutSecs": 30,
  "maxResponseBytes": 2000000
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

Apify status, data completeness, saved-row count, and failure count under OUTPUT_SUMMARY.

## `compatibilitySummary` (type: `string`):

No description

## `sourceMetadata` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/spotify-editorial-playlists-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/spotify-editorial-playlists-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 '{}' |
apify call w3crawler/spotify-editorial-playlists-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/spotify-editorial-playlists-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/Op4bzV5Tz9ilWqiGZ/builds/jWkF4TsqkcpsGd67D/openapi.json
