# Shazam Scraper: Charts, Songs, Search & Song Recognition (`memo23/shazam-scraper`) Actor

Scrape Shazam charts: world and country Top 200, city Top 50, genre, viral and discovery charts with rank, ISRC, album, release date and preview links. Search songs, look them up by link or ISRC, and recognise songs in audio or video files.

- **URL**: https://apify.com/memo23/shazam-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Social media, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 songs

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

## Shazam Scraper: Charts, Songs, Search & Song Recognition

<p align="center"><img src="https://api.apify.com/v2/key-value-stores/X1Rl5aZIGewQ8McNr/records/logo" alt="Shazam Scraper" width="140"></p>

**What the world is Shazaming, as clean rows.** Shazam's world and country Top 200, city Top 50, genre, viral and discovery charts, with each song's rank, artist, album, ISRC, release date, genres, preview clip and links. Search Shazam's catalogue, look songs up by link or ISRC, and recognise songs in audio or video files.

Shazam charts move before streaming charts do: a song climbs here when people hear it and want to know what it is. That makes them an early signal for labels, playlist curators, music marketers and A\&R teams.

### Why Use This Scraper?

- **Every chart Shazam publishes.** World Top 200, Top 200 of about 70 countries, Top 50 of about 175 cities, genre charts, viral charts, discovery charts and radio-spins charts.
- **Identifiers you can join on.** ISRC, Apple Music id and Shazam key on every row.
- **Song recognition included.** Give links to audio or video files and get the matched song with its label, ISRC and where the clip plays. Files with no match are reported and not charged.
- **Search and lookups.** Find songs by name, or look them up by Shazam or Apple Music link, ISRC or Shazam key.
- **Any storefront.** Song names and links in the Apple Music storefront you choose.

### Overview

This actor is for labels and distributors tracking breakout songs, A\&R scouts watching city and discovery charts, playlist curators, music marketers measuring campaign reach country by country, music-data companies, and researchers studying music trends.

You choose charts, searches, songs or audio files. Each song is one row with its chart, rank and catalogue data. The dataset exports as JSON, CSV, Excel or through the API, and a `RUN_SUMMARY` record lists what each input delivered.

### Supported Inputs

| What you give | What you get |
|---|---|
| Nothing | The world Top 200 |
| Countries, e.g. `US`, `GB`, `Germany`, `world` | Each country's Top 200 (or viral or discovery chart) |
| Cities, e.g. `Chicago, US`, `London` | Each city's Top 50 |
| Genres, e.g. `pop`, `hip-hop-rap`, `latin` | Genre or radio-spins charts |
| Search terms, e.g. `blinding lights` | Matching songs |
| Shazam or Apple Music song links, ISRCs, Shazam keys | Those songs |
| Links to audio or video files (up to 8 MB) | The song in each file |

### Use Cases

- **Breakout detection:** run the country and city charts daily and catch songs climbing before they chart elsewhere.
- **Campaign tracking:** follow a release's rank across countries during a promotion.
- **Catalogue enrichment:** add ISRCs, Apple Music ids, labels and release dates to your own song lists.
- **Content identification:** recognise the music in clips, ads or user uploads.
- **Market research:** compare genres and tastes across countries and cities.

### How It Works

![How it works](https://api.apify.com/v2/key-value-stores/X1Rl5aZIGewQ8McNr/records/how-it-works)

1. **Pick the chart family** and the countries, cities or genres, or add searches, songs or audio files.
2. **Each chart is read in Shazam's order,** up to 200 songs.
3. **Songs are looked up or recognised** one by one.
4. **Every song becomes one row** with its chart, rank and catalogue data.
5. **Export** the dataset as JSON, CSV or Excel, or read it through the API.

### Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `chartType` | string | `top` | `top`, `viral`, `discovery`, `genre` or `radio_spins`. |
| `countries` | array | `world` | Country codes or names; one chart each. |
| `cities` | array | none | City Top 50 charts (top charts only), e.g. `Chicago, US`. |
| `genres` | array | none | For genre and radio-spins charts. |
| `maxSongsPerChart` | integer | `200` | Up to 200 (city charts hold 50). |
| `searchTerms` | array | none | Song or artist names. |
| `maxSongsPerSearch` | integer | `25` | Results per search term. |
| `songs` | array | none | Song links, ISRCs or Shazam keys. |
| `audioUrls` | array | none | Audio or video file links to recognise. |
| `storefront` | string | chart's country | Apple Music storefront for names and links. |

#### Top 200 in three countries

```json
{ "countries": ["US", "GB", "BR"] }
```

#### City charts

```json
{ "cities": ["Chicago, US", "London, GB", "Sao Paulo, BR"] }
```

#### Recognise songs in clips

```json
{ "audioUrls": [{ "url": "https://example.com/clip.mp3" }] }
```

### Output Overview

One row per song: `rank`, `title`, `artist`, `album`, `isrc`, `genres`, `primaryGenre`, `composer`, `label`, `releaseDate`, `durationMs`, `duration`, `explicit`, `hasLyrics`, `previewUrl`, `artworkUrl`, `appleMusicUrl`, `shazamUrl`, `shazamKey`, `appleId`, the chart's `chartName`, `chartType`, `chartCountry`, `chartCity`, `chartGenre`, `chartUpdatedAt`, and `source`, `input`, `position`, `scrapedAt`. Recognition rows add `matched`, `offsetSeconds` and `audioUrl`.

### Output Samples

```json
{
  "rank": 1,
  "title": "BbY WOW",
  "artist": "KAROL G, Judeline & rusowsky",
  "album": "NO ME ARREPIENTO DE SENTIR TANTO",
  "isrc": "USUG12607940",
  "genres": ["Urbano latino", "Latin"],
  "releaseDate": "2026-08-05",
  "duration": "3:46",
  "explicit": false,
  "hasLyrics": true,
  "shazamKey": "891935469",
  "appleId": "6796864754",
  "chartName": "Shazam Global Charts",
  "chartType": "top",
  "chartCountry": "World",
  "chartUpdatedAt": "2026-11-19T07:00:02Z",
  "source": "chart",
  "position": 1
}
```

### Key Output Fields

#### Song

- `title`, `artist`, `album`, `composer`, `label`, `releaseDate`, `duration`, `durationMs`, `explicit`, `hasLyrics`, `genres`, `primaryGenre`.
- `isrc`, `appleId`, `shazamKey`: identifiers to join with other data.
- `previewUrl`, `artworkUrl`, `appleMusicUrl`, `shazamUrl`.

#### Chart

- `rank`, `chartName`, `chartType`, `chartCountry`, `chartCity`, `chartGenre`, `chartUpdatedAt`.

#### Recognition

- `matched`, `offsetSeconds` (where the clip plays in the song), `audioUrl`.

### FAQ

**Which countries and cities have charts?**
About 70 countries have a Top 200 and about 175 cities a Top 50. If you ask for a city without a chart, the run log lists the cities that have one.

**How long can an audio file be?**
Up to 8 MB. The middle 12 seconds are listened to, which is enough for a match.

**Are unmatched recognitions charged?**
No. A file with no match gets a row with `matched: false` and is not charged.

**What does the free Apify plan get?**
Up to 20 songs from the first input per run. Any paid Apify plan removes the limit.

**How much does it cost?**
$0.01 per run start, $0.0015 per song row from a chart, search or lookup ($1.50 per 1,000), and $0.0025 per matched recognition ($2.50 per 1,000). Three country Top 200 charts, 600 songs, cost $0.91. Set "Max cost per run" in the run options and the run stops by itself at that amount.

### Support

Found a bug or missing a field? Open an issue on the actor's [Issues tab](https://apify.com/memo23/shazam-scraper/issues) with your run link and input.

### Additional Services

Need a daily chart feed, chart history or a custom export? Ask on the Issues tab; tailored work is available.

### Explore More Scrapers

- [**Spotify Scraper**](https://apify.com/memo23/spotify-scraper): play counts for playlists, albums and artists.
- [**TikTok Music Scraper**](https://apify.com/memo23/tiktok-music-scraper): trending sounds and TikTok music charts.
- [**Songkick Events Scraper**](https://apify.com/memo23/songkick-events-scraper): concerts and tours.

Full list at [apify.com/memo23](https://apify.com/memo23).

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this actor through the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/shazam-scraper`).

**Purpose:** Shazam charts (world, country, city, genre, viral, discovery), song search, song lookups and song recognition from audio links.

**Minimal input:**

```json
{ "countries": ["US"], "maxSongsPerChart": 50 }
```

**Output:** one row per song: rank, title, artist, album, isrc, genres, primaryGenre, composer, label, releaseDate, durationMs, explicit, hasLyrics, previewUrl, artworkUrl, appleMusicUrl, shazamUrl, shazamKey, appleId, chartName, chartType, chartCountry, chartCity, chartGenre, chartUpdatedAt, source, input, position, scrapedAt; recognition rows add matched, offsetSeconds, audioUrl.

**Behaviors an agent should know:**

- With no input, the world Top 200 is returned.
- Genre and radio-spins charts need `genres`; city charts are top charts only.
- Billing: $0.01 per run start, one `song` charge per song row ($0.0015), one `recognition` charge per matched file ($0.0025).

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Shazam or Apple Inc. All trademarks mentioned are the property of their respective owners.

It returns publicly available chart and catalogue information. Audio files you submit are used only to identify the song. Users are responsible for making sure their use complies with the applicable terms, copyright law and their own contractual obligations.

### SEO Keywords

shazam scraper, shazam charts api, shazam top 200, shazam city charts, shazam viral chart, shazam discovery chart, shazam song recognition api, identify song from audio, music chart data, isrc lookup, apple music id lookup, music trends data, shazam api alternative, top songs by country

# Actor input Schema

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

Which Shazam chart family to read for the countries, cities and genres below.

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

Country codes or names, e.g. US, GB, Germany, or "world". One chart each. Viral and discovery charts default to the world.

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

City Top 50 charts, e.g. "Chicago, US" or "London". Top charts only. If a city has no chart, the run log lists the cities that do.

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

For genre and radio-spins charts, e.g. pop, hip-hop-rap, dance, latin, rock, country, k-pop.

## `maxSongsPerChart` (type: `integer`):

Top charts hold 200 songs, city charts 50.

## `searchTerms` (type: `array`):

Song or artist names to search Shazam's catalogue for.

## `maxSongsPerSearch` (type: `integer`):

Results per search term.

## `songs` (type: `array`):

Shazam or Apple Music song links, ISRCs (e.g. USUG11904206) or Shazam keys. One row each with the song's catalogue data.

## `audioUrls` (type: `array`):

Public links to audio or video files (mp3, m4a, aac, ogg, wav, flac, mp4, webm), up to 8 MB each. The middle 12 seconds are listened to. Files with no match are listed and not charged.

## `storefront` (type: `string`):

Two-letter country the song names and links are read in, e.g. us, gb, de, jp. Default: the chart's own country.

## Actor input object example

```json
{
  "chartType": "top",
  "countries": [
    "world"
  ],
  "maxSongsPerChart": 200,
  "maxSongsPerSearch": 25
}
```

# Actor output Schema

## `songs` (type: `string`):

All rows in the default dataset.

## `summary` (type: `string`):

What each input delivered or could not read.

# 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": [
        "world"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("memo23/shazam-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 '{
  "countries": [
    "world"
  ]
}' |
apify call memo23/shazam-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/shazam-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/7p8hyRz4MsiccBcQ6/builds/GuBrVxM394k0CU2np/openapi.json
