> 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/serp-localization.md).

# SERP 本地化

使用 `geo_location` 用于调整搜索引擎结果页（SERP）的参数，以显示与指定位置相关的结果，反映该区域用户会看到的内容。

## Google

该 `geo_location` 该参数可通过 **基于 UULE 的** 值获取本地化的 Google（包括 Google Shopping）结果，兼容大多数 Google 源。可选择多种方法：

1. **使用州名**:
   * 格式： `"State,Country"`
   * 示例： `"geo_location": "California,United States"`
2. **使用国家名**:
   * 传入官方国家名称。
   * 示例： `"geo_location": "United Kingdom"`
3. **使用 ISO-3166** **国家代码：**
   * 当提供 ISO 代码时，我们的系统会自动将其转换为对应的国家名称。查找  ISO 国家代码 [**此处**](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FB6LB4bYPdwi7hXuoCJ6Z%2Fcountries.json?alt=media\&token=f5c16d44-6f91-4590-a0f7-cad79bc5dd3a).&#x20;
   * 示例：  `"geo_location": "GB"` 对应于 United Kingdom。&#x20;
4. **使用坐标和半径**:
   * 对于超本地结果（例如“附近的餐厅”），请提供纬度、经度和半径值。
   * 示例： `"geo_location": "lat: 47.6205, lng: -122.3493, rad: 25000"`
5. **使用 Google 的规范位置名称** 或 **Criteria ID**:
   * 在最新的压缩 CSV 文件中查找值。 [**此处**](https://developers.google.com/adwords/api/docs/appendix/geotargeting) 。
   * 示例： `"geo_location": "New York,New York,United States"` 或 `"geo_location": "1023191"`

如果你不小心输入了拼写错误的 `geo_location` 参数，我们的系统或 Google 可能会尝试为你更正。不过请注意，指定一个已存在的 Criteria ID 对于成功请求至关重要。

另外，建议将 `locale` 参数与正确的 `geo_location` 结构结合使用。这样可以提高精度，并确保你的查询符合预期的本地化偏好。

{% hint style="info" %}
你也可以在抓取 Google 时使用 `results_language`, `locale` 参数。了解更多 [**此处**](/products/cn/web-scraper-api/features/localization/domain-locale.md).
{% endhint %}

### 例外情况

#### Google Travel Hotels

* 仅支持城市级 `geo_location` 值（例如“`Seattle,Washington,United States`").
* 不支持覆盖较大区域的位置（例如“`美国`”）。
* 请参阅附件文件，查看一份 `geo_location` 值列表，这些值不会产生准确结果。

{% file src="/files/df3b92d7786686ac0126ca3912c088f583391b4e" %}

## Bing

Bing 支持少数几种 `geo_location` 参数值格式。

* **城市级位置**。这非常简单。只需在 `City,State,Country` 格式中传入城市级位置即可。\
  示例： `"geo_location": "New York,New York,United States"。`
* **州级位置**。去掉城市级位置的第一部分，并传入一个 `geo_location` 值，使用 `"State,Country"` 格式中传入城市级位置即可。\
  示例： `"geo_location": "California,United States"`.
* **国家级位置**。若要获取以某个国家地理中心点本地化的结果，请传入官方国家名称。\
  示例： `"geo_location": "United Kingdom"`.
* **坐标级位置**。若要获取超本地搜索结果（适用于如“附近的餐厅”等搜索），可以传入纬度、经度和半径值。\
  以下示例传入了西雅图 WA 的 Space Needle 坐标： `"geo_location": "lat: 47.6205, lng: -122.3493, rad: 25000"`.

{% hint style="info" %}
你也可以在抓取 Google 时使用 `locale` 参数来抓取 Bing。了解更多 [**此处**](/products/cn/web-scraper-api/features/localization/domain-locale.md).
{% endhint %}


---

# 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:

```
GET https://developers.oxylabs.io/products/cn/web-scraper-api/features/localization/serp-localization.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.
