Difference between search results from the deezer api and the web site

StackOverflow https://stackoverflow.com/questions/22426077

  •  15-06-2023
  •  | 
  •  

Question

When performing a search using the Deezer API, the results obtained are the not the same as the ones obtained when performing the search from the Deezer web site.

Is there a way to obtain the same results as the web site using the API?

Était-ce utile?

La solution

Search results are localized based on the current user's country (IP based). If you query the website and the API from the same location, you'll get the same results.

You can override the country by passing a user token to the request to make sure you always get the same results.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top