> 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).

# 域名与区域设置

学习配置 domain 和 locale 参数，以抓取准确的 Amazon、Google 或 Bing 数据。

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

## **Amazon**

### 域名

使用 `域` 用于指定要抓取哪个 Amazon 站点的参数。

| 域名       | 站点       |
| -------- | -------- |
| `ae`     | 阿拉伯联合酋长国 |
| `ca`     | 加拿大      |
| `cn`     | 中国       |
| `co.jp`  | 日本       |
| `co.uk`  | 英国       |
| `com`    | 美国       |
| `com.au` | 澳大利亚     |
| `com.be` | 比利时      |
| `com.br` | 巴西       |
| `com.mx` | 墨西哥      |
| `com.tr` | 土耳其      |
| `de`     | 德国       |
| `eg`     | 埃及       |
| `es`     | 西班牙      |
| `fr`     | 法国       |
| `ie`     | 爱尔兰      |
| `位于`     | 印度       |
| `it`     | 意大利      |
| `nl`     | 荷兰       |
| `pl`     | 波兰       |
| `sa`     | 沙特阿拉伯    |
| `se`     | 瑞典       |
| `sg`     | 新加坡      |

### 区域语言

使用 `地区` 用于设置界面语言的参数。

并非所有 Amazon 站点都允许设置界面语言，而且各站点支持的语言不同。下表列出了支持的 `域` 和 `地区` 值组合。部分语言标记为默认值。如果你想使用默认界面语言，就无需发送 `地区` 参数。

| 域名       | 区域语言    | 界面语言        |
| -------- | ------- | ----------- |
| `ae`     | `en_AE` | 英语（英国）（默认）  |
| `ae`     | `ar_AE` | 阿拉伯语        |
| `ca`     | `fr_CA` | 法语          |
| `ca`     | `en_CA` | 英语（英国）（默认）  |
| `cn`     | `zh_CN` | 中文（简体，中国）   |
| `co.jp`  | `ja_JP` | 日语（默认）      |
| `co.jp`  | `en_US` | 英语（英国）      |
| `co.jp`  | `zh_CN` | 中文          |
| `co.uk`  | `en_GB` | 英语（英国）      |
| `com`    | `en_US` | 英语（英国）（默认）  |
| `com`    | `es_US` | 西班牙语        |
| `com`    | `ar_AE` | 阿拉伯语        |
| `com`    | `de_US` | 德语          |
| `com`    | `he_IL` | 希伯来语        |
| `com`    | `ko_KR` | 韩语          |
| `com`    | `pt_BR` | 葡萄牙语        |
| `com`    | `zh_CN` | 中文          |
| `com`    | `zh_TW` | 繁体中文（台湾）    |
| `com.au` | `en_AU` | 英语（澳大利亚）    |
| `com.be` | `fr_BE` | 法语          |
| `com.be` | `nl_BE` | 荷兰语         |
| `com.be` | `en_GB` | 英语（英国）      |
| `com.br` | `pt_BR` | 葡萄牙语（巴西）    |
| `com.mx` | `es_MX` | 西班牙语（墨西哥）   |
| `com.tr` | `tr_TR` | 土耳其语        |
| `de`     | `de_DE` | 德语（默认）      |
| `de`     | `en_GB` | 英语（英国）      |
| `de`     | `cs_CZ` | 捷克语         |
| `de`     | `nl_NL` | 荷兰语         |
| `de`     | `pl_PL` | 波兰语         |
| `de`     | `tr_TR` | 土耳其语        |
| `de`     | `da_DK` | 丹麦语         |
| `eg`     | `ar_AE` | 阿拉伯语（默认）    |
| `eg`     | `en_AE` | 英语（英国）      |
| `es`     | `es_ES` | 西班牙语（默认）    |
| `es`     | `pt_PT` | 葡萄牙语        |
| `es`     | `en_GB` | 英语（英国）      |
| `fr`     | `en_GB` | 英语（英国）      |
| `fr`     | `fr_FR` | 法语（默认）      |
| `ie`     | `en_IE` | 爱尔兰语（盖尔语）   |
| `位于`     | `en_IN` | 英语（英国）（默认）  |
| `位于`     | `hi_IN` | 印地语         |
| `位于`     | `ta_IN` | 泰米尔语        |
| `位于`     | `te_IN` | 泰卢固语        |
| `位于`     | `kn_IN` | 卡纳达语        |
| `位于`     | `ml_IN` | 马拉雅拉姆语      |
| `位于`     | `bn_IN` | 孟加拉语        |
| `位于`     | `mr_IN` | 马拉地语        |
| `it`     | `en_GB` | 英语（英国）      |
| `it`     | `it_IT` | 意大利语（默认）    |
| `nl`     | `nl_NL` | 荷兰语（默认）     |
| `nl`     | `en_GB` | 英语（英国）      |
| `pl`     | `pl_PL` | 波兰语（默认）     |
| `sa`     | `ar_AE` | 阿拉伯语（默认）    |
| `sa`     | `en_AE` | 英语（英国）      |
| `se`     | `sv_SE` | 瑞典语（默认）     |
| `se`     | `en_GB` | 英语（英国）      |
| `sg`     | `en_SG` | 英语（新加坡）（默认） |

## Google

### 区域语言 <a href="#locale" id="locale"></a>

使用 `地区` 用于设置的参数 **Google Search 网页界面语言**.

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

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

{% hint style="info" %}
下载完整的 `地区` 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
# locale 说明，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

### 区域语言

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

例如，如果你使用 domain `com` 和 locale 参数 `de-DE`，结果仍然会是美国的，但 `Accept-Language` 标头值将设置为 `de-DE,de;q=0.8`。这会模拟一位来自美国、在 `com` domain，其浏览器 UI 设为德语的人。

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

下载完整的 `地区` 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
