GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • AudD
  • Home
  • All SDKs
  • Python
  • Node.js
  • Go
  • Rust
  • PHP
  • Swift
  • Kotlin
  • .NET
  • Java
  • C
  • C++

This view

  • Original page
  • New address

GeezerVison is showing docs.audd.io โ€” AudD Music Recognition API Docs

Open .md
Quick Start

Our API is praised for how easy it is to integrate. Get started in seconds: Sign up for an API token.

Overviewโ€‹

AudD is a powerful music recognition API that identifies songs from audio files, live streams, and large video files with industry-leading accuracy, enterprise-grade features, and rich metadata.

AudD is trusted by some of the most important companies in the world.

๐Ÿ“‹ Quick Exampleโ€‹

curl https://api.audd.io/ \
-F url='https://audd.tech/example.mp3' \
-F api_token='test'

The entirety of our API is that simple and takes no time to integrate; however, if you prefer a ready-made SDK, we maintain SDKs for 11 languages.

๐Ÿš€ API Endpointsโ€‹

EndpointBest ForFile SizeResponse Time
Standard RecognitionSingle song identificationShort audio clip~0.1-1.5 seconds
Audio StreamsReal-time monitoringContinuous streamsReal-time
EnterpriseLarge filesUnlimitedSeconds to minutes

For the live music recognition for audio streams, see docs for audio streams: useful if you want to identify music playing on radio stations, audio and video streams, etc.; e.g., if you want to monitor airplay, check live streams for copyright, create radio charts, now playing widgets, or bots for YouTube and Twitch streams.

We have a separate API endpoint that accepts large audio and video files (even hours-long mixes or days-long recordings) and recognizes all the tracks in them: see docs for the enterprise endpoint. Especially useful for some types of UGC and other content that you might want to check against our copyrighted music DB.

Some API methods are not public. Please coordinate access with your AudD contact.

You can send requests via GET and POST, with parameters in the query or the request body.

  • api_token โ€” the auth token. It's required for all API requests. Sign up on the Dashboard to get one.

post
/
get
Standard Recognitionโ€‹

https://api.audd.io/

This is the default API method. It allows identifying music in audio, just like Shazam. A file is required: tap on the Code examples tab below or Sending files section.

  • Request
  • Response
  • Code examples
Form Data Parameters
api_token
REQUIRED
string
The token received from the Dashboard
url
POSSIBLY REQUIRED
string
The URL of the file for the recognition
file
POSSIBLY REQUIRED
binary
The file for the recognition
return
OPTIONAL
string
Comma-separated identifiers of the additional metadata, see below
market
OPTIONAL
string
Country code for Apple Music, iTunes, and Spotify results, default: us
Music recognition result
200: OK
{
"status": "success",
"result": {
"artist": "Imagine Dragons",
"title": "Warriors",
"album": "Warriors",
"release_date": "2014-09-18",
"label": "Universal Music",
"timecode": "02:32",
"song_link": "https://lis.tn/Warriors",
"apple_music": {
"previews": [
{
"url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview118/v4/65/07/f5/6507f5c5-dba8-f2d5-d56b-39dbb62a5f60/mzaf_1124211745011045566.plus.aac.p.m4a"
}
],
"artwork": {
"width": 1500,
"height": 1500,
"url": "https://is2-ssl.mzstatic.com/image/thumb/Music128/v4/f4/78/f5/f478f58e-97cf-83b5-b5da-03d31f14e648/00602547623805.rgb.jpg/{w}x{h}bb.jpeg",
"bgColor": "7f5516",
"textColor1": "ffe2aa",
"textColor2": "f8e0bd",
"textColor3": "e5c58c",
"textColor4": "e0c59c"
},
"artistName": "Imagine Dragons",
"url": "https://music.apple.com/us/album/warriors/1440831203?i=1440831624",
"discNumber": 1,
"genreNames": [
"Alternative",
"Music"
],
"durationInMillis": 170799,
"releaseDate": "2014-09-18",
"name": "Warriors",
"isrc": "USUM71414163",
"albumName": "Smoke + Mirrors (Deluxe)",
"playParams": {
"id": "1440831624",
"kind": "song"
},
"trackNumber": 18,
"composerName": "Imagine Dragons, Alex Da Kid & Josh Mosser"
},
"spotify": {
"album": {
"album_type": "album",
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/53XhwfbYqKCa1cC15pYq2q"
},
"href": "https://api.spotify.com/v1/artists/53XhwfbYqKCa1cC15pYq2q",
"id": "53XhwfbYqKCa1cC15pYq2q",
"name": "Imagine Dragons",
"type": "artist",
"uri": "spotify:artist:53XhwfbYqKCa1cC15pYq2q"
}
],
"available_markets": null,
"external_urls": {
"spotify": "https://open.spotify.com/album/6ecx4OFG0nlUMqAi9OXQER"
},
"href": "https://api.spotify.com/v1/albums/6ecx4OFG0nlUMqAi9OXQER",
"id": "6ecx4OFG0nlUMqAi9OXQER",
"images": [
{
"height": 640,
"url": "https://i.scdn.co/image/d3acaeb069f37d8e257221f7224c813c5fa6024e",
"width": 640
},
{
"height": 300,
"url": "https://i.scdn.co/image/b039549954758689330893bd4a92585092a81cf5",
"width": 300
},
{
"height": 64,
"url": "https://i.scdn.co/image/67407947517062a649d86e06c7fa17670f7f09eb",
"width": 64
}
],
"name": "Smoke + Mirrors (Deluxe)",
"release_date": "2015-10-30",
"release_date_precision": "day",
"total_tracks": 21,
"type": "album",
"uri": "spotify:album:6ecx4OFG0nlUMqAi9OXQER"
},
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/53XhwfbYqKCa1cC15pYq2q"
},
"href": "https://api.spotify.com/v1/artists/53XhwfbYqKCa1cC15pYq2q",
"id": "53XhwfbYqKCa1cC15pYq2q",
"name": "Imagine Dragons",
"type": "artist",
"uri": "spotify:artist:53XhwfbYqKCa1cC15pYq2q"
}
],
"available_markets": null,
"disc_number": 1,
"duration_ms": 170066,
"explicit": false,
"external_ids": {
"isrc": "USUM71414163"
},
"external_urls": {
"spotify": "https://open.spotify.com/track/1lgN0A2Vki2FTON5PYq42m"
},
"href": "https://api.spotify.com/v1/tracks/1lgN0A2Vki2FTON5PYq42m",
"id": "1lgN0A2Vki2FTON5PYq42m",
"is_local": false,
"name": "Warriors",
"popularity": 66,
"track_number": 18,
"type": "track",
"uri": "spotify:track:1lgN0A2Vki2FTON5PYq42m"
}
}
}
  • Send a file URL
  • Send a local file
  • Python
  • Node
  • Go
  • Rust
  • PHP
  • Swift
  • Kotlin
  • C#
  • Java
  • C
  • C++
  • curl

Plain HTTP, no SDK:

curl https://api.audd.io/ \
-F api_token='your api token' \
-F url='https://audd.tech/example.mp3' \
-F return='apple_music,spotify'

With the SDK:

pip install audd
from audd import AudD

audd = AudD("your-api-token")
result = audd.recognize("https://audd.tech/example.mp3")
if result:
print(f"{result.artist} โ€” {result.title}")

Full Python reference โ†’

Or send the request yourself, without the SDK:

import requests
data = {
'api_token': 'your api token',
'url': 'https://audd.tech/example.mp3',
'return': 'apple_music,spotify',
}
result = requests.post('https://api.audd.io/', data=data)
print(result.text)

With the SDK:

npm install @audd/sdk
import { AudD } from "@audd/sdk";

const audd = new AudD("your-api-token");
const song = await audd.recognize("https://audd.tech/example.mp3");
if (song) console.log(`${song.artist} โ€” ${song.title}`);

Full Node reference โ†’

Or send the request yourself, without the SDK:

var axios = require("axios");

var data = {
'api_token': 'your api token',
'url': 'https://audd.tech/example.mp3',
'return': 'apple_music,spotify',
};

axios({
method: 'post',
url: 'https://api.audd.io/',
data: data,
headers: { 'Content-Type': 'multipart/form-data' },
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});

With the SDK:

go get github.com/AudDMusic/audd-go
package main

import (
"fmt"
"log"

audd "github.com/AudDMusic/audd-go"
)

func main() {
client := audd.NewClient("your api token")
defer client.Close()

result, err := client.Recognize("https://audd.tech/example.mp3", &audd.RecognizeOptions{
ReturnMetadata: "apple_music,spotify",
})
if err != nil {
log.Fatal(err)
}
if result == nil {
fmt.Println("no match")
return
}

// Always-present fields.
fmt.Printf("%s โ€” %s\n", result.Artist, result.Title)
fmt.Println("Album: ", result.Album)
fmt.Println("Released: ", result.ReleaseDate)
fmt.Println("Label: ", result.Label)
fmt.Println("Timecode: ", result.Timecode)
fmt.Println("AudD link: ", result.SongLink)

// Helpers โ€” work without any Return opt-in.
fmt.Println("Thumbnail: ", result.ThumbnailURL())
fmt.Println("Preview: ", result.PreviewURL())
fmt.Println("On Spotify: ", result.StreamingURL(audd.ProviderSpotify))

// Provider blocks โ€” populated only when requested via Return.
if result.AppleMusic != nil {
fmt.Println("Apple Music URL:", result.AppleMusic.URL)
}
if result.Spotify != nil {
fmt.Println("Spotify URI: ", result.Spotify.URI)
}
if result.Deezer != nil {
fmt.Println("Deezer link: ", result.Deezer.Link)
}
if len(result.MusicBrainz) > 0 {
fmt.Println("MusicBrainz ID: ", result.MusicBrainz[0].ID)
}
}

Full Go SDK reference โ†’

With the SDK:

cargo add audd
let client = audd::AudD::new("your-api-token");
let result = client.recognize("https://audd.tech/example.mp3").await?;
if let Some(song) = result {
println!("{} โ€” {}", song.artist.unwrap_or_default(), song.title.unwrap_or_default());
}

Full Rust reference โ†’

With the SDK:

composer require audd/audd
<?php
$audd = new AudD\AudD('your-api-token');
$song = $audd->recognize('https://audd.tech/example.mp3');
if ($song !== null) {
echo "{$song->artist} โ€” {$song->title}\n";
}

Full PHP reference โ†’

Or send the request yourself, without the SDK:

<?php
$data = [
'api_token' => 'your api token',
'url' => 'https://audd.tech/example.mp3',
'return' => 'apple_music,spotify',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, 'https://api.audd.io/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$result = curl_exec($ch);
curl_close($ch);
echo $result;

With the SDK:

// Package.swift, in dependencies:
.package(url: "https://github.com/AudDMusic/audd-swift", from: "1.5.22"),
let audd = try AudD(apiToken: "your-api-token")
if let song = try await audd.recognize("https://audd.tech/example.mp3") {
print("\(song.artist ?? "") โ€” \(song.title ?? "")")
}

Full Swift reference โ†’

With the SDK:

// build.gradle.kts
implementation("io.audd:audd-kotlin:1.6.1")
val audd = AudD("your-api-token")
val song = audd.recognize(Source.Url("https://audd.tech/example.mp3"))
println("${song?.artist} โ€” ${song?.title}")

Full Kotlin reference โ†’

With the SDK:

dotnet add package AudD
using var audd = new AudD.AudD("your-api-token");
var song = await audd.RecognizeAsync("https://audd.tech/example.mp3");
Console.WriteLine($"{song?.Artist} โ€” {song?.Title}");

Full C# reference โ†’

With the SDK:

<!-- pom.xml -->
<dependency>
<groupId>io.audd</groupId>
<artifactId>audd</artifactId>
<version>1.5.21</version>
</dependency>
try (AudD audd = new AudD("your-api-token")) {
RecognitionResult song = audd.recognize("https://audd.tech/example.mp3");
if (song != null) System.out.println(song.artist() + " โ€” " + song.title());
}

Full Java reference โ†’

Or send the request yourself, without the SDK:

// requires OkHttp
OkHttpClient client = new OkHttpClient();
RequestBody data = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("api_token", "your api token")
.addFormDataPart("url", "https://audd.tech/example.mp3")
.addFormDataPart("return", "apple_music,spotify").build();
Request request = new Request.Builder().url("https://api.audd.io/")
.post(data).build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());

With the SDK:

# CMakeLists.txt
FetchContent_Declare(audd
GIT_REPOSITORY https://github.com/AudDMusic/audd-c.git
GIT_TAG v1.5.20)
FetchContent_MakeAvailable(audd)
target_link_libraries(your_app PRIVATE audd)
audd_client_t* client = audd_client_new("your-api-token", NULL);
audd_recognition_t* result = NULL;
audd_recognize(client, "https://audd.tech/example.mp3", NULL, &result);
if (result) {
printf("%s โ€” %s\n", audd_recognition_get_artist(result), audd_recognition_get_title(result));
}
audd_recognition_free(result);
audd_client_free(client);

Full C reference โ†’

With the SDK:

# CMakeLists.txt
FetchContent_Declare(audd
GIT_REPOSITORY https://github.com/AudDMusic/audd-cpp.git
GIT_TAG v1.5.18)
FetchContent_MakeAvailable(audd)
target_link_libraries(your_app PRIVATE audd::audd)
audd::AudD client("your-api-token");
auto song = client.recognize("https://audd.tech/example.mp3");
if (song) std::cout << song->artist << " โ€” " << song->title << "\n";

Full C++ reference โ†’

  • Python
  • Node
  • Go
  • Rust
  • PHP
  • Swift
  • Kotlin
  • C#
  • Java
  • C
  • C++
  • curl

Plain HTTP, no SDK:

curl https://api.audd.io/ \
-F api_token='your api token' \
-F file=@/path/to/example.mp3 \
-F return='apple_music,spotify'

With the SDK:

pip install audd
from audd import AudD

audd = AudD("your-api-token")
with open("/path/to/clip.mp3", "rb") as f:
result = audd.recognize(f)
if result:
print(f"{result.artist} โ€” {result.title}")

Full Python reference โ†’

Or send the request yourself, without the SDK:

import requests
data = {
'api_token': 'your api token',
'return': 'apple_music,spotify',
}
files = {
'file': open('/path/to/example.mp3', 'rb'),
}
result = requests.post('https://api.audd.io/', data=data, files=files)
print(result.text)

With the SDK:

npm install @audd/sdk
import { AudD } from "@audd/sdk";
import { readFile } from "node:fs/promises";

const audd = new AudD("your-api-token");
const buf = await readFile("/path/to/clip.mp3");
const song = await audd.recognize(buf);
if (song) console.log(`${song.artist} โ€” ${song.title}`);

Full Node reference โ†’

Or send the request yourself, without the SDK:

var axios = require("axios");
var fs = require('fs');

var data = {
'api_token': 'your api token',
'file': fs.createReadStream('/path/to/example.mp3'),
'return': 'apple_music,spotify',
};

axios({
method: 'post',
url: 'https://api.audd.io/',
data: data,
headers: { 'Content-Type': 'multipart/form-data' },
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});

With the SDK:

go get github.com/AudDMusic/audd-go
package main

import (
"fmt"
"log"
"os"

audd "github.com/AudDMusic/audd-go"
)

func main() {
client := audd.NewClient("your api token")
defer client.Close()

f, err := os.Open("/path/to/example.mp3")
if err != nil {
log.Fatal(err)
}
defer f.Close()

result, err := client.Recognize(f, &audd.RecognizeOptions{
ReturnMetadata: "apple_music,spotify",
})
if err != nil {
log.Fatal(err)
}
if result == nil {
fmt.Println("no match")
return
}

// Always-present fields.
fmt.Printf("%s โ€” %s\n", result.Artist, result.Title)
fmt.Println("Album: ", result.Album)
fmt.Println("Released: ", result.ReleaseDate)
fmt.Println("Label: ", result.Label)
fmt.Println("Timecode: ", result.Timecode)
fmt.Println("AudD link: ", result.SongLink)

// Helpers โ€” work without any Return opt-in.
fmt.Println("Thumbnail: ", result.ThumbnailURL())
fmt.Println("Preview: ", result.PreviewURL())
fmt.Println("On Spotify: ", result.StreamingURL(audd.ProviderSpotify))

// Provider blocks โ€” populated only when requested via Return.
if result.AppleMusic != nil {
fmt.Println("Apple Music URL:", result.AppleMusic.URL)
}
if result.Spotify != nil {
fmt.Println("Spotify URI: ", result.Spotify.URI)
}
if result.Deezer != nil {
fmt.Println("Deezer link: ", result.Deezer.Link)
}
if len(result.MusicBrainz) > 0 {
fmt.Println("MusicBrainz ID: ", result.MusicBrainz[0].ID)
}
}

Full Go SDK reference โ†’

With the SDK:

cargo add audd
let client = audd::AudD::new("your-api-token");
let result = client.recognize(std::path::Path::new("/path/to/clip.mp3")).await?;
if let Some(song) = result {
println!("{} โ€” {}", song.artist.unwrap_or_default(), song.title.unwrap_or_default());
}

Full Rust reference โ†’

With the SDK:

composer require audd/audd
<?php
$audd = new AudD\AudD('your-api-token');
$song = $audd->recognize('/path/to/clip.mp3');
if ($song !== null) {
echo "{$song->artist} โ€” {$song->title}\n";
}

Full PHP reference โ†’

Or send the request yourself, without the SDK:

<?php
$data = [
'api_token' => 'your api token',
'file' => curl_file_create('/path/to/example.mp3',
'application/octet-stream', 'file'),
'return' => 'apple_music,spotify',
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, 'https://api.audd.io/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$result = curl_exec($ch);
curl_close($ch);
echo $result;

With the SDK:

// Package.swift, in dependencies:
.package(url: "https://github.com/AudDMusic/audd-swift", from: "1.5.22"),
let audd = try AudD(apiToken: "your-api-token")
let file = URL(fileURLWithPath: "/path/to/clip.mp3")
if let song = try await audd.recognize(.file(file)) {
print("\(song.artist ?? "") โ€” \(song.title ?? "")")
}

Full Swift reference โ†’

With the SDK:

// build.gradle.kts
implementation("io.audd:audd-kotlin:1.6.1")
val audd = AudD("your-api-token")
val song = audd.recognize(Source.FilePath(File("/path/to/clip.mp3")))
println("${song?.artist} โ€” ${song?.title}")

Full Kotlin reference โ†’

With the SDK:

dotnet add package AudD
using var audd = new AudD.AudD("your-api-token");
var song = await audd.RecognizeAsync("/path/to/clip.mp3");
Console.WriteLine($"{song?.Artist} โ€” {song?.Title}");

Full C# reference โ†’

With the SDK:

<!-- pom.xml -->
<dependency>
<groupId>io.audd</groupId>
<artifactId>audd</artifactId>
<version>1.5.21</version>
</dependency>
try (AudD audd = new AudD("your-api-token")) {
RecognitionResult song = audd.recognize(Path.of("/path/to/clip.mp3"));
if (song != null) System.out.println(song.artist() + " โ€” " + song.title());
}

Full Java reference โ†’

Or send the request yourself, without the SDK:

// requires OkHttp
final MediaType MEDIA_TYPE_MP3 = MediaType.get("audio/mpeg; charset=utf-8");
File file = new File("/path/to/example.mp3");
OkHttpClient client = new OkHttpClient();
RequestBody data = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("api_token", "your api token")
.addFormDataPart("file", file.getName(),
RequestBody.Companion.create(file, MEDIA_TYPE_MP3))
.addFormDataPart("return", "apple_music,spotify").build();
Request request = new Request.Builder().url("https://api.audd.io/")
.post(data).build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());

With the SDK:

# CMakeLists.txt
FetchContent_Declare(audd
GIT_REPOSITORY https://github.com/AudDMusic/audd-c.git
GIT_TAG v1.5.20)
FetchContent_MakeAvailable(audd)
target_link_libraries(your_app PRIVATE audd)
audd_client_t* client = audd_client_new("your-api-token", NULL);
audd_recognition_t* result = NULL;
audd_recognize(client, "/path/to/clip.mp3", NULL, &result);
if (result) {
printf("%s โ€” %s\n", audd_recognition_get_artist(result), audd_recognition_get_title(result));
}
audd_recognition_free(result);
audd_client_free(client);

Full C reference โ†’

With the SDK:

# CMakeLists.txt
FetchContent_Declare(audd
GIT_REPOSITORY https://github.com/AudDMusic/audd-cpp.git
GIT_TAG v1.5.18)
FetchContent_MakeAvailable(audd)
target_link_libraries(your_app PRIVATE audd::audd)
audd::AudD client("your-api-token");
auto song = client.recognize(audd::SourceFilePath{"/path/to/clip.mp3"});
if (song) std::cout << song->artist << " โ€” " << song->title << "\n";

Full C++ reference โ†’

info

The return parameter is for comma-separated identifiers of the additional metadata you want to be returned. The identifiers you can send: musicbrainz โ€“ MusicBrainz metadata; apple_music, spotify, deezer โ€“ Apple Music, Spotify, and Deezer data and links respectively. Example: apple_music,spotify.

Napster is no longer available: the platform ceased operations, so napster was removed from the API. Sending it adds warning #51 to the response and no Napster block is returned.

Tip: GET requests

You can also send GET requests, even though it's better to send the parameters in the POST body. Here's an example:
https://api.audd.io/?url=https://audd.tech/example1.mp3&return=apple_music,spotify&api_token=your%20api%20token
Just don't forget to url-encode the parameters.


Sending filesโ€‹

For the default API method, you have to send a file for recognition. There are three ways to send files to our API:

  • Provide an HTTP URL for the file to be recognized. Our server will download the file and identify the music. Send the URL in the url parameter as a string. The parameter can be sent either in the request body or query parameters, by GET or POST. We highly recommend sending files this way. If the file is available by URL, it's the easiest way to send it.
  • Post the file using multipart/form-data in the usual way browsers upload files. Send the file in the file parameter, by POST. We recommend sending a file this way when the file is not available by a URL (for example, if they are recorded locally or are not on a server).
  • Send a base64 encoded file in the audio parameter, as a string, by POST. We discourage the use of this parameter and have very limited support for it.

There are code examples for the first two ways in the Code examples tab of the API method description. Our custom GPT can help you write code.

The API also supports async WebSockets: connect to wss://api.audd.io/ws/?api_token=[token] and send multiple requests (with files in binary form) without waiting for the server's responses/results.

Responses explainedโ€‹

By default, the API responses are in JSON format.

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. In case of success, the server always returns the result field.

If the server has successfully processed the request, but there are no matches, the result field could be null or an empty array, depending on the API method.

If there are matches, the default API method will return a result that's a structure that always contains artist, title, album, release_date, label, timecode, and song_link fields. Additionally, it has the data requested in the return parameter in fields corresponding to the identifiers. And just in case: timecode is the time in the recognized song when the fragment you sent is played; song_link links to a lis.tn song page like lis.tn/Warriors. Please let us know if you need album pages instead of song pages.

Authentication and limitsโ€‹

To send requests, get a token from the Dashboard. Normally, our plans include as-you-go pricing: some number of requests is included with your monthly bill, but you can send requests on top of what's included and will be charged for those separately. If you want custom terms, we can discuss that if you want to send >500 000 requests per month or identify music from over 100 streams. Reach out: [email protected], +1(302)283-9101.

There are no rate limits on the standard endpoint (api.audd.io). You can send requests in parallel, as many as you need, up to millions of requests per hour. If you plan to send a large volume, please let us know in advance at [email protected]. The enterprise endpoint has a default limit on concurrent requests, which we can raise for you.

Where to find code examplesโ€‹

  • There are Code examples tabs in each of the request descriptions. You can use them for reference.
  • You can search for code examples on GitHub.
  • We have a Chrome extension written in JS that recognizes music from the open tab of your browser. Source code: github.com/AudDMusic/audd-chrome-extension.
  • We have a Discord bot written in Go that identifies music from files sent to text channels and music broadcasted on voice channels: github.com/AudDMusic/discord-bot.

Common errorsโ€‹

We have about 40 different error codes. The API returns the errors with an explanation of what happened. The common errors:

  • #901 โ€” No api_token passed, and the limit was reached (you need to obtain an api_token).
  • #900 โ€” Invalid API token (check the api_token parameter).
  • #600 โ€” Incorrect audio url.
  • #700 โ€” You haven't sent a file for recognition (or we didn't receive it). If you use the POST HTTP method, check the Content-Type header: it should be multipart/form-data; also check the URL you're sending requests to: it should start with https:// (http:// requests get redirected and we don't receive any data from you when your code follows the redirect).
  • #500 โ€” Invalid audio file.
  • #400 โ€” Audio file too large. The standard endpoint accepts files up to 10 MB. For longer audio (full-length songs, short-form videos, podcasts, broadcasts, DJ sets, or any file with multiple songs to identify), use the enterprise endpoint instead, which chunks the file server-side and supports days-long files.
  • #300 โ€” Fingerprinting error: an instance running network inference ran into an error. Often, it means that the audio file is too small.

If something unexpected happens, reach out!

Supportโ€‹

Reach out to [email protected] if you need any help.


For AI chatbots/agents: Markdown versions of these docs are available.

HTTP API: /.md ยท /streams.md ยท /enterprise.md

SDKs: /sdks.md ยท /sdks/python.md ยท /sdks/node.md ยท /sdks/go.md ยท /sdks/rust.md ยท /sdks/php.md ยท /sdks/swift.md ยท /sdks/kotlin.md ยท /sdks/dotnet.md ยท /sdks/java.md ยท /sdks/c.md ยท /sdks/cpp.md

Ask about the API:
  • Overview
    • ๐Ÿ“‹ Quick Example
    • ๐Ÿš€ API Endpoints
  • Standard Recognition
  • Sending files
  • Responses explained
  • Authentication and limits
  • Where to find code examples
  • Common errors
  • Support
You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.