# Music Recognition API: Song ID, ISRC Metadata and AI Detection (`nabeelbaghoor/music-recognition-isrc-metadata-api`) Actor

Song recognition API: identify music in audio files, look up ISRC track metadata with Spotify, Apple Music, Deezer and YouTube links, read file scanning results with cover song and AI music detection, and radio and TV broadcast monitoring detections (ACRCloud). Bring your own key.

- **URL**: https://apify.com/nabeelbaghoor/music-recognition-isrc-metadata-api.md
- **Developed by:** [Nabeel Hassan](https://apify.com/nabeelbaghoor) (community)
- **Categories:** Developer tools, AI, Integrations
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 track metadata records

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

## Music Recognition API: Song ID, ISRC Metadata and AI Detection

Identify songs in audio files, look up track metadata by ISRC with Spotify, Apple Music, Deezer and YouTube links, and read file scanning results (cover songs, custom content, AI music detection) and radio and TV broadcast monitoring detections from the ACRCloud APIs with your own key, as clean rows you can export to CSV, Excel or JSON.

ACRCloud (ACRCloud PTE. LTD., Singapore) runs automatic content recognition over a reference database of more than 150 million tracks, used by music streaming services, phone makers, broadcasters, lyrics platforms and rights holders. This actor wraps the documented read endpoints of the ACRCloud Metadata API, Identification API and Console API (File Scanning and Broadcast Monitoring results). Use it for music identification, catalogue enrichment and ISRC matching, cross platform link building, copyright and rights owner checks, AI generated music screening, airplay reports and royalty pipelines. Bring your own API key.

BYOK, not live tested: every endpoint, parameter and field comes from ACRCloud's own documentation at docs.acrcloud.com, and every route this actor calls was checked on 2026-11-03 with invalid credentials (a documented route answers with an authentication error, an invented one with 404). The actor has not been run against a live account.

### What it does

- **Track metadata by ISRC**: title, artists, album, label, UPC, release date, genres, duration and cover art for any ISRC.
- **Cross platform music links**: Spotify, Apple Music, Deezer, YouTube, Tidal, Gaana, AWA, KKBOX and SoundCloud IDs and links, found by ISRC, ACRCloud ID, a link from another platform, or an "Artist - Title" search.
- **Works and contributors**: ISWC works with composers, publishers and IPI numbers when you turn them on.
- **Song recognition from audio**: give links to audio or video clips and get the recognised song with score, play offset, ISRC, UPC, ISWC, label, platform IDs, composers, lyricists and rights owners. Matches against your own custom buckets come back too.
- **File scanning results**: every file in a File Scanning container with its detected songs, cover songs and custom content, each with offset and played duration.
- **AI music detection**: the AI or human verdict, AI probability, likely source and per generator probabilities (Suno, Udio and others) for scanned files.
- **Broadcast monitoring**: songs detected on your monitored radio, TV and stream channels by day, with time, played duration, ISRC filters and duration filters.
- **Pay only for results**: empty answers, files still processing and refused lookups become a free row that says why.

### How to get your own key

1. Sign up at console.acrcloud.com. A free trial is available.
2. For track metadata, file scanning and broadcast monitoring: open Account, Developer settings and create a token. Paste it into **ACRCloud console token**, or set the DATA_API_KEY secret. It is sent as `Authorization: Bearer <token>`.
3. For audio recognition: create an Audio and Video Recognition project, then copy its host, access key and access secret. Paste the key and secret into the two project fields (or set DATA_API_ACCESS_KEY and DATA_API_ACCESS_SECRET), and pick the region that matches the host. Requests are signed with HMAC SHA1 as documented; the secret is never sent.
4. File scanning and broadcast monitoring read your own containers and projects, so create those in the console first.

### Input

| Field | Modes | Notes |
| --- | --- | --- |
| `mode` | all | `trackMetadata`, `identifyAudio`, `fileScanResults`, `broadcastResults` |
| `apiKey` | trackMetadata, fileScanResults, broadcastResults | your console bearer token |
| `accessKey`, `accessSecret` | identifyAudio | your recognition project credentials |
| `region`, `identifyHost` | identifyAudio, fileScanResults | `eu-west-1`, `us-west-2` or `ap-southeast-1`; the host overrides the region |
| `isrcs`, `acrIds`, `sourceUrls`, `searchQueries` | trackMetadata | one per line; each is one request |
| `platforms`, `includeWorks` | trackMetadata | up to 5 platforms; works with composers and publishers |
| `audioUrls` | identifyAudio | direct links to audio or video; first 5 MB is sent |
| `containerId`, `fileIds`, `search`, `fileState` | fileScanResults | container, optional file IDs, name filter, state filter |
| `projectType`, `projectId`, `channelIds` | broadcastResults | broadcast database or custom streams project |
| `resultType`, `dates` | broadcastResults | a whole day or only the latest result; days as YYYY-MM-DD |
| `minDuration`, `maxDuration`, `isrcCountry`, `withFalsePositive` | broadcastResults | detection filters |
| `maxResults` | all | stop after this many rows (default 1,000) |

### Output

A track looked up by ISRC:

```json
{
    "mode": "trackMetadata",
    "recordType": "track",
    "query": "USCJY1431309",
    "found": true,
    "title": "Blank Space",
    "artists": "Taylor Swift",
    "label": "NOW20thAnniversary",
    "isrc": "USCJY1431309",
    "upc": "00602577145735",
    "releaseDate": "2014-01-01",
    "durationMs": 230760,
    "genres": "Pop, Music",
    "deezerLink": "https://www.deezer.com/track/89077521",
    "youtubeLink": "https://music.youtube.com/watch?v=dC9QIUKviJU",
    "appleMusicLink": "https://music.apple.com/us/album/blank-space/1437689355?i=1437689373",
    "composers": "MAX MARTIN, SHELLBACK, SWIFT TAYLOR ALISON",
    "publishers": "SONY/ATV TREE PUBLISHING, TAYLOR SWIFT MUSIC"
}
```

A song recognised in an audio clip:

```json
{
    "mode": "identifyAudio",
    "recordType": "music",
    "query": "https://example.com/clip.mp3",
    "found": true,
    "acrId": "6049f11da7095e8bb8266871d4a70873",
    "title": "Hello",
    "artists": "Adele",
    "album": "Hello",
    "label": "XL Recording",
    "isrc": "GBBKS1500214",
    "upc": "886445581959",
    "score": 100,
    "playOffsetMs": 9040,
    "spotifyTrackId": "4aebBr4JAihzJQR0CiIZJv",
    "youtubeVideoId": "YQHsXMglC9A",
    "rightsOwners": "Warner Music Group, Sony Music Entertainment"
}
```

An AI music detection verdict from file scanning:

```json
{
    "mode": "fileScanResults",
    "recordType": "aiDetection",
    "fileId": "fd0cbc13-bb69-41ed-abbb-1ed6f25c3b02",
    "fileName": "Camilo - Millones (Official Video)",
    "aiPrediction": "human",
    "aiProbability": 26.97,
    "aiLikelySource": "Human"
}
```

### Pricing

Pay per result, platform usage included: 0.01 USD per track metadata record, 0.015 USD per recognised song, 0.01 USD per file scanning detection and 0.005 USD per broadcast detection. Free rows (no match, still processing, refused) cost nothing. ACRCloud bills your own account for API usage under your plan.

### FAQ

#### How do I identify a song from an audio file with an API?

Choose the audio recognition mode, paste the access key and secret of an ACRCloud Audio and Video Recognition project, and give links to audio clips. The actor downloads each clip and sends it to the ACRCloud Identification API, which matches it against more than 150 million tracks and returns title, artists, ISRC, UPC, label, score and Spotify, Deezer and YouTube IDs.

#### How do I get Spotify, Apple Music and YouTube links from an ISRC?

Use the track metadata mode with a list of ISRCs. The ACRCloud Metadata API returns each track's IDs and links on up to five platforms per request (Spotify, Apple Music, Deezer, YouTube, Tidal, Gaana, AWA, KKBOX or SoundCloud), plus UPC, label, release date and cover art.

#### Can I convert a Spotify link to a YouTube or Apple Music link?

Yes. Put the Spotify, YouTube, Deezer or Apple Music track link in Platform track URLs and pick the platforms you want back; the actor returns the matching track's links on those platforms.

#### Can this detect AI generated music?

Yes, for files in an ACRCloud File Scanning container with AI Music Detection enabled. The file scanning mode returns a human or AI prediction, the AI probability and per source probabilities for generators such as Suno and Udio.

#### How do I get radio airplay data?

Set up a Broadcast Monitoring project in the ACRCloud console, then use the broadcast monitoring mode with the project ID, channel IDs and days. Each detection row has the time, played duration, title, artists, ISRC and label, ready for airplay and royalty reports.

#### Do I need my own ACRCloud account?

Yes. The actor is bring your own key: it uses your console token or your project's access key and secret, and ACRCloud's terms tie usage to your own plan. A free trial is available at console.acrcloud.com.

#### What audio formats can be recognised?

MP3, WAV, WMA, AMR, OGG, APE, AAC, SPX, M4A, MP4 and FLAC, as documented. Short clips of 10 to 15 seconds work best. Files over 5 MB are cut to their first 5 MB, which works for MP3, AAC, OGG and WAV but not for MP4 files whose index sits at the end.

#### Am I charged when nothing is found?

No. Audio with no match, ISRCs with no track, files still processing and lookups the API refuses each produce a free row with found set to false and a note.

### Keyword map

- music recognition API, song recognition API, identify song from audio, audio fingerprinting API
- ISRC lookup API, ISRC to Spotify, ISRC metadata, UPC lookup, ISWC, music metadata API
- Spotify to YouTube link converter, Apple Music link, Deezer ID, cross platform music links
- AI music detection, AI generated song detector, Suno and Udio detection
- broadcast monitoring API, radio airplay data, TV music detection, cover song identification

# Actor input Schema

## `mode` (type: `string`):

Each mode calls one documented ACRCloud read endpoint. Track metadata, file scanning and broadcast monitoring use your console token; audio recognition uses the access key and secret of a recognition project.

## `apiKey` (type: `string`):

Your own bearer token from console.acrcloud.com, Account, Developer settings (a free trial exists). Used by the track metadata, file scanning and broadcast monitoring modes. Leave empty to use the DATA_API_KEY secret.

## `accessKey` (type: `string`):

Audio recognition only. The access key of your Audio and Video Recognition project in the ACRCloud console. Leave empty to use the DATA_API_ACCESS_KEY secret.

## `accessSecret` (type: `string`):

Audio recognition only. The access secret of the same project. It signs each request and is never sent itself. Leave empty to use the DATA_API_ACCESS_SECRET secret.

## `region` (type: `string`):

Audio recognition and file scanning. The region of your recognition project host or file scanning container, as shown in the ACRCloud console.

## `identifyHost` (type: `string`):

Audio recognition only, optional. The exact host of your project, such as identify-eu-west-1.acrcloud.com. Overrides the region when set.

## `isrcs` (type: `array`):

Track metadata. One ISRC per line. Each ISRC is one request.

## `acrIds` (type: `array`):

Track metadata. One ACRCloud music ID (acrid, from a recognition result) per line.

## `sourceUrls` (type: `array`):

Track metadata. One Spotify, YouTube, Deezer, Apple Music or Tidal track link per line, to find the same track on the other platforms.

## `searchQueries` (type: `array`):

Track metadata. One search per line, written as Artist - Title.

## `platforms` (type: `array`):

Track metadata. Up to 5 platforms to return IDs and links for. Leave empty for Spotify, Deezer, YouTube and Apple Music.

## `includeWorks` (type: `boolean`):

Track metadata. Add ISWC works with composers, publishers and IPI numbers when the track has them.

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

Audio recognition. One direct link per line to an audio or video file (MP3, WAV, OGG, AAC, M4A, FLAC and more). Clips of 10 to 15 seconds work best; only the first 5 MB of a file is sent.

## `containerId` (type: `string`):

File scanning. The numeric ID of your File Scanning container in the ACRCloud console. Set the region to the container's region.

## `fileIds` (type: `array`):

File scanning, optional. Only these files, one ID per line. Leave empty to read every file in the container.

## `search` (type: `string`):

File scanning, optional. Only files whose name or URI matches this text.

## `fileState` (type: `string`):

File scanning, optional. Only files in this state.

## `projectType` (type: `string`):

Broadcast monitoring. The kind of Broadcast Monitoring project the channels belong to.

## `projectId` (type: `string`):

Broadcast monitoring. The numeric project ID from the ACRCloud console.

## `channelIds` (type: `array`):

Broadcast monitoring. One channel ID (broadcast database projects) or stream ID such as s-0xAHfNh (custom streams projects) per line.

## `resultType` (type: `string`):

Broadcast monitoring. A whole day of detections, or only the latest one per channel.

## `dates` (type: `array`):

Broadcast monitoring. One day per line as YYYY-MM-DD; every channel is read for every day. Leave empty for the provider's default day.

## `minDuration` (type: `integer`):

Broadcast monitoring, optional. Only detections played at least this long.

## `maxDuration` (type: `integer`):

Broadcast monitoring, optional. Only detections played at most this long.

## `isrcCountry` (type: `string`):

Broadcast monitoring, optional. Only tracks whose ISRC has this two letter country code, such as US, DE or FR.

## `withFalsePositive` (type: `boolean`):

Broadcast monitoring. Also return detections marked as false positives in the console.

## `maxResults` (type: `integer`):

The run stops after this many rows.

## Actor input object example

```json
{
  "mode": "trackMetadata",
  "region": "eu-west-1",
  "isrcs": [
    "GBBKS1500214"
  ],
  "includeWorks": false,
  "fileState": "any",
  "projectType": "broadcastDatabase",
  "resultType": "day",
  "withFalsePositive": false,
  "maxResults": 1000
}
```

# Actor output Schema

## `records` (type: `string`):

One row per track, match, scanned file detection or broadcast detection the chosen mode 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 = {
    "isrcs": [
        "GBBKS1500214"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nabeelbaghoor/music-recognition-isrc-metadata-api").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 = { "isrcs": ["GBBKS1500214"] }

# Run the Actor and wait for it to finish
run = client.actor("nabeelbaghoor/music-recognition-isrc-metadata-api").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 '{
  "isrcs": [
    "GBBKS1500214"
  ]
}' |
apify call nabeelbaghoor/music-recognition-isrc-metadata-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nabeelbaghoor/music-recognition-isrc-metadata-api"
        }
    }
}
```

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/M2U3KeixdavjAmqc7/builds/Yb7X2I17NprCRmgaA/openapi.json
