> 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/documentation/cn/kai-shi-shi-yong/quick-start-proxies.md).

# 快速开始：代理

通过简单的分步指南，几分钟内即可开始使用 Oxylabs 代理。

{% hint style="success" %}
已经熟悉基础内容？查看 [代理文档](/products/cn/proxies.md) 或者我们实用的 [集成中心](/integrations/cn/proxy-integrations.md).
{% endhint %}

Oxylabs 提供多种代理类型，专为高性能数据抓取和更好的网页访问而设计。住宅代理、数据中心代理和 ISP 代理的使用场景不同，但核心集成逻辑几乎相同。

按照下面的分步指南，只需几分钟即可开始使用 Oxylabs 代理：

{% stepper %}
{% step %}

### 设置与凭证

1. **创建账户：** 在以下位置注册： [Oxylabs Dashboard](https://dashboard.oxylabs.io/).
2. **购买套餐：** 选择你的代理类型（*住宅*, *移动*, *数据中心*, *独享数据中心*, *ISP*，或 *独享 ISP* 代理）。
3. **创建代理用户：** 在控制面板中进入你的产品并创建代理用户（这是用于访问代理的凭证，与控制面板登录信息分开）

{% hint style="info" %}
要通过免费试用体验我们的代理，请联系支持团队： <support@oxylabs.io>.
{% endhint %}
{% endstep %}

{% step %}

### 你的首次请求

测试连接最有效的方法是使用 cURL 命令。复制下面的模板，并将占位符替换为以下内容中的值： **代理详情** 在第 3 步中。

```bash
curl -x ENDPOINT:PORT -U "PREFIX-USERNAME:PASSWORD" https://ip.oxylabs.io/location
```

{% endstep %}

{% step %}

### 代理详情

在下方找到你的具体产品，以确定正确的连接详情：

<table><thead><tr><th width="172">代理类型</th><th width="150">端点</th><th width="115">轮换端口</th><th width="125">用户名前缀</th><th width="127">静态端口</th></tr></thead><tbody><tr><td>住宅</td><td><code>pr.oxylabs.io</code></td><td><code>7777</code></td><td><code>customer-</code></td><td>（使用 <code>sessid-</code>)</td></tr><tr><td>移动</td><td><code>pr.oxylabs.io</code></td><td><code>7777</code></td><td><code>customer-</code></td><td>（使用 <code>sessid-</code>)</td></tr><tr><td>数据中心</td><td><code>dc.oxylabs.io</code></td><td><code>8000</code></td><td><code>user-</code></td><td><code>8001</code> 及以上</td></tr><tr><td>独享数据中心</td><td><code>ddc.oxylabs.io</code></td><td><code>8000</code></td><td><code>user-</code></td><td><code>8001</code> 及以上</td></tr><tr><td>ISP</td><td><code>isp.oxylabs.io</code></td><td><code>8000</code></td><td><code>user-</code></td><td><code>8001</code> 及以上</td></tr><tr><td>独享 ISP</td><td><code>disp.oxylabs.io</code></td><td><code>8000</code></td><td><code>user-</code></td><td><code>8001</code> 及以上</td></tr></tbody></table>

{% hint style="success" %}
如果你通过销售团队购买了独享数据中心代理（Enterprise），可以通过 Direct IP 连接（例如， `1.2.3.4:60000` 用于 HTTP，或 `1.2.3.4:1180` 用于 SOCKS5），或者使用你的客户经理提供的端点。用户名不需要前缀。
{% endhint %}
{% endstep %}

{% step %}

### 自定义你的请求

在基础连接正常后，你可以自定义会话或地理定位：

* **要定位到某个国家：**
  * 住宅/移动：添加 `-cc-US` 到你的用户名字符串中（相应调整国家代码）。
  * 共享数据中心/ISP：添加 `-country-US` 到你的用户名字符串中（相应调整国家代码）。
  * 独享（数据中心/ISP）：使用分配给目标国家 IP 的端口（请查看控制面板中的代理列表）。
* **要保持静态会话：**
  * 住宅 / 移动代理：添加 `-sessid-qwerty123` 到你的用户名字符串末尾。
  * 其他所有类型：更改端口（例如，使用 `8001` 用于 IP #1， `8002` 用于 IP #2，等等）。
    {% endstep %}
    {% endstepper %}

### 下一步

既然你已确认连接，接下来可以继续：

* **需要高级功能？** 在以下位置查看每种类型的完整功能说明： [产品](/products/cn/proxies.md) 部分。
* **使用第三方工具？** 在以下位置查找 Selenium、Playwright、私有浏览器、代理管理器等的分步指南： [集成](/integrations/cn/proxy-integrations.md) 部分。


---

# 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, and the optional `goal` query parameter:

```
GET https://developers.oxylabs.io/documentation/cn/kai-shi-shi-yong/quick-start-proxies.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
