Query with Geographic Location

This documentation explains how to specify a geographic location for your Bing searches using the SERP API. Bing uses a combination of cc and setLang parameters to localize search results.

Parameter for Geographic Locationarrow-up-right

The SERP API provides optional parameters for specifying the desired location and language for your Bing search:

These parameters influence the localization of search results and the language of the Bing interface used in the query.

Example

To customize your SERP API request with a specific geographic context, include the cc and setLang parameters in your GET request.

curl --location 'https://serp-api.netnut.io/search/get-html?siteType=bing&q=Netnut&setLang=en&cc=us&rawHtml=1&device=mobile' \
--header 'Authorization: Basic base64(username:password)'

Expected Result:

  • Search country is United States.

  • Results are returned in English .

  • Bing will simulate a user searching from Bing in the United States.


API Response Example

The API responds with a structured JSON containing the Bing SERP results localized based on the specified geographic context.

Last updated