# Shazam Songs Search Scraper 🎵 (`easyapi/shazam-songs-search-scraper`) Actor

Extract comprehensive song information from Shazam's search results. Get detailed data including song titles, artists, albums, genres, release dates, and more. Perfect for music research, content aggregation, and building song databases. 🎵

- **URL**: https://apify.com/easyapi/shazam-songs-search-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media, Integrations
- **Stats:** 11 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

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

## Shazam Songs Search Scraper 🎵

Scrape song details from Shazam's search results, including song name, artist, album, genre, and more! 🎸

### Features ✨

- Search songs by keywords
- Get detailed song information including:
  - Song name and artist
  - Album details
  - Genre classifications
  - Release date
  - Duration
  - Preview URL
  - Apple Music link
  - High-quality artwork
  - ISRC code
  - Lyrics availability status
- Support multiple search keywords
- Customizable maximum results per search
- Clean, structured JSON output
- Built-in proxy support

### Input Parameters 📝

The actor accepts the following input parameters:

- `keywords` (Array): List of keywords to search for songs
- `maxItems` (Number): Maximum number of songs to scrape per keyword
- `proxyConfiguration` (Object): Optional proxy settings

### Output 📊

The actor outputs detailed song information in JSON format, including:

- Scraping timestamp
- Song attributes
  - Title and artist name
  - Album information
  - Genre classifications
  - Release date and duration
  - Audio preview URLs
  - Artwork details
  - Technical details (ISRC, audio traits)
- Search keyword reference

### Use Cases 💡

- Music research and analysis
- Building song databases
- Tracking artist discographies
- Genre-based music discovery
- Content aggregation for music apps
- Market research for music industry

### Sample Output 📋

#### Input Example

A full explanation of an input example in JSON.

```json
{
    "keywords": ["u2"],
    "maxItems": 30
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
    {
        "scrapedAt": "2025-01-27T04:52:54.349Z",
        "item": {
            "albumName": "All That You Can't Leave Behind",
            "hasTimeSyncedLyrics": true,
            "genreNames": [
                "摇滚",
                "音乐",
                "Adult Alternative",
                "另类音乐",
                "Arena Rock",
                "国际流行",
                "流行/摇滚"
            ],
            "trackNumber": 1,
            "releaseDate": "2000-10-30",
            "durationInMillis": 248067,
            "isVocalAttenuationAllowed": true,
            "isMasteredForItunes": true,
            "isrc": "GBUM71701873",
            "artwork": {
                "width": 3000,
                "url": "https://is1-ssl.mzstatic.com/image/thumb/Music115/v4/e3/bd/02/e3bd02e5-5f43-8047-1a2b-4a4f8914fc60/17UMGIM95495.rgb.jpg/{w}x{h}bb.jpg",
                "height": 3000,
                "textColor3": "262526",
                "textColor2": "111213",
                "textColor4": "303030",
                "textColor1": "050407",
                "bgColor": "aaaaa2",
                "hasP3": false
            },
            "composerName": "The Edge, Bono, Adam Clayton & Larry Mullen Jr.",
            "audioLocale": "en-US",
            "url": "https://music.apple.com/cn/album/beautiful-day/1443100430?i=1443100723",
            "playParams": {
                "id": "1443100723",
                "kind": "song"
            },
            "discNumber": 1,
            "hasLyrics": true,
            "isAppleDigitalMaster": true,
            "audioTraits": [
                "lossless",
                "lossy-stereo"
            ],
            "name": "Beautiful Day",
            "previews": [
                {
                    "url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview126/v4/9b/3b/0a/9b3b0a90-7042-504b-48a9-f87ae92af1cc/mzaf_7272868363949759433.plus.aac.p.m4a"
                }
            ],
            "artistName": "U2"
        },
        "keyword": "u2"
    },
    ...
]
```

# Actor input Schema

## `keywords` (type: `array`):

List of keywords to search for songs

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

Maximum number of songs to scrape per keyword

## `proxyConfiguration` (type: `object`):

Proxy settings for the scraper

## Actor input object example

```json
{
  "keywords": [
    "u2"
  ],
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/shazam-songs-search-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("easyapi/shazam-songs-search-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 easyapi/shazam-songs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/shazam-songs-search-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/3IaGXMeg2cfkYeWhh/builds/jpzV8c1YvoeKR2ctS/openapi.json
