Deezer API can discover from 30 million track by simply making REST api call. Whenever there is requirement to search for such sound list inside any mobile application we can use this Deezer api. For instance tiktok can search over millions of short soundtrack(30 seconds). If there is similar requirement arises we can use this api.
Features:
- Search By Sound track
- Search By Artist Name
- Search By Album Name
We can simply search for these things from one simple webservice call.
Requirements:
To access this API, we need to make account in rapid api by following below URL, which is FREE.
https://rapidapi.com/
Once registered with this, we can get access to thousand of free apis. Now we are ready to use Deezer api. We can search for Deezer api from search box now and start working with it.
In Rapid api console we can test for particular api. We can select different end point and through RapidAPI Project, and Header Parameters X-RapidAPI-Host & X-RapidAPI-Key we can test for api in console. Once you login to Rapid api these three fields will be auto populated. We just need to make a query using these details.
Final api call structure for GET request will be like this:
Requested URL : https://deezerdevs-deezer.p.rapidapi.com/search?q=PARAMETER
Header parameters:
X-RapidAPI-Host: VALUE OF X-RapidAPI-Host
X-RapidAPI-Key : VALUE OF X-RapidAPI-Key
Please note that, here requested URL should be pass as GET request and any song/artist/album which we need to search should be pass in “q” parameter. For instance,
https://deezerdevs-deezer.p.rapidapi.com/search?q=eminem
It wil give response in sound track along with artist and album array. Api also provide the total number of results and nextPageURL to support pagination.
Run this URL to get the results though dezzer API.