# 速率限制

## 简介

网页爬虫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的解封逻辑。

当你对某个域名的请求因成功率过低而受到限制时，你将收到带有 `429` 状态码和以下消息的API响应：

{% code overflow="wrap" %}

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

{% endcode %}

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


---

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