API Directory › 🎬 Movies, TV & Music › Deezer
No authHTTPSCORS

Deezer API

Music catalog data — tracks, albums, artists and charts.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Deezer docs ↗

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

https://api.deezer.com

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
curl -s "https://api.deezer.com/search?q=artist:\"Fela Kuti\""
curl -s "https://api.deezer.com/album/302127"
Python
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 / durationTrack ID, name, length in seconds
artist.name / album.titleRelated entities (nested)
previewURL of a 30-second MP3 preview
album.cover_medium / cover_bigCover art URLs

Common errors

error code 4Quota exceeded (50 req / 5 s) — slow down.
error code 800No data / unknown ID.
error code 300OAuth 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Movies, TV & Music APIs

← Back

More Movies, TV & Music APIs · All 196 APIs