# 流量与计费

### 流量使用量

网页爬虫API 统计……的数量 **结果**. **结果** 指已成功从网络检索到的内容的不同实体（例如网页 HTML）。

* **成功结果** （计费）：来自目标站点的所有结果，状态码为 `2xx` 或 `4xx` 的结果都计为成功，并且会计费。
* **失败结果** （不计费）：其他结果都计为失败，不会计费。

{% hint style="info" %}
状态码 `429` （请求过多）不计费。当您超出速率限制时会发生这种情况。如果您经常遇到此问题，请联系您的客户经理以提高您的限制。
{% endhint %}

有关响应代码的更多信息，请参阅 [**响应代码表**](/products/cn/web-scraper-api/response-codes.md).

{% hint style="warning" %}
如果响应包含 `2xx` 或 `4xx` 状态码，且结果不包含预期信息，我们仍将其计为成功结果。
{% endhint %}

### 计费

您将根据成功提取数据的结果数量进行计费。

由于我们系统错误导致的抓取失败尝试（`5xx` 和 `6xx` 状态码）不会被计入，您也不会因此被计费。

{% hint style="warning" %}
如果请求因您一侧的故障或错误而导致失败尝试，您仍将被计费。
{% endhint %}

请查看下面的一些计费案例示例：

#### 案例示例 #1 - 成功的抓取尝试

您创建了一个抓取任务，网页爬虫API 花了三次尝试才成功从网站获取到良好内容。您只会为最后一次成功尝试的结果计费。

<figure><img src="/files/aaeb9774a8772ca197ff7909e2ba359ab9b17e34" alt="Case 1"><figcaption></figcaption></figure>

#### 案例示例 #2 - 因我们的错误导致抓取失败

您创建了一个因我们的错误而失败的抓取任务，例如，我们已达到内部重试上限。在这种情况下，您不会为收到的结果付费。

<figure><img src="/files/e0316e7e2403702159c3178cc5b56b597e848e0a" alt="Case 2"><figcaption></figcaption></figure>

#### 案例示例 #3 - 因客户错误导致抓取失败

您创建了一个因您一侧错误而失败的抓取任务。您将为此结果付费。<br>

<figure><img src="/files/26b6c4fca14df60a0c2bac67e4bd7a37bf0a671f" alt="Case 3"><figcaption></figcaption></figure>


---

# 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/billing-information.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.
