---
title: "Migrate from unofficial Shazam APIs to AudD"
description: "For apps that identify songs with ShazamIO, node-shazam, or a \"Shazam\" API on RapidAPI: what those projects say about themselves, Apple's official ShazamKit, a field map, Python and Node code before and after, and what changes in price, catalog, and features."
slug: "/resources/migrate/from-unofficial-shazam-apis"
section: "migrate"
keywords: [audd, shazam api, unofficial shazam api, shazamio, node-shazam, rapidapi shazam, reverse engineered shazam api, shazamkit, migration, music recognition api]
---

# Migrate from unofficial Shazam APIs to AudD

If you use ShazamIO, node-shazam, or a "Shazam" API from RapidAPI to identify music, you can use the AudD API instead. We wanted to make the API as simple as possible: you send us the audio file or its URL, and we send you the recognized song. If you prefer a ready-made SDK, we maintain SDKs for 11 languages.

```python
from audd import AudD

audd = AudD("your-api-token")  # get your own token at dashboard.audd.io

result = audd.recognize("https://audd.tech/example.mp3")
if result is None:
    print("no match")
else:
    print(result.artist, "-", result.title)
```

This prints `Tears For Fears - Everybody Wants To Rule The World`.

> **Note.** The facts about the libraries and the listings are from their READMEs, docs, and listing pages, as of November 24, 2026.

## What you use now

### ShazamIO

ShazamIO is a free Python library based on the reverse engineered Shazam API. It can recognize a song from a file or from bytes, and it can also get the Shazam charts. The package is licensed under the MIT license. Note that, according to the README, Shazam no longer answers text search, so the library uses Apple's iTunes index instead.

### node-shazam

The node-shazam library allows you to recognize songs from Node.js using the Shazam API. The library is based on node-shazam-api, with most features added from ShazamIO. The package is licensed under the GPL-2.0 license. The latest version on npm, 1.2.7, was published on July 2, 2024.

### "Shazam" APIs on RapidAPI

The "Shazam" API on RapidAPI is published by apidojo, and "Shazam Core" is published by tipsters. You subscribe to them through RapidAPI. The apidojo detect endpoints only support raw audio data: 44100 Hz, mono, signed 16-bit PCM, encoded in base64, less than 500 KB. MP3, WAV, and other types of media have to be converted first. Shazam Core takes a file: according to its listing, 3 to 5 seconds of audio are enough, and the file should be no more than 3 MB.

## The official option: ShazamKit

If you want to recognize music in your iOS app with Shazam, you can use ShazamKit, Apple's official framework. ShazamKit is also available for Android.

If your iOS or Android app only recognizes music from the microphone, ShazamKit may be the better choice (see "[ShazamKit vs AudD](/resources/articles/shazamkit-vs-audd)"). If you want to recognize music on your server, in files and URLs, or in long files and live streams, use AudD.

## Concept map

| ShazamIO, node-shazam, RapidAPI | AudD |
|---|---|
| `Shazam()`, `new Shazam()`, a RapidAPI key | `AudD("your-api-token")` |
| `recognize`, `recognise`, `/songs/v3/detect`, `/v1/tracks/recognize` | `recognize(source)` |
| A file path, bytes, or base64 PCM | A URL, a file path, or bytes |
| `track.title` | `title` |
| `track.subtitle` | `artist` |
| node-shazam `minimal`: `album`, `year` | `album`, `release_date` |
| `photo_url`, `track.images.coverart` | `thumbnail_url` (Node: `thumbnailUrl`) |
| `apple_music_url` | `apple_music.url`, with `return=apple_music` |
| `youtube_link` | `streaming_url("youtube")` |
| `track.genres` | Apple Music `genreNames` |
| `track.isrc` | `isrc`: an enterprise feature, on a Startup plan or higher, on request |
| No match: `track` is `None`, or `null` | `None` or `null` |
| `language` | No equivalent |
| Charts, related songs, artists | No equivalent |

## Python: from ShazamIO

### Before: ShazamIO

This is the Python example from the ShazamIO README (version 0.9.0 on PyPI). The `Gloria.ogg` file ships with the ShazamIO repository:

```python
import asyncio
from shazamio import Serialize, Shazam


async def main():
    async with Shazam() as shazam:
        out = await shazam.recognize("Gloria.ogg")

        print(out)  # dict
        print(Serialize.full_track(out).track.title)  # I Will Survive


asyncio.run(main())
```

### After: AudD

We've implemented an async client in our Python SDK too: `AsyncAudD`. The `recognize` method of the client returns the recognized song, or `None` if there are no matches.

```python
import asyncio
from audd import AsyncAudD


async def main():
    async with AsyncAudD("your-api-token") as audd:  # get your own token at dashboard.audd.io
        result = await audd.recognize("Gloria.ogg")

        if result is None:
            print("no match")
        else:
            print(result.artist, "-", result.title)
            print(result.album, result.release_date, result.label)
            print(result.song_link, result.thumbnail_url)


asyncio.run(main())
```

You can also use the `AudD` client if your code isn't async.

### The Apple Music link and the genres

The `return` parameter is for the additional metadata you want to be returned. Send `return_metadata=["apple_music"]`, and the result will have the Apple Music data in the `apple_music` field. The genres are in `genreNames`, which is in `model_extra`:

```python
import asyncio
from audd import AsyncAudD


async def main():
    async with AsyncAudD("your-api-token") as audd:
        result = await audd.recognize("Gloria.ogg", return_metadata=["apple_music"])
        if result and result.apple_music:
            print(result.apple_music.url)
            print((result.apple_music.model_extra or {}).get("genreNames"))


asyncio.run(main())
```

Every provider adds some time to the request, so don't request the metadata you don't need.

## Node: from node-shazam

### Before: node-shazam

This is the example from the node-shazam README, for version 1.2.7 on npm. We kept only the ES module part:

```js
import {Shazam} from 'node-shazam'
const shazam = new Shazam()

const recognise = await shazam.recognise('/path/to/file','en-US')
console.log(recognise)
```

### After: AudD

To use the SDK, run `npm install @audd/sdk`. The code below is an ES module: save it as a `.mjs` file, or add `"type": "module"` to your `package.json`.

```js
import { AudD } from "@audd/sdk";

const audd = new AudD("your-api-token"); // get your own token at dashboard.audd.io

const song = await audd.recognize("clip.mp3");
if (song === null) {
  console.log("no match");
} else {
  console.log(`${song.artist} - ${song.title}`);
  console.log(song.album, song.releaseDate, song.label);
  console.log(song.songLink, song.thumbnailUrl);
}
```

You can send a file path, the bytes of a file, or a URL the server can download the file from. We don't have a `language` parameter, but you can set `market`: the country code for Apple Music, iTunes, and Spotify results (by default, `us`).

## From a RapidAPI listing

You don't need to convert the audio to raw PCM or base64. Send the file in the `file` parameter, or a URL in the `url` parameter, and our server will download the file and identify the music:

```bash
curl https://api.audd.io/ \
  -F api_token=your-api-token \
  -F url=https://audd.tech/example.mp3
```

```json
{
  "status": "success",
  "result": {
    "artist": "Tears For Fears",
    "title": "Everybody Wants To Rule The World",
    "album": "Songs From The Big Chair",
    "release_date": "2014-11-10",
    "label": "UMC (Universal Music Catalogue)",
    "timecode": "00:56",
    "song_link": "https://lis.tn/NbkVb"
  }
}
```

To upload a local file instead of a URL, send it as the `file` multipart field: `-F file=@clip.mp3`. `timecode` is the time in the recognized song when the fragment you sent is played.

## When `result` is null

If the server has successfully processed the request, but there are no matches, the `result` field is `null`, and the SDKs return `None` or `null`. All the responses contain the `status` field that equals either "success" if the request was successfully processed or "error" if there's been an error. The API returns the errors with an explanation of what happened, and the SDKs raise them as exceptions. For the error categories, see "[Error codes reference](/resources/reference/errors)."

## When the file is a full song

The standard endpoint analyzes up to the first 12 seconds of the audio you send. A lot of songs start with silence, a count-in or a quiet intro; so if you have the full song, cut 15 seconds from somewhere around the 30th second and send that. 10 MB is the maximum for an uploaded file; 15 seconds of audio usually takes less than one megabyte, so you don't have to think about it. See "[Cut and convert audio clips for recognition with ffmpeg](/resources/recipes/ffmpeg-clips-for-recognition)."

If you want to recognize all the songs in a long file, use the [enterprise endpoint](/resources/concepts/standard-vs-enterprise-vs-streams). It counts 1 request per 12 seconds of audio, so set `limit` in all the requests to it.

## What changes

### Price

You don't pay for the libraries, and you pay for the requests to our API. New accounts get 300 free requests, where available, and then you can subscribe to the Indie plan: $5 per month, with 1,000 requests included. The plans and prices are at [audd.io/pricing](https://audd.io/pricing/).

### The token

To send requests, get a token from the API Dashboard. Please don't include your API token in the client-side software: send the requests from your server. See "[Keeping your API token on the server](/resources/concepts/keeping-your-token-server-side)."

### The catalog

Our server searches for the song in our DB of 160 million songs. If you want to recognize music among your own songs, you can upload them to a custom catalog. Access to it isn't available by default: contact the AudD representative that you work with, or email api@audd.io.

### Links and cover art

`song_link` links to a lis.tn song page like [lis.tn/NbkVb](https://lis.tn/NbkVb). Add `?spotify`, `?apple`, `?deezer`, or `?youtube` to the link, and it will redirect to the song on that service. As the cover art, you can simply use the `song_link` with `?thumb`.

### ISRC, UPC, and the score

If you need ISRC and UPC codes or the match score, contact us: api@audd.io. They're enterprise features, available on a Startup plan or higher, on request.

### Charts

The libraries can also get the Shazam charts. Our API has no charts.

## Switch over

1. Get a token from the API Dashboard at [dashboard.audd.io](https://dashboard.audd.io).
2. Install the SDK: `pip install audd` or `npm install @audd/sdk`.
3. Replace the recognize call, and use the concept map on this page for the fields.
4. Handle the `None` or `null` result: it means there are no matches.
5. Send the same files to your current library or API and to AudD, and compare the results. For how to test on your own audio, see "[Testing your integration](/resources/concepts/testing-your-integration)."

---

**Related**

- [ShazamKit vs AudD: which to use for music recognition](/resources/articles/shazamkit-vs-audd)
- [Migrate from ShazamKit to AudD](/resources/migrate/from-shazamkit)
- [SDK method map](/resources/reference/sdk-method-map)
- [Recognition result fields](/resources/reference/result-fields)
- [Production checklist](/resources/concepts/production-checklist)
- [SDK docs](https://docs.audd.io/sdks)

## Sitemap

See the [resources sitemap](https://audd.io/resources/sitemap.md) for every guide and the [glossary](https://audd.io/resources/reference/glossary.md) for AudD terms.
