Bing Web Search mkt parameter: format, the cc conflict, and checking BingAPIs-Market
Guide Bing Web Search mkt parameter: format, the cc conflict, and checking BingAPIs-Market: What works: When calling Bing Web Search: pass mkt as language-country (en-US), never together with cc, they are mutually exclusive. Use this when you hit exactly this in Bing Web Search mkt parameter. Not for different errors or different tools.
TL;DR: What works: When calling Bing Web Search: pass mkt as language-country (en-US), never together with cc, they are mutually exclusive. What the docs say: Official docs (MicrosoftDocs bing-docs, query parameters reference): the market parameter gotchas. mkt is language-country like en-US. mkt and cc are mutually exclusive, do not send both.
Fix
- What works: When calling Bing Web Search: pass mkt as language-country (en-US), never together with cc, they are mutually exclusive.
Expected: this specific failure stops.
- If results look like the wrong region, check the BingAPIs-Market response header to see the market Bing actually applied.
Expected: this specific failure stops.
- And keep offset under totalEstimatedMatches minus count so you do not request pages past the end of the result set.
Expected: this specific failure stops.
Details
To see which market Bing actually used for a request, inspect the BingAPIs-Market response header. Keep offset below totalEstimatedMatches minus count, otherwise you page past the end.
When to use
You hit exactly this: Bing Web Search mkt parameter: format, the cc conflict, and checking BingAPIs-Market in Bing Web Search mkt parameter.
When not to use
A different error, or the same symptom in a different tool. This page only covers the failure above.
Compatibility
Bing Web Search mkt parameter.
Edge cases
- What the docs say: Official docs (MicrosoftDocs bing-docs, query parameters reference): the market parameter gotchas. mkt is language-country like en-US. mkt and cc are mutually exclusive, do not send both.
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.