| title | Audius API Docs | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| toc_footers |
|
||||||||||||||||||||||||
| search | true | ||||||||||||||||||||||||
| language_tabs |
|
||||||||||||||||||||||||
| includes |
|
The Audius API is entirely free to use. We ask that you adhere to the guidelines in this doc and always credit artists.
Code Sample
curl https://api.audius.coGET https://api.audius.co HTTP/1.1const sample = (arr) => arr[Math.floor(Math.random() * arr.length)]
const host = await fetch('https://api.audius.co')
.then(r => r.json())
.then(j => j.data)
.then(d => sample(d))import random
import requests
host = random.choice((requests.get('https://api.audius.co')).json()['data'])Audius is a decentralized music streaming service. To use the API, you first select an API endpoint from the list of endpoints returned by:
Once you've selected a host, all API requests can be sent directly to it. We recommend selecting a host each time your application starts up as availability may change over time.
For the following documention, we've selected one for you:
AUDIUS_API_HOST
If you're integrating the Audius API into an app in production, we ask that you include an &app_name=<YOUR-UNIQUE-APP-NAME> param with each query. Your unique app name is entirely up to you!