Deezer API

⭐ Beginner's Pick Music / OAuth Advanced HTTPS
Varies by plan (check documentation)

Overview

Deezer is a global music streaming API that gives you access to a catalog of over 90 million tracks, playlists, albums, and artist information. Public endpoints like search and chart lookups work without authentication, while personalized features such as user playlists use OAuth. It is a great choice for building music apps with rich metadata and editorial playlist support.

💡

Beginner Tip

Start with the public search endpoint which requires no OAuth token — just call the URL directly to explore the catalog. When you need user-specific data such as favorites or personal playlists, implement OAuth 2.0 and request only the permissions your app actually needs.

Available Data

track name and artist
album metadata
audio preview URLs
popularity score
genre classification
Use case: Integrate music data into web and mobile applications

Example Response

JSON Response
{
  "name": "Bohemian Rhapsody",
  "artist": "Queen",
  "album": "A Night at the Opera",
  "duration_ms": 354000,
  "popularity": 92,
  "preview_url": "https://p.scdn.co/mp3-preview/..."
}

Field Reference

data List of search results such as tracks, albums, or artists.
data[].id Unique Deezer ID for this track or entity, used for detailed lookups.
data[].title Title of the track.
data[].artist.name Name of the performing artist.
data[].preview URL to a 30-second MP3 preview of the track, playable without login.
total Total number of results matching the query across all pages.

Implementation Example

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://developers.deezer.com/api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "Authorization": "Bearer YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Quota exceeded Your IP or app has hit the API rate limit (50 requests per 5 seconds).
Add a short delay between requests and cache repeated lookups like artist or album details.
403 on user endpoints Attempting to access personal data without a valid OAuth access token.
Complete the Deezer OAuth 2.0 flow to obtain an access_token and append it as ?access_token=YOUR_TOKEN.
Empty search results Search syntax is too restrictive or artist/track name is misspelled.
Use simple keyword queries without field filters first (e.g., q=daft+punk) to verify results exist.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 3/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth OAuth
HTTPS REQUIRED
CORS UNKNOWN
Category Music
Difficulty Advanced
Verified: 2026-04-07

Alternatives to Deezer

Technical alternatives for different use cases.

B2B music API with streaming and download capabilities

Better For

Licensing music for commercial applications

Trade-off

Free developer access and prototyping

Listening statistics and similar artist recommendations

Better For

Music discovery based on listening habits

Trade-off

Official catalog data and audio playback

Larger catalog with audio features analysis and recommendations

Better For

Audio analysis, recommendations, and larger user base

Trade-off

Simple search without OAuth complexity

Similar APIs

View All →