> ## Documentation Index
> Fetch the complete documentation index at: https://help.decodo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 本地化

> 网页抓取 API 本地化参数

<Danger>
  核心版和高级版套餐已停止销售。请考虑迁移到一体化网络爬虫 API；[请点击此处查看指南](https://help.decodo.com/docs/cn/web-scraping-api-migration-guide).
</Danger>

## 域名

指定顶级域名。

| 参数       | 默认值   | 示例                     |
| :------- | :---- | :--------------------- |
| `domain` | `com` | `com`, `co.uk`, `fr` 等 |

Google 不支持 `domain` 参数，请改用 `geo`。

## 区域设置

| 参数           | 标头名称  | 示例               |
| ------------ | ----- | ---------------- |
| **`locale`** | `N/A` | `en-GB`, `en-US` |

* **Advanced** 计划支持。
* 这将更改搜索页面网页界面语言（而非结果）。
* 您可以在[**此处**](https://help.decodo.com/docs/cn/web-scraping-api-amazon-locale-deprecated)找到专门针对 **Amazon** 的完整区域设置参数列表及其配对的域名参数。

## 地理位置

| 参数        | 标头名称           | 示例              |
| --------- | -------------- | --------------- |
| **`geo`** | `X-Decodo-Geo` | `United States` |

* **Advanced** 和 **Core** 计划支持
* 结果所依赖的地理位置。（仅限 [**Google 地理定位**](https://help.decodo.com/docs/cn/web-scraping-api-google-geolocation-deprecated)）：
  * 城市位置名称
  * 州名
  * 国家名称
  * 坐标和半径
  * Google 的规范位置名称。在[**此处**](https://developers.google.com/google-ads/api/data/geotargets)了解更多信息。
* ⚠️ 提供国家名称时，必须使用首字母大写格式：
  * 错误：`united states`。
  * 正确：`United States`。

### 地理位置参数位置

<Expandable title="Core 计划可用的地理位置参数：">
  <Columns cols={3}>
    <Column>
      * Canada
      * France
      * Germany
    </Column>

    <Column>
      * Japan
      * Netherlands
      * Romania
    </Column>

    <Column>
      * United Kingdom
      * United States
    </Column>
  </Columns>
</Expandable>

<Expandable title="Advanced 计划可用的地理位置参数：">
  <Columns cols={3}>
    <Column>
      * Afghanistan
      * Albania
      * Algeria
      * Andorra
      * Antarctica
      * Argentina
      * Armenia
      * Australia
      * Austria
      * Azerbaijan
      * Bahamas
      * Bangladesh
      * Belarus
      * Belgium
      * Brazil
      * Bulgaria
      * Cambodia
      * Canada
      * Central African Republic
      * Chile
      * China
      * Colombia
      * Congo
      * Costa Rica
      * Croatia
      * Cuba
      * Cyprus
      * Czechia
      * Denmark
      * Dominican Republic
      * Ecuador
      * Egypt
      * Estonia
      * Finland
      * France
    </Column>

    <Column>
      * Georgia
      * Germany
      * Ghana
      * Gibraltar
      * Greece
      * Greenland
      * Guinea
      * Haiti
      * Hong Kong
      * Hungary
      * Iceland
      * India
      * Indonesia
      * Iraq
      * Ireland
      * Israel
      * Italy
      * Jamaica
      * Japan
      * Jersey
      * Jordan
      * Kazakhstan
      * Kenya
      * Kiribati
      * Korea
      * Kuwait
      * Latvia
      * Lithuania
      * Mexico
      * Mongolia
      * Morocco
      * Netherlands
      * New Zealand
      * Norway
      * Oman
    </Column>

    <Column>
      * Pakistan
      * Panama
      * Philippines
      * Poland
      * Portugal
      * Puerto Rico
      * Qatar
      * Romania
      * Russia
      * Saudi Arabia
      * Serbia
      * Singapore
      * Slovakia
      * Slovenia
      * Somalia
      * South Africa
      * South Sudan
      * Spain
      * Sweden
      * Switzerland
      * Tajikistan
      * Thailand
      * Tunisia
      * Turkey
      * Turkmenistan
      * Uganda
      * Ukraine
      * United Arab Emirates
      * United Kingdom
      * United States
      * Uruguay
      * Uzbekistan
      * Viet Nam
      * Yemen
      * Zimbabwe
    </Column>
  </Columns>
</Expandable>

### Amazon

所有 **Amazon** 目标都需要以 **ISO-2** 国家代码格式设置地理位置参数：

* 错误：`United States`
* 正确：`US`

在[**此处**](https://help.decodo.com/docs/cn/web-scraping-api-amazon-geo-parameter-deprecated)了解如何操作。

<Note>
  请注意，如果 Amazon `domain` 参数与 **`geo`** 匹配，例如 - `.com` 与 US，`.co.jp` 与 JP，您将必须使用**邮政编码**而不是国家的 ISO 代码。
</Note>

**例外情况：** 不支持的域名：`cn`、`com.tr`、`com.be` 和 `nl` 不支持自定义配送位置。

**其他情况：**

澳大利亚 (com.au)：仅接受澳大利亚邮政编码。阿联酋 (.ae)：接受阿联酋城市名称作为地理位置，例如 "geo": "Abu Dhabi"，或 2 字母国家代码。

### Walmart

**Walmart** 目标需要使用 **Advanced** 计划的特定地理位置参数。在[**此处**](https://help.decodo.com/docs/cn/web-scraping-api-walmart-geo-parameter-deprecated)了解如何操作。

***

<Columns cols={2}>
  <Card title="支持" href="https://direct.lc.chat/12092754" cta="让我们聊聊！">
    需要帮助或只是想打个招呼？我们的支持团队全天候为您服务。 \
    您也可以随时通过电子邮件 [support@decodo.com](mailto:support@decodo.com) 联系我们。
  </Card>

  <Card title="反馈" href="mailto:feedback@decodo.com" cta="分享反馈">
    找不到您要找的内容？请求一篇文章！ \
    有反馈意见？分享您对我们如何改进的想法。
  </Card>
</Columns>
