> 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/help-center/cn/ru-men/start-using-datacenter-proxies-per-ip.md).

# 开始按 IP 使用数据中心代理

了解如何开始按 IP 使用 Oxylabs 数据中心代理，以高效进行网页抓取。

### 创建一个实例

在……上创建账户 [Oxylabs 仪表板](https://dashboard.oxylabs.io/en/)。创建实例后，你的用户名和密码会自动生成，并可随时在实例设置中查看。那里还会有一个 cURL 示例，可用于获取随机 IP。

### 发送 cURL 请求

创建实例后，你会找到一个可用于获取随机 IP 的 cURL 示例：

```
curl -x dc.oxylabs.io:8000 -U "user-USERNAME:PASSWORD" https://ip.oxylabs.io/location
```

将 USERNAME 和 PASSWORD 替换为你的实例凭据。在终端或其他环境中输入此命令，即可使用代理列表中的第一个 IP 发起基本请求。

### IP 控制

你也可以使用特定的静态端口发送请求。端口号可在你的 [代理列表](https://oxylabs.io/blog/datacenter-proxies-quick-start-guide-gb-ip)中找到。为此，你应导航到 **所有产品 → 数据中心代理 → 代理列表**.

以下是一个使用端口（8001）进行静态会话的示例：

```
curl -x dc.oxylabs.io:8001 -U user-USERNAME:PASSWORD https://ip.oxylabs.io/location
```

### 验证 IP 参数

使用 ip.oxylabs.io/location 检查你的 IP 参数。此端点提供来自四个地理位置数据库的信息：MaxMind、IP2Location、DB-IP 和 IPinfo.io。详细信息包括 IP 地址、提供商、国家、城市、邮政编码、ASN、组织名称、时区，以及可用时的元信息。

### 位置参数

要确定你的 IP 所在位置，请使用 <https://ip.oxylabs.io/location>。访问具有特定位置的 IP 不需要额外参数。只需向与你期望位置对应的端口发送请求。

### 选择国家

对于在特定国家内轮换的 IP，请在 user 字符串中包含国家参数。例如，要仅在美国代理池中轮换，请使用参数 country-US：

```
curl -x dc.oxylabs.io:8000 -U "user-USERNAME-country-US:PASSWORD" https://ip.oxylabs.io/location
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/help-center/cn/ru-men/start-using-datacenter-proxies-per-ip.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
