> For the complete documentation index, see [llms.txt](https://docs.dataimpulse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dataimpulse.com/dataimpulse-documentation-zh-cn/dai-li/can-shu/cheng-shi.md).

# 城市

添加一个 `城市` 参数以缩小到城市级别的定位。&#x20;

例如， `cr.es;city.madrid,barcelona` 表示来自马德里、巴塞罗那和西班牙的代理将处理该查询。&#x20;

以下是一些国家和城市参数有效组合的示例：

`cr.de;city.berlin`

`cr.br;city.salvador`

**代码示例**

在此示例中，针对 gw\.dataimpulse.com 的查询将从位于德国柏林的 IP 地址执行：

```
curl -x "http://login__cr.de;city.berlin:password@gw.dataimpulse.com:823" https://api.ipify.org/
```

我们无法保证在任何特定时间都能提供来自某个特定城市的代理。但大多数受欢迎的城市都有良好覆盖。

{% hint style="info" %}
重要的是要注意，选择国家是指定城市、州、邮编和 ASN 定位的强制要求。
{% endhint %}

***

您现在可以使用 `nocity` 参数排除特定州。

**示例：** 要定位德国但排除柏林，请使用：

`cr.de;nocity.berlin`

{% hint style="info" %}
通过 `nocity` 参数路由的流量，以及 `城市` 参数按标准费率的两倍计费。
{% 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://docs.dataimpulse.com/dataimpulse-documentation-zh-cn/dai-li/can-shu/cheng-shi.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.
