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

# 流量与计费

了解 网页爬虫API 的流量与计费、流量使用如何计算，以及哪些结果会计费。

### 流量使用量

网页爬虫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="https://3714446197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBQ7Zf9paoN3FTeGcyfY1%2Fuploads%2Fgit-blob-57b56d89cdd17ccc3b4137fb32115fb710b32390%2FScraper%20API%20%E2%80%93%201.png?alt=media" alt="Case 1"><figcaption></figcaption></figure>

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

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

<figure><img src="https://3714446197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBQ7Zf9paoN3FTeGcyfY1%2Fuploads%2Fgit-blob-687cef62188ae2e20bb6e532f992bfe178b8a8b7%2FScraper%20API%20%E2%80%93%202.png?alt=media" alt="Case 2"><figcaption></figcaption></figure>

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

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

<figure><img src="https://3714446197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBQ7Zf9paoN3FTeGcyfY1%2Fuploads%2Fgit-blob-ecc872da3499407ad558e8cb9345d6eda2a196e3%2FScraper%20API%20%E2%80%93%203.png?alt=media" alt="Case 3"><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/products/cn/web-scraper-api/usage-and-billing/billing-information.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
