Production checklist
Go through this list before you launch an AudD integration: the API token, no-match and error handling, retries and timeouts, the enterprise limit, stream callbacks and notifications, usage and a hard monthly cap, what to log, and where to ask for help. Each item links to the page that explains it.
We’ve put together a list of things to check before you go live with the AudD API. Each item links to the page that explains it in more detail. Everyone’s needs are different, so feel free to skip the items that don’t apply to you, such as the streams section if you don’t use streams.
The API token
-
Keep the token on your server. Please don’t include your API tokens in the client-side software: if you put your token in an app, anyone who has a copy of the app can use it. See Keeping your API token on the server.
-
Read the token from an environment variable or a secret store, not from a file in your repository.
-
Know how to rotate the token: in the dashboard, with
audd token rotate, or through the MCP server. Note that the old token stops working right away. -
Don’t use the
testtoken in production. It’s limited to 10 requests a day on the standard endpoint.
Results and errors
-
Handle
result: null. If the server has successfully processed the request, but there are no matches, theresultfield could benullor an empty array, depending on the method. See Testing your integration. -
If something unexpected happens, the SDK raises an error with the
error_codeand the explanation from the response. The error reference groups the codes by what you do about them. -
Expect errors that aren’t JSON, too. A
413,502,503or504comes from the network in front of the API, and the body may be HTML or empty. The SDKs raise it as a server error with the HTTP status.
Retries and timeouts
-
Note that requests that time out or that you cancel might still be counted, so please don’t retry in a loop of your own. The SDK already sends a recognition request again if the server returns a
5xx. See Retries: what’s safe to retry. -
Custom catalog uploads are never retried automatically. If an upload fails, check the error before you send it again.
-
If you pass your own HTTP client to the Python or Go SDK, set the timeouts on it; see Testing your integration. By default, the Python, Node and Go SDKs wait 60 seconds on the standard endpoint and an hour on the enterprise endpoint.
Clips and volume
-
Send short clips to the standard endpoint: it accepts files up to 10 MB, and it analyzes up to the first 12 seconds of audio. For longer audio, use the enterprise endpoint. To cut a clip, see Cut and convert audio clips for recognition with ffmpeg, and for the other limits, see AudD API limits.
-
Tell us about a big launch. There are no rate limits on the standard endpoint, but 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.
The enterprise endpoint
-
Please set a
limiton every call to the enterprise endpoint, and especially on files your users upload. We count requests to the enterprise endpoint as 1 request per 12 seconds of audio, so a long file without alimitis scanned to the end. Use a smalllimitwhile you develop, and choose the production value on purpose. See Controlling enterprise endpoint cost. -
Know what a file costs: a 60-minute file is 300 requests. The
skipandeveryparameters scan only part of a file. -
Store the results instead of scanning a file again: every scan is counted again.
-
On the free trial, send files to the enterprise endpoint, not URLs. Music recognition by URL on the enterprise endpoint is only available to paid users, and you’ll get error
904.
Streams
-
Respond with
200 OKfirst, and do the work after. 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. See Securing your stream callback endpoint. -
Put a long random secret in the callback URL, and use HTTPS. Callbacks aren’t signed, so the secret is how your receiver tells our requests from anyone else’s.
-
Make a repeated callback harmless. If our servers don’t get your
200 OK, the same result can arrive again, so treat theradio_id, thetimestampand the song as the identity of a result. -
Handle the notifications. There are 3 codes:
0(which means that everything’s fine),650(which means that we can’t connect to the stream) and651(which means that we don’t receive any music from the stream, only white noise). See Stream health. -
Watch
stream_runningin thegetStreamsresponse: it’sfalsefor a stream that isn’t being recognized right now. -
Handle the stream limit. At the limit,
addStreamreturns error902, so check for902and610there. -
Use the
getCallbackUrlmethod to get the current callback URL. If you tested your receiver through a tunnel, make sure that it’s your production URL again. See Test stream callbacks locally. -
If you use longpoll, for example for a widget, set a callback URL too:
https://audd.tech/empty/if you don’t have one. See Webhook callbacks vs longpoll.
Usage and billing
-
You can see how many requests you’ve used in the dashboard, or with
audd usagein the CLI. The MCP server has aget_usage_statstool too, andaudd usage --check --min-remaining 1000exits with code 8 when fewer than 1,000 requests remain, for a cron job. -
Do you need a hard monthly cap on requests? Let us know at [email protected], and we’ll set one on your account.
-
Requests beyond a plan’s included amount cost the same per 1,000 as the included ones, normally billed at the end of the billing period. See the pricing page.
Logs and support
-
Log the time, the method, the
error_code, theerror_messageand the HTTP status of a failed call. Our API doesn’t send a request ID with ordinary responses, so therequest_idon SDK errors is empty. Never log the token. -
To log every call, pass an
on_eventhook (onEventin Node) to the SDK. It gets the method, the HTTP status and how long each request took, and never the token. -
If something unexpected happens, reach out: [email protected].
Related
Reading this as an AI agent? The raw Markdown is at concepts/production-checklist.md, and the full index is /resources/llms.txt.
