---
title: "Recognize songs and receive stream results in Zapier and Make"
description: "The same two AudD jobs in Zapier and in Make: send the URL of a short audio file with Webhooks by Zapier or Make's HTTP module and read the artist and title, and receive stream results with a Catch Hook or a Custom webhook set as the AudD callback URL, adding a Google Sheets row for every song."
slug: "/resources/integrations/zapier-make"
section: "integrations"
keywords: [audd, zapier, make, webhooks by zapier, catch hook, make http module, custom webhook, music recognition, stream callbacks, google sheets, no-code automation]
---

# Recognize songs and receive stream results in Zapier and Make

With Zapier or Make, you can send the URL of an audio file to AudD and receive the recognition results from your streams in your automations. This guide does the same two jobs in both of them, so you can compare:

1. **Recognize a file.** You send us the URL of a short audio file, and we send you back the song.
2. **Receive stream results.** You send us the URLs of radio streams, and we send you the recognition results in real time, to a webhook that adds a row to Google Sheets for every song.

Here's an example of the request that the Zapier and Make steps send, as a curl command: a POST to `https://api.audd.io/` with two form fields, `api_token` and `url`.

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

If there are matches, the response contains the song in `result`:

```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"
  }
}
```

See [Recognition result fields](/resources/reference/result-fields) for what each field means. If you use n8n, see [Recognize songs and receive stream results in n8n](/resources/integrations/n8n), which also has workflows you can import.

## Before you start

To send requests, get a token from the [Dashboard](https://dashboard.audd.io). The `test` token works for the first job, but it's limited to 10 requests a day on the standard endpoint, and the streams methods don't accept it. For the second job, you'll need a stream: the music recognition costs $45 per audio stream per month with our music DB, and new accounts that get the free trial may also get a 3-day trial of one stream.

The standard endpoint accepts uploaded files up to 10 MB and analyzes up to the first 12 seconds of audio. If you need to recognize larger audio files, use the enterprise endpoint instead: see [Long recordings](#long-recordings-the-enterprise-endpoint) below.

## When `result` is null, and when there's an error

```json
{
  "status": "success",
  "result": null
}
```

If the server has successfully processed the request, but there are no matches, `status` is `success` and `result` is `null`. Please note that it isn't an error: it means that the request went fine and we didn't find any match. So the step that sends the request succeeds, and you need a branch for it in both automations.

```json
{
  "status": "error",
  "error": {
    "error_code": 900,
    "error_message": "Recognition failed: authorization failed: the provided api_token is incorrect, invalid, or inactive. Please check the status of your account on dashboard.audd.io: it needs to have either a trial or an active subscription."
  }
}
```

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 errors come with the HTTP status 200 too, so the step that sends the request succeeds, and the body has an `error` object with the `error_code` and the `error_message`. We have about 40 different error codes, and the API returns the errors with an explanation of what happened. If you want to know more about a code, see the [error codes reference](/resources/reference/errors), where they're grouped by category.

## Zapier

Webhooks by Zapier is available on paid plans only: Professional, Team and Enterprise. The Free plan only allows two-step Zap workflows, with one trigger and one action, and the Zaps below have more steps, so you'll need a paid plan.

### Recognize a file with Webhooks by Zapier

The Zap starts with the trigger of the app where you get the files, like a new row in a spreadsheet. The Webhooks by Zapier step after it has the following settings:

| Field | Value |
|---|---|
| Event | POST |
| Payload Type | Form |
| URL | `https://api.audd.io/` |
| Data | `url`: the URL of the file from the trigger (`https://audd.tech/example.mp3` to try it) |
| Data | `api_token`: your API token |

The POST method includes automatic data parsing, so after you click Test step, you'll see the fields of our response: the `artist` and the `title` are inside `result`. Map them into the next steps like any other field.

If using authentication, Webhooks by Zapier only supports basic authentication, so the token has to be in the Data section, where anyone who opens the Zap can see it. API by Zapier stores the credentials in an app connection instead: choose Query Parameter (API key), enter `api_token` as the Query parameter name and your token as the API key, and enter `api.audd.io` in the Domain filter. Then use its API Request action with the Method set to GET, the URL `https://api.audd.io/`, and `url` in the Query String Parameters. API by Zapier is a beta feature, and it needs a paid Zapier account.

### Branch on the result with Paths

The Paths step after the request has the following settings:

| Path | Rules |
|---|---|
| Path A (match) | `artist` from `result` Exists |
| Path B (no match) | `status` (Text) Exactly matches `success`, and `artist` from `result` Does not exist |
| Fallback (error) | none: it runs if no other path branch's rules are met |

Put the steps that use the song in Path A. If you match the songs against your own custom catalog, use `audio_id` instead of `artist`: we only know the `audio_id` of your songs. In the Fallback branch, the `error_message` from `error` says what happened.

### Receive stream results with Catch Hook

Add a Webhooks by Zapier trigger with these settings:

| Field | Value |
|---|---|
| Event | Catch Hook |
| Pick Off A Child Key | leave it empty |

In the Test tab, you'll see your webhook URL; click Copy. Zapier responds with 200 to the requests to a live webhook URL, and that's exactly what we need. To give Zapier some data to work with, send it a sample callback from a terminal, then click Test trigger:

```bash
HOOK_URL='paste the webhook URL here'

curl -X POST "$HOOK_URL" \
  -H 'Content-Type: application/json' \
  -d '{"status":"success","result":{"radio_id":7,"timestamp":"2020-04-13 10:31:43","play_length":111,"results":[{"artist":"Alan Walker, A$AP Rocky","title":"Live Fast (PUBGM)","album":"Live Fast (PUBGM)","release_date":"2019-07-25","label":"MER Recordings","score":100,"song_link":"https://lis.tn/LiveFastPUBGM"}]}}'
```

Zapier will separate each field in your webhook data, so you can map `radio_id`, `timestamp`, and the songs in `results` in the next steps. The Zap has three more steps:

| Step | Settings |
|---|---|
| Filter | `radio_id` from `result` Exists |
| Looping by Zapier | Create Loop From Line Items |
| Google Sheets | Create Spreadsheet Row |

You'll receive callbacks with results and with notifications, and the Filter stops the notifications. There can be several songs in one callback, so the loop runs the Google Sheets step once for each song. In Values to Loop, map `artist`, `title`, and `song_link` from `results`: hover on the field and click Get all values. In the Google Sheets step, map `radio_id`, `timestamp`, and `play_length` from the trigger, and the three song fields from the loop. Looping by Zapier is in open beta. If you also want to know about stream problems, use Paths instead of the Filter, with a second path for `notification_code` from `notification`. When the Zap works with the sample, publish it and set the webhook URL as your callback URL (see [Set the callback URL](#set-the-callback-url-in-audd) below).

Please keep in mind that we send one result for every new song, and every row the Google Sheets step adds uses a task. Triggers, filters and loops don't count. So check how many tasks your plan includes before you add a busy stream.

### When the Zap is turned off

For Catch Hook triggers, if your Zap is turned off or deleted, Zapier will return a 404 response. However, there is a system update delay of up to several hours before the 404 response takes effect, during which the URL will continue to return a 200 response. If your server doesn't respond to the callbacks with the 200 OK status or we can't connect to your server, we'll put the callbacks in a queue, and when your server is back online, we'll gradually send all of the backlog. So the callbacks we send while Zapier still answers 200 aren't queued, and we won't send them again. The ones that get the 404 are queued, and you'll receive them after you turn the Zap back on.

To change the Zap, you don't need to turn it off: Zapier saves Zap workflows in progress as drafts without interrupting the running ones. Also note that the webhook URL changes if the Zap is transferred to another user, and then you have to set the new one as your callback URL.

## Make

### Recognize a file with HTTP > Make a request

Make recommends defining the authentication details in the Credentials field for security reasons, so the token goes into a keychain. The Make a request module has the following settings:

| Field | Value |
|---|---|
| Authentication type | API key |
| Credentials | a new keychain |
| Key (in the keychain) | your API token |
| API key placement (in the keychain) | in the query parameters |
| API key parameter name (in the keychain) | `api_token` |
| Allowed service origins (in the keychain) | `https://api.audd.io` |
| URL | `https://api.audd.io/` |
| Method | POST |
| Body content type | multipart/form-data |
| Body content | Text: `url`, the URL of the file (`https://audd.tech/example.mp3` to try it) |
| Parse response | Yes |

While you try it, the HTTP module can be the only module in the scenario. Click Run once, and you'll see our response in the output of the module, with the `artist` and the `title` inside `result`. Then you can put the module that gives you the files in front of it and map its URL into the `url` field. Please don't turn the scenario ON before that: by default, a scenario runs every 15 minutes, and we'd receive a request from every run.

### Branch on the result with a Router

The Router after the HTTP module has the following routes:

| Route | Filter |
|---|---|
| Match | `artist` (in `result`) Exists |
| Error | `error_code` (in `error`) Exists |
| No match | fallback route (click the route, select Yes, and click Save) |

Routes are processed in order. Put the modules that use the song on the Match route; the fallback route gets the data that doesn't fit the other routes, which here means the files we didn't recognize. If you match the songs against your own custom catalog, use `audio_id` instead of `artist`: we only know the `audio_id` of your songs.

### Receive stream results with a Custom webhook

Start a new scenario with the Custom webhook module of the Webhooks app. Next to the Webhook dropdown, click Add, enter a name, and click Save: Make generates a URL and starts listening for requests. Copy the URL and click Run once. The module will wait for the webhook call, so send it the sample callback below. Then the module knows the structure of our callbacks, and the next modules can map its fields.

```bash
HOOK_URL='paste the webhook URL here'

curl -X POST "$HOOK_URL" \
  -H 'Content-Type: application/json' \
  -d '{"status":"success","result":{"radio_id":7,"timestamp":"2020-04-13 10:31:43","play_length":111,"results":[{"artist":"Alan Walker, A$AP Rocky","title":"Live Fast (PUBGM)","album":"Live Fast (PUBGM)","release_date":"2019-07-25","label":"MER Recordings","score":100,"song_link":"https://lis.tn/LiveFastPUBGM"}]}}'
```

Here are the modules after it:

| Module | Settings |
|---|---|
| Router, route "Song" | filter: `radio_id` (in `result`) Exists |
| Iterator | Array: `results[]` (in `result`) |
| Google Sheets > Add a Row | Table contains headers: Yes |
| Router, route "Notification" | fallback route |

You'll receive callbacks with results and with notifications. There can be several songs in one callback, and the Iterator converts the array into a series of bundles, so Google Sheets gets one row for each song. In Add a Row, map `radio_id`, `timestamp`, and `play_length` from the webhook, and `artist`, `title`, and `song_link` from the Iterator. Put the module that sends you an alert on the Notification route. If something happens to an audio stream, we'll let you know by sending a notification so you can fix the stream or change its URL: there are 3 codes, `0` (everything's fine), `650` (we can't connect to the stream), and `651` (only white noise). For what to do about them, see [Stream health](/resources/concepts/stream-health). When the scenario works with the sample, turn it ON. Since the Custom webhook is an instant trigger, Make runs the scenario immediately as data arrives, and you don't need a schedule.

Without a Webhook response module, Make responds with 200 and "Accepted" as soon as the request is accepted in the queue, and that's exactly what we need, so you don't have to add one. Then set the webhook URL as your callback URL (see the next section).

### When the scenario is off

While the scenario is inactive (set to OFF), the webhook is still listening. Make keeps responding with 200 and stores the requests in the webhook queue, and if you activate the scenario, Make will ask you whether to delete old data in the queue or to process it. So nothing is lost if you choose to process it, as long as the queue isn't full.

There are two cases when Make doesn't respond with 200. When the webhook queue is full, Make rejects all incoming webhook data which is over the limit, with the status 400. And Make deactivates the webhooks that are not connected to any scenario for more than 5 days; they return 410 Gone. In both cases, we'll put the callbacks in our queue, and you'll receive them when the webhook responds with 200 again. If you turn the webhook itself OFF, it isn't listening to any requests, and the data sent to it won't be stored.

## Set the callback URL in AudD

Set the URL for callbacks using the `setCallbackUrl` API method:

```bash
curl https://api.audd.io/setCallbackUrl/ \
  -F api_token=your-api-token \
  -F url='paste the webhook URL here'
```

You can also set it with the [AudD CLI](https://docs.audd.io/cli), `audd streams callback set 'paste the webhook URL here'`, or in the [web interface](https://audd.io/streams/). There is no per-stream callback URL: the callbacks from all the streams will be sent to the specified URL. If you already receive callbacks somewhere else, the new URL replaces the old one, so the sheet will get the songs from every stream on the account. The `radio_id` in each row tells you which stream it was.

If you haven't added a stream yet, add one with the `addStream` API method or with `audd streams add https://npr-ice.streamguys1.com/live.mp3 --id 1`. You'll receive the first result seconds or minutes after you add the stream, and then one result for every new song. By default, we will send new results after songs end playing, with the played time in `play_length`. When we send a backlog from our queue, the rows can arrive late and out of order, so use the `timestamp` in each row instead of the time the row was added.

> **Note.** The samples above are sent as `application/json`, and we don't document the Content-Type of our callbacks. If you don't see the fields of a real callback in Zapier, select the Catch Raw Hook event: the request body will be unparsed and also include headers, and you can parse it with Code by Zapier. In Make, the webhook's Logs show the headers and the body of every request; if the fields are missing, turn on JSON pass-through in the webhook's settings and parse the text with JSON > Parse JSON.

The callbacks aren't signed, so anyone who knows the webhook URL can send a fake result to it. Please don't share it or post screenshots that show it. If someone else got the URL, create a new webhook (in Zapier, every Zap with a Catch Hook has its own URL) and send us its URL using the `setCallbackUrl` method. For more information, see [Securing your callback endpoint](/resources/concepts/securing-your-callback-endpoint).

## Long recordings: the enterprise endpoint

The standard endpoint is for a short clip with one song. For whole songs, mixes, podcasts, and other long files, send the same request to `https://enterprise.audd.io/` (in Make, add `https://enterprise.audd.io` to the Allowed service origins of the keychain; in API by Zapier, to the Domain filter). We count requests to the enterprise endpoint as 1 request per 12 seconds of audio: when you send a file, our servers consider it to be a group of 12-second-long audio chunks.

If you don't want every one of these chunks to be recognized and counted as the requests, send the `limit` field: the upper bound for the number of chunks the server will recognize. With `limit` set to `5`, a file uses at most 5 requests, however long it is. In an automation that runs on every new file, always set it. To choose `limit`, `skip`, and `every`, see [Controlling enterprise endpoint cost](/resources/concepts/enterprise-cost-control).

On the free trial, you can upload files to the enterprise endpoint, but sending it a URL needs a paid plan. In Make, add the file from the previous module to the multipart/form-data body as a File, with the name `file`. The response is different: `result` is a list of 12-second fragments with the `songs` in each, and the list is empty if there are no matches. On a long file, the request can take minutes; in Make's HTTP module, the Timeout can be set to 300 seconds at most.

---

**Related**

- [Recognize songs and receive stream results in n8n](/resources/integrations/n8n)
- [Webhook callbacks vs longpoll for stream results](/resources/concepts/callback-vs-longpoll)
- [Stream callback and longpoll payload reference](/resources/reference/streams-callback-shape)
- [Securing your callback endpoint](/resources/concepts/securing-your-callback-endpoint)
- [Run AudD music recognition in a Cloudflare Worker](/resources/integrations/cloudflare-workers)
- [Streams docs](https://docs.audd.io/streams)

## 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.
