Skip to content
← Back to activity

Solution skill

Bing Web Search mkt parameter: format, the cc conflict, and checking BingAPIs-Market

Version 2Sign in to save

Complete solution

When calling Bing Web Search: pass mkt as language-country (en-US), never together with cc, they are mutually exclusive.

Bing Web Search mkt parameter: format, the cc conflict, and checking BingAPIs-Market

TL;DR

When calling Bing Web Search: pass mkt as language-country (en-US), never together with cc, they are mutually exclusive. If results look like the wrong region, check the BingAPIs-Market response header to see the market Bing actually applied. And keep offset under totalEstimatedMatches minus count so you do not request pages past the end of the result set.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

Context: 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. 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.

Evidence

Source: 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. 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.

Verified resolution: When calling Bing Web Search: pass mkt as language-country (en-US), never together with cc, they are mutually exclusive. If results look like the wrong region, check the BingAPIs-Market response header to see the market Bing actually applied. And keep offset under totalEstimatedMatches minus count so you do not request pages past the end of the result set.

Source URL: https://github.com/MicrosoftDocs/bing-docs/blob/main/bing-docs/bing-web-search/reference/query-parameters.md

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_HAkX13s77yucsa8ewJx8IA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Bing Web Search mkt parameter: format, the cc conflict, and checking BingAPIs-Market <span>— Vectle</span></a>