> 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/products/cn/web-scraper-api/usage-and-billing/rate-limits.md).

# 速率限制

## 简介

网页爬虫API 用户账户附带特定的任务提交速率限制，具体取决于您的套餐。这些限制旨在有效满足您的月度订阅需求。

## 速率限制

您可提交任务的速率取决于您的套餐规模。常规套餐和企业套餐的速率限制明细请参见下表：

<table><thead><tr><th width="203">套餐</th><th width="187">结果（最大值）</th><th width="179">总任务/秒</th><th>渲染任务/秒</th></tr></thead><tbody><tr><td>免费试用</td><td>2,000</td><td>10</td><td>3</td></tr><tr><td>微型</td><td>98,000</td><td>50</td><td>13</td></tr><tr><td>入门</td><td>220,000</td><td>50</td><td>13</td></tr><tr><td>高级</td><td>622,500</td><td>50</td><td>13</td></tr><tr><td>进阶</td><td>1,350,000</td><td>50</td><td>13</td></tr><tr><td>商务版</td><td>3,330,000</td><td>100</td><td>25</td></tr><tr><td>企业版</td><td>8,000,000</td><td>100</td><td>25</td></tr><tr><td>自定义 +</td><td>自定义</td><td>自定义</td><td>自定义</td></tr></tbody></table>

## 获取速率限制信息

每当您向我们的系统提交任务时，我们都会在响应头中返回速率限制信息。响应头名称的结构如下： `x-ratelimit-limit_name-limit` 以及 `x-ratelimit-limit_name-remaining`。前者表示总限制值，后者表示剩余值。您可能适用多个限制。

<figure><img src="/files/ad75ef484dd0c53c8879d1f6bf15abd5e4aea3e8" alt=""><figcaption></figcaption></figure>

## 由于成功率较低而限制域名访问

网页爬虫API 会持续监控您抓取的每个域名的成功率。如果某个域名的成功率低于 40%（按最近 5 分钟窗口统计），则您对该域名的请求速率将限制为 1 req/s，直到成功率恢复。

成功率较低可能有两个原因：

* 网页爬虫API 无法处理网站的机器人流量控制系统；
* 您自己的 Cookie、标头或其他变量干扰了网页爬虫API 的网页访问逻辑。

当由于成功率较低而限制您对某个域名的请求时，您将收到带有以下内容的 API 响应： `429` 状态码以及以下消息：

{% code overflow="wrap" %}

```json
{
    "message": "由于成功率较低，访问 {domain} 已被限制为 1 req/s。如果您正在使用自定义标头或 Cookie，请确保它们正确，然后重试。成功率提升后，正常请求限制将自动恢复。"
}
```

{% endcode %}

收到此响应后，请确认您的请求参数不是导致此问题的原因。


---

# 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/products/cn/web-scraper-api/usage-and-billing/rate-limits.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.
