2

The Bing search API is using my (or my server's) location even when I set the appropriate option. I would like it to provide a location agnostic response.

Am I misunderstanding the documentation? Is this syntax right?

http://api.bing.net/json.aspx?Appid=<XXX>&query=microsoft&sources=news&options=DisableLocationDetection

Thanks in advance

Massimiliano
  • 16,770
  • 10
  • 69
  • 112
hooks
  • 33
  • 3

1 Answers1

1

The syntax is right. According to the doc, the DisableLocationDetection option prevents Bing from inferring location from the query itself ("microsoft" in your example), but not from the properties of the request, such as server's IP.

News requests can specify LocationOverride parameter to get news from a particular US state. Also, if you're having troubles with automatic market detection (if your server is in another country, for example), you can specify Market parameter to override the market detection.

If this still doesn't help you, can you update the question to provide an example of a query which gives you the bad result?

Massimiliano
  • 16,770
  • 10
  • 69
  • 112