> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/products/cn/web-scraper-api/features/localization/domain-locale.md).

# 域名和区域设置

了解如何配置域名和区域设置参数，以抓取准确的 Amazon、Google 或 Bing 数据。

本页面指导你配置用于抓取 Google 和 Bing 的内容本地化参数。这些设置可帮助自定义市场或顶级域名（TLD）以及搜索结果，以便准确提取特定地区的数据。

## Google

### 区域设置 <a href="#locale" id="locale"></a>

使用 `locale` 参数来设置 **Google Search 网页界面语言**.

例如，如果你的目标是 `com` 域名和 locale 参数 `de-DE`，结果仍然会是美国的，但 `Accept-Language` 请求头值将设置为 `de-DE,de;q=0.8`。这会模拟一位来自美国、在 `com` 域名下搜索、且其浏览器界面语言设为德语的人。

如果你不使用此参数，我们将把 'Accept-Language' 参数设置为与域名匹配（即 `en-US` 用于 `com`).

{% hint style="info" %}
下载完整的 `locale` JSON 格式的值 [**这里**](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FMbRF7bRXDzhafjKUjKdx%2Flocale.json?alt=media\&token=a724fd1b-6a16-42b3-ab02-7df0299ec64b).
{% endhint %}

下面是 locale 值示例：

```shell
# 区域设置说明，domain: domain-extension

"locale":
    "en-ai", # 安圭拉 - 英语，domain: com.ai
    "es-pr", # 波多黎各 - 西班牙语，domain: com.pr
    "nl-sr", # 苏里南 - 荷兰语，domain: sr
    "fr-ml", # 马里 - 法语，domain: ml
    "en-lb", # 黎巴嫩 - 英语，domain: com.lb
    "fr-bf", # 布基纳法索 - 法语，domain: bf
    "en-fm", # 密克罗尼西亚联邦 - 英语，domain: fm
    "es-mx", # 墨西哥 - 西班牙语，domain: com.mx
    "fr-bj", # 贝宁 - 法语，domain: bj
    "ru-ee", # 爱沙尼亚 - 俄语，domain: ee
    "en-mv", # 马尔代夫 - 英语，domain: mv
```

## Bing

### 区域设置

使用 `locale` 参数可让你更改 Bing 搜索页面的网页界面语言（不是结果）。

例如，如果你使用该域名 `com` 和 locale 参数 `de-DE`，结果仍然会是美国的，但 `Accept-Language` 请求头值将设置为 `de-DE,de;q=0.8`。这会模拟一位来自美国、在 `com` 域名下搜索、且其浏览器界面语言设为德语的人。

如果你不使用此参数，我们将把 'Accept-Language' 参数设置为与域名匹配（即 `en-US` 用于 `com`).

下载完整的 `locale` JSON 格式的值 [这里](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FMbRF7bRXDzhafjKUjKdx%2Flocale.json?alt=media\&token=a724fd1b-6a16-42b3-ab02-7df0299ec64b).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/products/cn/web-scraper-api/features/localization/domain-locale.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
