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.