# Shazam Charts Scraper: Top 200, City, Genre & ISRC (`cliqtomedia/shazam-charts`) Actor

Scrape Shazam Top 200 charts by country, city and genre, plus viral and discovery charts. Get rank, ISRC, album, composer, preview link, Shazam count and Spotify link for each song to spot rising hits early. No login needed.

- **URL**: https://apify.com/cliqtomedia/shazam-charts.md
- **Developed by:** [Cliqto Media](https://apify.com/cliqtomedia) (community)
- **Categories:** For creators
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.25 / 1,000 song rows

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/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

Shazam Charts Scraper reads public Shazam charts (global, country, city, genre, viral and discovery) and saves each ranked song with its ISRC, album, release date, composer, Shazam count and Apple Music and Spotify links.

Use it to watch which songs people look up right now, in one country or city, without a Shazam or Apple account. The smallest run takes the US Top 200 and usually saves the first 3 songs in 10–20 seconds (up to about 90 seconds when Shazam is slow).

[![Shazam Charts Scraper: pick a chart, get ranked songs with rank change, ISRC, Shazam count and music links](https://api.apify.com/v2/key-value-stores/4i1ygtmsJk0jaJ8ZE/records/hero-20261121.png)](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)

[![Run it now: open the prefilled input form and get 3 top Shazam songs in seconds, no coding](https://api.apify.com/v2/key-value-stores/4i1ygtmsJk0jaJ8ZE/records/cta-button-20261130.png)](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)

### Table of contents

- [What it does](#what-it-does)
- [How it works](#how-it-works)
- [Quick start](#quick-start)
- [Use cases](#use-cases)
- [Input](#input)
- [Output](#output)
- [Pricing](#pricing)
- [Limits](#limits)
- [API, export and integrations](#api-export-and-integrations)
- [Troubleshooting](#troubleshooting)
- [FAQ](#faq)
- [Related Actors](#related-actors)
- [Support](#support)

### What it does

The Actor opens the public Shazam chart you choose and saves one row per song: rank, title, artist, chart name, ISRC, album, release date, duration, genre, composer, explicit flag, cover image, a short audio preview link, the public Shazam count and links to Apple Music, Spotify and Shazam.

You can also send a list of Apple Music song IDs or Shazam song links and get the same track data without a chart.

With **Compare with my previous run** turned on, each row also shows the song's position in your last run of the same chart, how many places it moved, its best position so far and whether it is new on the chart.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

#### Good fit

- Music labels, managers and A\&R teams who look for songs that rise in a country or city before they reach radio.
- Playlist editors and music marketers who need a daily Top 200 list with ISRC codes to match songs in their own tools.
- Analysts and researchers who track how a song moves on Shazam charts over days or weeks.
- AI agents that need a current, ranked song list with stable IDs.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### How it works

1. You choose a chart type and a place: the whole world, a country, a city or a genre. Or you give song IDs.
2. The Actor reads the public Shazam chart page, then adds track details from public Shazam and Apple pages. It finds the Spotify link by the exact ISRC code.
3. It saves one row per song to the Dataset (table view **Tracks**) and a short run report called `RUN_SUMMARY` to the Key-value store.
4. If you turned on the comparison, it also keeps a small copy of each chart in a key-value store named `shazam-charts-history` in your own Apify account. The next run compares with it.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### Quick start

[![Input form: chart type (box 1), country code (box 2) and rows to save (box 3)](https://api.apify.com/v2/key-value-stores/4i1ygtmsJk0jaJ8ZE/records/quick-start-form-20261121.png)](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)

1. Open the **Input** tab. **Chart type** is already **Country Top 200** (box 1).
2. Keep `US` in **Countries** or type another two-letter code, such as `GB` (box 2).
3. Keep **Maximum total rows** at `3` for a first test, or set up to `200` (box 3).
4. Click **Start**.
5. Open the **Output** tab. The **Tracks** table shows the rank, chart, title and artist (box 5).
6. Check the **Shazams**, **Composers** and **ISRC** columns (box 6). **Change** and **Peak** stay `null` until you turn on **Compare with my previous run**.

   [![Output table: Tracks view with rank and song columns (box 5) and Shazam count, composers and ISRC columns (box 6)](https://api.apify.com/v2/key-value-stores/4i1ygtmsJk0jaJ8ZE/records/output-table-20261121.png)](https://api.apify.com/v2/key-value-stores/4i1ygtmsJk0jaJ8ZE/records/output-table-20261121.png)

Expected result: 3 rows, positions 1–3 of the US Top 200, each with status `complete`.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### Use cases

| Buyer job | Input path | Output entity | Key fields | Next integration |
| --- | --- | --- | --- | --- |
| Daily Top 200 for one country | `chartType: country`, `countries` | ranked song | `position`, `title`, `artist`, `isrc`, `shazamCount` | Google Sheets or CSV export |
| Find songs that rise in a city | `chartType: city`, `countries` (one), `cities` | ranked song | `position`, `positionChange`, `isNewEntry` | schedule + Slack summary |
| Watch a genre chart | `chartType: genre`, `genres` | ranked song | `position`, `genre`, `releaseDate` | dataset API |
| Match chart songs to Spotify | any chart | ranked song | `isrc`, `spotifyUrl`, `appleMusicUrl` | your own catalog tool |
| Get data for known songs | `chartType: tracks`, `trackIds` | song | `isrc`, `album`, `composer`, `shazamCount` | dataset API |

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### Input

#### Input fields

| Field | Plain name | Type | Required | Default / prefill | Allowed values | Effect | Example | Recommendation |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| `chartType` | Chart type | string | no | default `country` | `global`, `country`, `city`, `genre`, `viral`, `discovery`, `tracks` | Which chart to read. `tracks` reads only `trackIds`. | `"city"` | Start with `country`. |
| `countries` | Countries | array of strings | no; empty means `US` (not used for `global`) | prefill `["US"]` | up to 5 country codes or names | One chart per country for `country`, `viral`, `discovery`; the place for `city` and `genre` charts. | `["US","GB"]` | Two-letter codes are safest. |
| `cities` | Cities | array of strings | for `city` | none | up to 10 city names or slugs | One Top 50 chart per city. | `["New York City"]` | Copy the city name from the Shazam city chart. |
| `genres` | Genres | array of strings | for `genre` | none | up to 10 genre names or slugs | One genre chart per genre. | `["pop"]` | Keep the list short: max 10 charts per run. |
| `trackIds` | Track IDs or Shazam song URLs | array of strings | for `tracks` | none | up to 200 Apple Music song IDs or `shazam.com/song/<id>/<name>` links | Adds rows for these songs after the charts. | `["6796864754"]` | Wrong IDs give one free row with the reason. |
| `maxItems` | Maximum total rows | integer | no | default and prefill `3` | 1–200 | Stops after this many saved rows across all charts. | `200` | Set `200` for a full Top 200. |
| `maxItemsPerChart` | Maximum rows per chart | integer | no | none (no extra limit) | 1–200 | Takes only the top N rows of each chart, then `maxItems` applies. | `20` | Use with several countries to get the top 20 of each. |
| `includeShazamCount` | Include Shazam count | boolean | no | default `true` | true / false | Reads each song page for the Shazam count, composer and lyrics flag. | `false` | Turn off for a faster run. |
| `trackRankChanges` | Compare with my previous run | boolean | no | default `false` | true / false | Saves each chart to `shazam-charts-history` in your account and adds rank change fields. | `true` | Turn on for scheduled runs. |
| `deliveryConnector` | Send results to (optional) | MCP connector | no | none | your connected Slack, Notion or other connector | Posts a short summary after the run. | — | See [Send results to Slack or Notion](#send-results-to-slack-or-notion). |
| `deliveryTarget` | Notion page or channel (optional) | string | no | none | Notion page link or Slack channel ID | Where the summary goes. | `C0123456789` | Needed for Notion. |

Empty input works: the Actor uses the US Top 200 and saves 3 rows. Duplicate countries, cities, genres or song IDs are read once.

#### Interacting settings

| When | Input A | Input B | Effective behavior | Example | Cost/result effect |
| --- | --- | --- | --- | --- | --- |
| Several charts | `maxItemsPerChart` | `maxItems` | Each chart gives at most `maxItemsPerChart` rows; the run stops at `maxItems` in total. | 3 countries, 20 per chart, 60 total | You pay for 60 rows. |
| City or genre chart | `countries` | `cities` / `genres` | Each city or genre is looked up in each country you give. One not found there gives a free row with the reason. | `["US"]` + `["New York City"]` | Use one country for city charts. |
| Charts and songs | `chartType` | `trackIds` | Chart rows come first, song IDs after, inside the same `maxItems`. | Top 200 + 5 IDs, `maxItems` 200 | The 5 songs do not fit. |
| Platform limit | `maxItems` | Apify **Max items** / **Max cost** | The lower limit wins. | `maxItems` 200, Max items 50 | 50 rows. |
| Comparison | `trackRankChanges` | `maxItemsPerChart` | The copy keeps the full chart, so the next run knows songs below your row limit too. | top 20 saved, chart of 200 compared | No extra cost. |

#### Input examples

##### US Top 200 with rank change

```json
{
  "chartType": "country",
  "countries": ["US"],
  "maxItems": 20,
  "trackRankChanges": true
}
```

Expected behavior: reads the US Top 200, saves the top 20 and compares them with your previous run of the same chart.
Expected output: 20 songs with `position`, `positionChange`, `peakPosition`, `isrc` and `shazamCount`.
Limit or cost note: the first run has no previous run, so `previousPosition` and `positionChange` are `null`. Our test: 20 rows in 15 seconds.

##### Top 50 in one city

```json
{
  "chartType": "city",
  "countries": ["US"],
  "cities": ["New York City"],
  "maxItems": 50
}
```

Expected behavior: reads the New York City Top 50.
Expected output: up to 50 songs with the `city` field filled.

##### Data for known songs

```json
{
  "chartType": "tracks",
  "trackIds": ["6796864754", "6783994964"],
  "maxItems": 10
}
```

Expected behavior: no chart; one row per song with `position: null`.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### Output

#### Output fields

| Field | Meaning | Type | Can be empty? | Example / enum | Source / notes |
| --- | --- | --- | --- | --- | --- |
| `status` | Row result | string | no | `complete`, `partial`, `not_found`, `invalid_input`, `error` | `partial` = some details were not found; `error` = one chart could not be read (free row) |
| `statusReason` | Why the row is not complete | string | yes | `Shazam count request failed` | `null` for complete rows |
| `position` | Rank in the chart | integer | yes | `1` | `null` for songs from `trackIds` |
| `previousPosition` | Rank in your previous run of this chart | integer | yes | `1` | only with `trackRankChanges` |
| `positionChange` | Places moved since your previous run | integer | yes | `3` (up), `-3` (down), `0` | `null` on the first run and for new songs |
| `peakPosition` | Best rank seen in your runs | integer | yes | `1` | only with `trackRankChanges` |
| `isNewEntry` | Not in your previous run | boolean | yes | `true` | only with `trackRankChanges` |
| `previousSnapshotAt` | Time of the run used for comparison | string | yes | `2026-11-21T07:07:07.604Z` | UTC |
| `chart` | Chart name | string | yes | `Top 200 — United States` | |
| `chartType` | Chart type | string | yes | `country` | |
| `country`, `city` | Place of the chart | string | yes | `US`, `New York City` | |
| `genre`, `genres` | Genre of the chart or song | string, array | yes | `Electronic`, `["Alternative","Music"]` | |
| `trackId` | Apple Music song ID | string | yes | `6812477273` | |
| `shazamKey` | Shazam track key | string | yes | `904393509` | |
| `title`, `artist` | Song and artist | string | yes | `BbY WOW`, `KAROL G, Judeline & rusowsky` | |
| `album`, `albumArtist`, `albumId` | Album data | string | yes | `Grand Theft Auto VI: Original Score` | Apple |
| `composer` | Composers | string | yes | `Gaspard Auge, Xavier de Rosnay, ...` | Shazam song page |
| `releaseDate` | Release date | string | yes | `2026-11-20` | YYYY-MM-DD |
| `durationMs` | Length in milliseconds | integer | yes | `221190` | |
| `isrc` | Recording code | string | yes | `FR6P12602660` | |
| `shazamCount` | Public Shazam count at run time | integer | yes | `1004517` | `null` when off or not shown |
| `trackNumber`, `discNumber` | Place on the album | integer | yes | `6`, `1` | |
| `isExplicit`, `isCleanVersion`, `hasLyrics` | Song flags | boolean | yes | `false` | |
| `appleMusicUrl`, `spotifyUrl`, `url` | Apple Music, Spotify and Shazam links | string | yes | `https://open.spotify.com/track/...` | Spotify only on an exact ISRC match |
| `links` | The same three links, grouped for the table | object | no | `{"spotify": "..."}` | |
| `previewUrl` | Short audio preview link | string | yes | `https://audio-ssl.itunes.apple.com/...` | audio is not downloaded |
| `artworkUrl` | Cover image link | string | yes | `https://is1-ssl.mzstatic.com/...` | |
| `source`, `sources`, `sourceUrl` | Where the row came from | string, array | no | `shazam.com` | `sources` lists every site used for the row |
| `fetchedAt` | Time the row was saved | string | no | `2026-11-21T07:09:21.052Z` | UTC |

#### Output entities and surfaces

| Situation | Dataset/API/KVS/live view | Result shape | User action |
| --- | --- | --- | --- |
| Normal item | Dataset, view **Tracks** | one row per song, `status: complete` | open, export or read by API |
| Domain-empty result | Dataset | one free row `not_found` or `invalid_input` with `statusReason` | check the country, city, genre or ID |
| Partial result | Dataset + `RUN_SUMMARY` | row `status: partial`; missing values are `null` | read `statusReason`; run again later |
| One chart failed | Dataset + `RUN_SUMMARY` | free row `status: error` for that chart; other charts are saved; `chartFailures` counts it | run that chart again later |
| Wrong input | `RUN_SUMMARY` + status message | run Succeeded with no rows; `status: invalid_input`, `message`, `inputErrors` (field, message, example) | fix the named field and run again |
| Platform Max items reached | status message | run Succeeded; the message says it stopped at the platform Max items limit | raise Max items in the run options |
| Technical failure or retry | `RUN_SUMMARY` + status message | `status: error` or `partial`, `stopReason`, `error` | rows saved before the stop stay; start again |

#### Run status messages

The status line at the top of the run (and in the run list) tells you how the run ended. A rating link appears only when songs were saved.

| Run ends | Status line starts with | Run status |
| --- | --- | --- |
| All requested songs saved | `✅ N songs saved · ⭐ Rate it` | Succeeded |
| Saved, but something is missing (failed chart, missing details, stop at a limit) | `⚠️ N songs saved, <reason> · ⭐ Rate it` | Succeeded |
| Your own **Maximum total rows** reached | `✅ N songs saved · ⭐ Rate it: … · Reached your Maximum total rows limit (N).` | Succeeded |
| Apify Max items limit reached | `⚠️ N songs saved, stopped at the platform Max items limit` | Succeeded |
| Run time limit reached with songs saved | `⚠️ N songs saved, stopped at the run time limit` | Succeeded |
| Run time limit reached before the first song | `❌ No songs saved: the run ran out of time before Shazam answered` | Failed |
| Maximum cost reached before the first song | `⚠️ 0 songs saved: your maximum cost was reached before the first song` | Succeeded |
| Chart has no songs | `ℹ️ 0 songs saved: the chart has no songs right now` | Succeeded |
| Wrong input | `Input error: <field name> …` | Succeeded, no rows |
| Run aborted | `⚠️ Run aborted · N saved` | Aborted |
| Nothing saved because Shazam did not answer | `❌ No songs saved: …` | Failed |

The Actor keeps no progress between server moves: if Apify moves the run to another server (migration), the run starts again from the beginning and ends with one of the lines above. Rows saved before the move stay in the Dataset.

`RUN_SUMMARY` also counts how many details could not be read (`metadataFailures`, `shazamCountFailures`, `spotifyLookupFailures`) and shows where the comparison is kept (`rankHistory`).

#### Output example

```json
{
  "status": "complete",
  "statusReason": null,
  "position": 1,
  "previousPosition": 1,
  "positionChange": 0,
  "peakPosition": 1,
  "isNewEntry": false,
  "previousSnapshotAt": "2026-11-21T07:07:07.604Z",
  "chart": "Top 200 — United States",
  "chartType": "country",
  "country": "US",
  "title": "Flower In A Hurricane [From GTAVI: Original Score]",
  "artist": "Justice, Tame Impala, SZA & King Gizzard & The Lizard Wizard",
  "album": "Grand Theft Auto VI: Original Score",
  "releaseDate": "2026-11-20",
  "durationMs": 221190,
  "isrc": "FR6P12602660",
  "shazamCount": 1004517,
  "trackId": "6812477273",
  "spotifyUrl": "https://open.spotify.com/track/4HCOHRCSQelz2GPX8iTamO",
  "url": "https://www.shazam.com/track/904393509/flower-in-a-hurricane-from-gtavi-original-score",
  "fetchedAt": "2026-11-21T07:09:21.052Z"
}
```

This example is trimmed: it is the first row from the first input example, with fewer fields. `positionChange: 0` means the song kept its place; in the same run "Boston" by STELLA LEFTY had `positionChange: 3` (up 3 places) and "The Blower's Daughter" had `isNewEntry: true`. `null` means the value was not known for this song, not zero. In our 20-row test all rows were `complete`; one song had no ISRC and two had no Spotify link.

#### Send results to Slack or Notion

Pick your connector in the optional `deliveryConnector` field. After the run saves its data, the Actor posts a short summary (up to 25 rows and a link to the full dataset) there. Put a Notion page link or a Slack channel ID in `deliveryTarget`: in Notion every run is added on top of that one page, so your workspace does not fill up with new pages. Without a page link, Notion delivery is skipped and the log says so. A delivery error never fails the run and costs nothing extra. Connect a service once in Apify Console → MCP connectors.

#### Use case → fields

| Buyer job | Input path | Output entity | Key fields | Next integration |
| --- | --- | --- | --- | --- |
| Rising songs | `trackRankChanges: true` | ranked song | `positionChange`, `isNewEntry`, `peakPosition` | scheduled run + Slack |
| Catalog match | any chart | ranked song | `isrc`, `spotifyUrl`, `appleMusicUrl` | CSV or API |
| Popularity check | `chartType: tracks` | song | `shazamCount`, `releaseDate` | Google Sheets |

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### Pricing

#### Pricing unit

You pay a start fee of **$0.0022** per run and **$0.00036** for each saved song row (Apify free plan). On paid Apify plans the row price is lower: $0.000324 (Bronze), $0.000288 (Silver), $0.000252 (Gold and higher). Platform usage is included: you do not pay for compute or traffic.

- Shazam count, composer, Spotify link and rank comparison are included in the row price.
- A run with no valid chart, a chart with no songs or a list of wrong song IDs pays only the start fee. The reason comes as one free row. A chart that Shazam does not answer also gets one free row; the other charts of the run are still saved.
- If the run stops early (your **Max cost**, the timeout or a source error), you pay only for rows already saved.
- Rows with `status: partial` are paid: they have rank, title and artist, but some details are missing.
- Apify charges the start fee for each GB of run memory, at least once. The default 256 MB pays it once.

#### Cost examples

| Scenario | Input scope | Expected item/event count | Base charge | Optional charge | Stop/cap behavior |
| --- | --- | ---: | ---: | ---: | --- |
| First test | US Top 200, `maxItems` 3 | 3 rows | $0.0022 + 3 × $0.00036 = **$0.00328** | none | stops at 3 rows |
| Typical | one chart, `maxItems` 100 | 100 rows | $0.0022 + 100 × $0.00036 = **$0.0382** | none | stops at 100 rows |
| Full Top 200 | US Top 200, `maxItems` 200 | 200 rows | $0.0022 + 200 × $0.00036 = **$0.0742** | none | stops at 200 rows |
| Nothing found | 200 wrong song IDs | 0 paid rows | **$0.0022** | none | one free row with the reason |

Prices are for the free plan; paid plans pay the lower row price above.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### Limits

- Up to 200 rows and up to 10 charts in one run. City charts have up to 50 songs.
- A full Top 200 with Shazam counts took 161–175 seconds in our tests, inside the default 300-second timeout. Three countries with 10 songs each took 54 seconds. With several large charts, set a longer timeout or turn off `includeShazamCount`.
- Rank change shows the change since **your** previous run of the same chart, not Shazam's own daily change: Shazam does not publish the previous rank.
- The Spotify link comes from a free third-party lookup (`tools.wallstream.com`) by exact ISRC. When that service does not answer, `spotifyUrl` is `null` and the run goes on.
- Four Apple Music flags (Digital Master, time-synced lyrics, Mastered for iTunes, Sing) need a paid Apple developer key and are not in the output.
- The Actor does not recognize or download audio. `previewUrl` is only a link.
- Charts change during the day. Two runs a few minutes apart can differ in the lower places.
- Use the data in line with the Apple Media Services terms.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### API, export and integrations

- **API:** start a run with `POST https://api.apify.com/v2/acts/cliqtomedia~shazam-charts/runs` and the input JSON, then read rows from `GET /v2/datasets/{datasetId}/items`.
- **Export:** download the Dataset as JSON, CSV, Excel, XML or HTML from the **Output** tab.
- **Scheduling:** create a task with your input and add an Apify schedule (for example every day). Turn on `trackRankChanges` so each run compares with the one before.
- **Webhooks / no-code:** use an Apify webhook on run success, or the Apify apps for Make, Zapier or n8n, and read `isrc`, `position` and `positionChange`.
- **SDK / MCP / agent:** use the Apify JavaScript or Python client with the actor ID `cliqtomedia/shazam-charts`.

#### Use with AI agents (MCP)

- MCP server URL with only this Actor: `https://mcp.apify.com?tools=cliqtomedia/shazam-charts`.
- Smallest useful input: `{"chartType":"country","countries":["US"],"maxItems":3}`.
- Key output fields: `position` (rank), `title` and `artist`, `isrc` (recording code), `shazamCount` (public count at run time), `positionChange` (places moved since the previous run, positive = up).
- A 3-row run usually takes 10–20 seconds (up to about 90 seconds) and costs $0.00328 on the free plan. Keep `maxItems` at 200 or less and at most 10 charts per run.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### Troubleshooting

#### One row says invalid_input

Symptom: the Dataset has one row with `status: invalid_input`.
Likely reason: an unknown country code, city, genre or song ID.
Check: read `statusReason`; it names the values that were not found.
Action: use two-letter country codes and city names as they appear on Shazam city charts. Not every genre exists in every country: in our test `rock` was not available for US or GB, and `pop` was.

#### Input error: Countries gives 12 charts

Status line: `Input error: Countries gives 12 charts; choose at most 10 charts in one run (each country x each city or genre is one chart). Example: ["US"]. Problem? https://apify.com/cliqtomedia/shazam-charts/issues`
Symptom: run status Succeeded, no rows, `stopReason: INVALID_INPUT` in `RUN_SUMMARY`.
Likely reason: countries × cities or countries × genres give more than 10 charts.
Check: each country × each city or genre is one chart. 5 countries × 4 genres is already too many.
Action: split the list into two runs. You pay only the start fee for this run.

#### Input error: no valid chart or song

Status line: `Input error: Cities has no valid chart or song (Cities: "Xyz" is not listed for US; use New York City for US). Example: ["New York City"]. Problem? https://apify.com/cliqtomedia/shazam-charts/issues`
Symptom: run Succeeded with no rows.
Likely reason: every country, city, genre or song ID you gave is unknown to Shazam or Apple.
Action: fix the field named at the start of the line (the same name as in the form) and run again. You pay only the start fee.

#### Input error: a list or number is wrong

Status line: `Input error: Maximum total rows must be an integer from 1 to 200. Example: 200. Problem? https://apify.com/cliqtomedia/shazam-charts/issues`
Symptom: run Succeeded with no rows.
Likely reason: a field has the wrong kind of value, for example text in a number field, or too many list items.
Action: change the field named in the line and run again.

#### Rank change is null

Symptom: `positionChange` and `previousPosition` are `null`.
Likely reason: `trackRankChanges` is off, this is your first run of this chart, or the song is new (`isNewEntry: true`).
Check: `rankHistory` in `RUN_SUMMARY` shows the store name, `off` or `unavailable`.
Action: turn on **Compare with my previous run** and run the same chart again.

#### Some rows are partial

Status line: `⚠️ 10 songs saved, 2 of 10 songs have missing details · ⭐ Rate it: https://console.apify.com/actors/6BGp5CXJethyruq6K/reviews · Problem? https://apify.com/cliqtomedia/shazam-charts/issues · Read the statusReason column.`
Symptom: `status: partial`, and `isrc`, `shazamCount` or `spotifyUrl` is `null`.
Likely reason: a public song page or the Spotify lookup did not answer in time.
Check: `statusReason` and the failure counters in `RUN_SUMMARY`.
Action: run again later; the counts are often back in the next run.

#### One chart failed, the others were saved

Status line: `⚠️ 10 songs saved, 1 of 2 charts failed · ⭐ Rate it: https://console.apify.com/actors/6BGp5CXJethyruq6K/reviews · Problem? https://apify.com/cliqtomedia/shazam-charts/issues · Failed charts are rows with status "error" in the Dataset.`
Symptom: a free Dataset row with `status: error` names the chart.
Likely reason: Shazam did not answer for that chart.
Action: run that chart again in a few minutes.

#### The run stopped at a time, cost or Max items limit

Status line: `⚠️ 5 songs saved, stopped at the run time limit · ⭐ Rate it: https://console.apify.com/actors/6BGp5CXJethyruq6K/reviews · Problem? https://apify.com/cliqtomedia/shazam-charts/issues`
Other endings of the same kind: `stopped at your maximum cost`, `stopped at the platform Max items limit`, and `K of M inputs not read (limit reached)`.
Symptom: fewer rows than you asked for.
Likely reason: the run reached its timeout, your **Max cost**, or the Max items setting of the run.
Action: raise that limit in the run options, or turn off **Include Shazam count** for a faster run, and run again. You pay only for saved rows.

#### Nothing saved: cost limit

Status line: `⚠️ 0 songs saved: your maximum cost was reached before the first song · Problem? https://apify.com/cliqtomedia/shazam-charts/issues`
Symptom: no rows, run Succeeded.
Likely reason: **Max cost** is lower than the start fee plus one row.
Action: raise the maximum cost in the run options.

#### Nothing saved: chart has no songs

Status line: `ℹ️ 0 songs saved: the chart has no songs right now · Problem? https://apify.com/cliqtomedia/shazam-charts/issues`
Symptom: no paid rows; one free row with `status: not_found` explains it.
Likely reason: Shazam has no chart for that place or genre today.
Action: try another country, city or genre.

#### Run aborted

Status line: `⚠️ Run aborted · 3 saved · ⭐ Rate it: https://console.apify.com/actors/6BGp5CXJethyruq6K/reviews · Problem? https://apify.com/cliqtomedia/shazam-charts/issues` (with nothing saved: `⚠️ Run aborted · 0 saved · Problem? https://apify.com/cliqtomedia/shazam-charts/issues`)
Symptom: the run was stopped before it ended.
Likely reason: you or a schedule aborted it, or it was stopped at the platform.
Action: rows saved before the abort stay in the Dataset; start again for the rest.

#### The run failed: no songs saved

Status line: `❌ No songs saved: Shazam did not return any chart; try again in a few minutes · Report it: https://apify.com/cliqtomedia/shazam-charts/issues · Run link: https://console.apify.com/view/runs/<run ID>`
Other endings of the same kind: `the run ran out of time before Shazam answered` and `something went wrong; try again in a few minutes`.
Symptom: run status Failed, no rows. With saved rows the run ends as Succeeded instead.
Likely reason: Shazam did not answer or changed its page.
Check: `error` in `RUN_SUMMARY`.
Action: start again in a few minutes. If it fails again, report it in the Issues tab with the run link.

#### The run failed unexpectedly

Status line: `❌ Run failed · Report it: https://apify.com/cliqtomedia/shazam-charts/issues · Run link: https://console.apify.com/view/runs/<run ID>`
Symptom: run status Failed with an error in the log.
Action: report it in the Issues tab with the run link.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### FAQ

#### Do I need a Shazam, Apple or Spotify account?

No. The Actor reads only public pages and needs no login, cookies or API key.

#### How is rank change counted?

When `trackRankChanges` is on, each run saves the whole chart to the key-value store `shazam-charts-history` in your Apify account. The next run of the same chart compares each song with that copy. The store is yours; you can delete it to start over. If that name cannot be opened in your account, the Actor uses `shazam-charts-history-v2` instead; `rankHistory` in `RUN_SUMMARY` shows which one.

#### How fresh is the data?

Every run reads the chart live. `fetchedAt` shows when the row was saved. `shazamCount` is the public count at that moment.

#### Why is a value null?

`null` means the source did not show the value for this song or did not answer. It never means zero.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### Related Actors

- [SoundCloud Scraper - Tracks, Artists, Playlists & Plays](https://apify.com/cliqtomedia/soundcloud-scraper) — tracks, artists, playlists and play counts from SoundCloud.
- [Spotify Scraper: Play Counts, Artists, Tracks & Playlists](https://apify.com/cliqtomedia/spotify-scraper) — play counts and track data from Spotify for the songs you find on the charts.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)**

### Support

For a bug, question or feature request, open the Actor's **Issues** tab on Apify. Include the run ID, your input (chart type, countries, cities or genres) and the status message. Never send tokens, cookies or billing data.

⭐ Found it useful? [Rate this Actor](https://console.apify.com/actors/6BGp5CXJethyruq6K/reviews).
Something wrong? [Report a problem](https://apify.com/cliqtomedia/shazam-charts/issues) — we fix reported problems.

[![Run it now: open the prefilled input form and get 3 top Shazam songs in seconds, no coding](https://api.apify.com/v2/key-value-stores/4i1ygtmsJk0jaJ8ZE/records/cta-button-20261130.png)](https://console.apify.com/actors/6BGp5CXJethyruq6K/input)

# Changelog

This Actor's version history is a separate document: https://apify.com/cliqtomedia/shazam-charts/changelog.md

# Actor input Schema

## `chartType` (type: `string`):

Global or country Top 200, city Top 50, genre, viral, or discovery chart.

## `countries` (type: `array`):

Up to 5 two-letter country codes, such as US or GB. Choose one country for a city chart.

## `cities` (type: `array`):

Up to 10 city names or slugs, such as New York City. Use when Chart type is City Top 50.

## `genres` (type: `array`):

Up to 10 genre names or slugs, such as pop. Use when Chart type is Genre.

## `trackIds` (type: `array`):

Up to 200 Apple Music song IDs or public Shazam song URLs. Adds standalone track rows.

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

Maximum total song rows across all charts and track IDs. Also limited by the platform Max items setting.

## `maxItemsPerChart` (type: `integer`):

Maximum song rows from each chart before the Maximum total rows limit.

## `includeShazamCount` (type: `boolean`):

Read each public song page for its total Shazam count. Adds one request per track; null when the page has no count or fails.

## `trackRankChanges` (type: `boolean`):

Save each chart to a named key-value store shazam-charts-history in your Apify account. Next run adds previousPosition, positionChange, peakPosition and isNewEntry. The first run has no previous position.

## `deliveryConnector` (type: `string`):

Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors.

## `deliveryTarget` (type: `string`):

Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why.

## Actor input object example

```json
{
  "chartType": "country",
  "countries": [
    "US"
  ],
  "maxItems": 3,
  "includeShazamCount": true,
  "trackRankChanges": false
}
```

# Actor output Schema

## `tracks` (type: `string`):

No description

## `runSummary` (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 = {
    "countries": [
        "US"
    ],
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/shazam-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 = {
    "countries": ["US"],
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/shazam-charts").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 '{
  "countries": [
    "US"
  ],
  "maxItems": 3
}' |
apify call cliqtomedia/shazam-charts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cliqtomedia/shazam-charts"
        }
    }
}
```

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/6BGp5CXJethyruq6K/builds/HamWxXDZnzo0yZDaz/openapi.json
