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

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

  •  15-06-2023
  •  | 
  •  

質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top