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

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

  •  15-06-2023
  •  | 
  •  

Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top