> 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/kuai-su-kai-shi-wang-ye-jie-suo-qi.md).

# 快速开始：网页解锁器

{% hint style="info" %}
已经熟悉基础知识？查看 [网页解锁器文档](/products/cn/web-unblocker.md).
{% endhint %}

Oxylabs [网页解锁器](https://oxylabs.io/products/web-unblocker) 是一个由 AI 驱动的代理解决方案，旨在处理最复杂的机器人流量管理系统（例如，Akamai、Cloudflare 或 DataDome）。它会自动管理代理轮换、浏览器指纹识别和 CAPTCHA 处理，让您可以专注于数据。

{% stepper %}
{% step %}

### 设置与凭据

1. **创建账户：** 在以下位置注册： [Oxylabs 仪表板](https://dashboard.oxylabs.io/).
2. **创建 API 用户：** 导航到 网页解锁器 → 用户，并创建用户名和密码（这些是用于授权访问 网页解锁器 的凭据，与您的仪表板登录分开）
   {% endstep %}

{% step %}

### 您的第一个请求

网页解锁器 作为代理集成。请使用端点 `unblock.oxylabs.io:60000` 并通过自定义标头传递您的指令。

```bash
curl -k -x unblock.oxylabs.io:60000 -U 'USERNAME:PASSWORD' \
'https://sandbox.oxylabs.io/products' \
-H 'x-oxylabs-geo-location: United States' \
-H 'x-oxylabs-render: html'
```

{% hint style="info" %}
替换为 `USERNAME` 和 `PASSWORD` 您的用户凭据
{% endhint %}
{% endstep %}
{% endstepper %}

### 必要标头

与标准代理不同，网页解锁器使用标头来控制其 AI 驱动功能：

| 标头                        | 值                 | 说明                     |
| ------------------------- | ----------------- | ---------------------- |
| `x-oxylabs-geo-location`  | `美国`, `德国`等。      | 将出口节点设置为特定国家。          |
| `x-oxylabs-render`        | `html` 或 `png`    | 启用 JavaScript 渲染或返回截图。 |
| `x-oxylabs-session-id`    | `AnyRandomString` | 在多次请求中保持相同 IP（粘性会话）。   |
| `x-oxylabs-force-headers` | `1`               | 强制工具向目标发送您自己的自定义标头。    |

### 常见响应代码

| 代码    | 状态     | 说明                   |
| ----- | ------ | -------------------- |
| `200` | `成功`   | 请求成功。您将收到完整渲染的 HTML。 |
| `401` | `未授权`  | API 用户凭据无效或缺少身份验证。   |
| `429` | `请求过多` | 您已达到账户速率限制。          |
| `550` | `故障`   | 系统在多次重试后无法访问该网站。     |

您可以在 [完整响应代码列表](/products/cn/web-unblocker/response-codes.md) 中找到网页解锁器产品部分。

### 下一步

* **高级浏览器控制：** 需要点击按钮或滚动？请查看 [自定义浏览器指令](/products/cn/web-unblocker/custom-browser-instructions.md) 在产品部分。
* **地理定位：** 对于本地化数据，请查看 [地理位置](/products/cn/web-unblocker/making-requests/geo-location.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/kuai-su-kai-shi-wang-ye-jie-suo-qi.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.
