# 域名和区域设置

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

## **Amazon**

### 域

使用 `domain` 用于指定你想抓取哪个 Amazon marketplace 的参数。

| 域        | Marketplace |
| -------- | ----------- |
| `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`     | 新加坡         |

### 区域设置

使用 `locale` 用于设置界面语言的参数。&#x20;

并非所有 Amazon marketplace 都允许设置界面语言，而且不同 marketplace 支持的语言也不同。下表列出了受支持的 `domain` 和 `locale` 值组合。其中一些语言标记为默认值。如果你想获取默认界面语言，则无需发送 `locale` 参数。

| 域        | 区域设置    | 界面语言        |
| -------- | ------- | ----------- |
| `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>

使用 `locale` 用于设置 **Google Search 网页界面语言**.&#x20;

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

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

{% 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 %}

下面是区域设置值的示例：&#x20;

```shell
# 区域设置说明，域：域扩展名

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

## Bing

### 区域设置

使用 `locale` 参数将允许你更改 Bing 搜索页面网页界面语言（不是结果）。&#x20;

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

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

下载完整的 `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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
