Deezer

Deezer

Music

The API is the easiest way to integrate music data in your website and application. Unlimited Access, without stress, without identification. Deezer Simple API provides a nice set of services to build up web applications allowing the discovery of Deezer's music catalogue.

Visit APIπŸ” Alternatives

πŸ“š Documentation & Examples

Everything you need to integrate with Deezer

πŸš€ Quick Start Examples

Deezer Javascript Examplejavascript
// Deezer API Example
const response = await fetch('https://developers.deezer.com/api', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Deezer API Documentation

Deezer API is a public API that allows developers to access the Deezer music platform's data and functionality. With Deezer API, developers can create third-party applications that allow users to search, stream and organize music on the Deezer platform.

How to Get a Deezer API Key

For most uses, you don't need a key at all. Deezer's public catalog endpoints β€” search, plus the /track, /album, /artist, /playlist and /chart resources β€” return JSON with no authentication:

curl "https://api.deezer.com/search?q=daft%20punk"

You only need credentials for user-specific data (a person's favorites, their playlists, or posting on their behalf), which uses OAuth 2.0. To set that up:

  1. Sign in at developers.deezer.com and open My Apps.
  2. Click Create a new Application and fill in the name, domain and redirect URL.
  3. Deezer issues an Application ID and Secret Key for the OAuth flow.
  4. Redirect users to https://connect.deezer.com/oauth/auth.php with the permissions you need, then exchange the returned code for an access token.

In short: public music metadata is open and keyless, and OAuth is only for reaching a specific user's account.

Search API

The Deezer Search API allows developers to search for tracks, artists, albums, playlists, podcasts and radio channels on the Deezer platform.

// Search example

const query = 'love';
const search_type = 'track';

fetch(`https://api.deezer.com/search/${search_type}?q=${query}`)
  .then(response => response.json())
  .then(data => {
    console.log(data); // returns search results in JSON format  
  });

Track API

The Deezer Track API allows developers to retrieve details about tracks on the Deezer platform, such as the song title, artist, album, genre, duration, and cover art.

// Track example 

const track_id = 3135556;

fetch(`https://api.deezer.com/track/${track_id}`)
  .then(response => response.json())
  .then(data => {
    console.log(data); // returns track details in JSON format
  });

Playlist API

The Deezer Playlist API allows developers to retrieve details about playlists on the Deezer platform, such as the playlist title, creator, fans, number of tracks, and cover art.

// Playlist example 

const playlist_id = 908622995;

fetch(`https://api.deezer.com/playlist/${playlist_id}`)
  .then(response => response.json())
  .then(data => {
    console.log(data); // returns playlist details in JSON format
  });

Artist API

The Deezer Artist API allows developers to retrieve details about artists on the Deezer platform, such as the artist name, genre, biography, fans, and albums.

// Artist example 

const artist_id = 27;

fetch(`https://api.deezer.com/artist/${artist_id}`)
  .then(response => response.json())
  .then(data => {
    console.log(data); // returns artist details in JSON format
  });

Conclusion

Deezer API provides developers with an interface to access and integrate the Deezer music platform's data and functionality seamlessly into their applications. By leveraging Deezer API, you can create amazing music-based applications that improve the user experience and drive greater engagement.

Explore More

Best Deezer alternatives (2026)Best Music APIs

Related APIs in Music