# Free Spotify Charts Tracker (`s-r/free-spotify-charts`) Actor

- **URL**: https://apify.com/s-r/free-spotify-charts.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** Business, Lead generation
- **Stats:** 19 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 chart entry trackeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Spotify Charts Scraper: Daily and Weekly Top Tracks

Hosted spotify charts that returns structured JSON without the captcha-solving, proxy-rotation, and site-update maintenance you'd otherwise own. Run it from the Apify Store with one click, or call it from your own service via the Apify API. Pay only for what you scrape, no monthly subscription.

### What you get

- **Structured JSON output**, every spotify charts run returns clean, parseable records ready for analytics or downstream pipelines.
- **Hosted on Apify**, no servers, no proxies, no anti-bot maintenance. Click Run.
- **Pay only for what you scrape**, pricing scales with usage; no monthly subscription minimum.

### Why use this spotify charts

Most spotify charts solutions fall into one of two camps: free open-source libraries that break every few months when the upstream site changes, or expensive SaaS tools that charge $99-$399/month for the data layer plus a dashboard UI you may not need.

This Apify Actor sits in the middle: same structured data the SaaS tools ship, but priced per run instead of per month, with a hosted infrastructure that handles proxies, retries, and captcha solving so you don't have to.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `only` | array | **required** | Restrict output to specific chart aliases (e.g. REGIONAL\_GLOBAL\_WEEKLY). Leave at default to fetch the glob… |
| `trackDiffs` | boolean | `True` | If true, persist chart snapshots and emit added/removed/moved per run vs the previous one. |

### Output

Every run pushes results to the Apify dataset as JSON records. Each record contains the structured fields surfaced by the spotify charts, fields, IDs, timestamps, and any nested objects. You can:

- **Download** the dataset as JSON, JSONL, CSV, or Excel from the Apify console
- **Stream** results via the Apify API for use in your own application
- **Pipe** results to webhooks, S3, BigQuery, or any of Apify's 30+ integrations
- **Diff** today's run against yesterday's to detect changes (new entries, removed entries, modified fields)

### Use cases for the spotify charts

#### Competitive monitoring

Run the spotify charts weekly across your top competitors. Spot meaningful changes before they show up anywhere else.

#### Lead enrichment

Pipe spotify charts data into your CRM as part of a nightly enrichment job, every record gets the structured fields your team needs.

#### Market research

Aggregate spotify charts data across a category to size demand, identify gaps, and find under-monetized niches.

#### Operational reporting

Schedule the spotify charts as a recurring Apify task. Pipe results to your warehouse and surface in your existing dashboards.

### How it compares

The common options are a self-hosted Python script that breaks when the site changes, or the official charts site with no export. This Actor is hosted and returns chart rows as JSON on every run.

| | No API key | Hosted for you | JSON output | Usage-based, no monthly plan |
|---|---|---|---|---|
| This Actor | Yes | Yes | Yes | Yes |
| Spotify-Charts-Scraper (GitHub, henry-richard7) | Yes | No, self-host Python | Yes | Free, but you maintain it |
| charts.spotify.com (official) | Yes | Yes (website) | No export or public API | Free, browse only |

### FAQ

#### Is this spotify charts free?

The Actor itself is hosted on Apify with pay-per-event pricing, you only pay for what you actually scrape. There's no monthly subscription and no minimum spend. The first few runs typically cost less than a coffee. For long-running daily jobs, your monthly bill scales with the volume of data you pull.

#### How does this spotify charts compare to existing tools?

Most off-the-shelf spotify charts alternatives are either fragile open-source scripts that break every few months, or expensive SaaS subscriptions starting at $99-$399/month. This Actor sits in between: hosted infrastructure that handles proxy rotation and retries, but priced per run.

#### What input does the spotify charts accept?

The full input schema is rendered as a form on the Apify Store page, you can run a job by filling out a few fields with no code. The schema also accepts raw JSON if you're calling the Actor via the Apify API from your own service. See the **Input** section above for the field list.

#### How accurate is the spotify charts data?

The Actor scrapes data directly from the source, so accuracy matches what a human user would see on the page. There's no third-party cache or middleware, every run returns the live state. If the upstream site throttles requests, the Actor handles retries and proxy rotation transparently and surfaces a structured error in the dataset's `errors` field rather than failing silently.

#### Can I run this spotify charts on a schedule?

Yes, Apify has built-in scheduling. You can set the Actor to run hourly, daily, or weekly, and pipe results to webhooks, S3, or your data warehouse via the Apify integrations. Most teams schedule the spotify charts as a daily task and incrementally diff against the previous run to detect changes.

### Pricing

This spotify charts uses Apify's pay-per-event pricing, every successful record costs a small fixed amount, so your bill scales linearly with usage. There's no monthly subscription and no minimum spend. See the Apify Store page for the current per-event price; expect typical workloads to cost a few dollars per run.

# Actor input Schema

## `only` (type: `array`):

Restrict output to specific chart aliases (e.g. REGIONAL\_GLOBAL\_WEEKLY). Leave at default to fetch the global weekly top tracks chart.

## `trackDiffs` (type: `boolean`):

If true, persist chart snapshots and emit added/removed/moved per run vs the previous one.

## Actor input object example

```json
{
  "only": [
    "REGIONAL_GLOBAL_WEEKLY"
  ],
  "trackDiffs": true
}
```

# 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 = {
    "only": [
        "REGIONAL_GLOBAL_WEEKLY"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/free-spotify-charts").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 = { "only": ["REGIONAL_GLOBAL_WEEKLY"] }

# Run the Actor and wait for it to finish
run = client.actor("s-r/free-spotify-charts").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 '{
  "only": [
    "REGIONAL_GLOBAL_WEEKLY"
  ]
}' |
apify call s-r/free-spotify-charts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=s-r/free-spotify-charts",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/sREzV3MaZ47yhO93I/builds/ZNd868LYMaBntphpb/openapi.json
