Search⌘ K
AI Features

Explore Tracks and Update Them in User’s Favorites

Explore how to use Deezer API endpoints to find tracks by ID, add them to a user's favorites with POST requests, and remove them using DELETE requests. Understand how to retrieve and manage a list of favorite tracks securely using access tokens.

In this lesson, we will be using three different HTTP requests which are GET, POST, and DELETE. We will be using the HTTP requests to find a track, add a track to a user’s playlists or favorites, and delete tracks from the user’s playlists or favorites.

Find a track on Deezer

We can use this endpoint to find any song available on Deezer. We will need an access token for the track to be readable for the current user.

Endpoint to find details of the track
Endpoint to find details of the track

The base URL for this endpoint is:

https://api.deezer.com/track/id

The path parameter id, in the endpoint URL shown above, is to be ...