Deezer API
Music catalog data — tracks, albums, artists and charts.
What it does
The Deezer API exposes its music catalogue: tracks, albums, artists, playlists, radios, genres and charts, with 30-second preview URLs. Public catalogue endpoints need no authentication; user library and playlist editing use OAuth.
Base URL
Authentication
None for public catalogue reads — call /track/{id}, /artist/{id}, /search?q= directly. User-scoped actions require OAuth 2.0 with an app registered on the Deezer developer portal.
Code examples
curl -s "https://api.deezer.com/search?q=artist:\"Fela Kuti\"" curl -s "https://api.deezer.com/album/302127"
import requests
r = requests.get("https://api.deezer.com/search",
params={"q": "Tame Impala"}, timeout=10)
for t in r.json()["data"][:5]:
print(t["title"], "-", t["artist"]["name"], t.get("preview"))Rate limits & quotas
Around 50 requests every 5 seconds per IP on the public API; over that returns a JSON error with code 4 (“Quota limit exceeded”). Preview URLs are short-lived MP3s. Some regions and newer developer accounts have restricted access — check that your app is approved.
Key response fields
| data[] | Result array for search and list endpoints |
| id / title / duration | Track ID, name, length in seconds |
| artist.name / album.title | Related entities (nested) |
| preview | URL of a 30-second MP3 preview |
| album.cover_medium / cover_big | Cover art URLs |
Common errors
| error code 4 | Quota exceeded (50 req / 5 s) — slow down. |
| error code 800 | No data / unknown ID. |
| error code 300 | OAuth token invalid or expired (user endpoints). |
| (empty data) | The query matched nothing — check your search syntax. |
When to use it (and alternatives)
A quick, key-less way to get track metadata, cover art and previews for search UIs and music widgets. For account-linked playback use Spotify; for Apple-ecosystem metadata and podcast/app data use iTunes Search.
FAQ
Do I need an API key for Deezer search?
No — the public catalogue endpoints (search, track, album, artist, chart) work with no key. Only user library/playlist actions need OAuth.
How long do preview URLs last?
They are signed and expire after a while. Fetch them fresh when you are about to play, rather than caching them long-term.
Can I use advanced search filters?
Yes — the q parameter supports fields like artist:"name", album:"name", track:"name", dur_min, bpm_min and boolean operators.
New to APIs?
Short guides for working with this API — and any other.