# 快速入门：网页解锁器

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

{% stepper %}
{% step %}

### 设置与凭证

1. **创建账户：** 在以下位置注册： [Oxylabs 控制面板](https://dashboard.oxylabs.io/).
2. **创建 API 用户：** 前往 网页解锁器 → Users，并创建用户名和密码（这些是用于授权访问 网页解锁器 的凭证，与您的控制面板登录分开）
   {% 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/web-unblocker/response-codes.md) 网页解锁器 产品部分中找到。

### 后续步骤

* **高级浏览器控制：** 需要点击按钮或滚动？请查看 [Custom Browser Instructions](/products/web-unblocker/custom-browser-instructions.md) 产品部分中的相关内容。
* **地理定位：** 对于本地化数据，请参阅 [Geo-location](/products/web-unblocker/making-requests/geo-location.md) 页面，以定位特定国家、城市或坐标。


---

# Agent Instructions: 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/documentation/cn/kai-shi-shi-yong/kuai-su-ru-men-wang-ye-jie-suo-qi.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.
