> 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/integration-methods.md).

# 集成方法

网页爬虫API支持 **三种集成方式，** 每种都有其独特优势：

* [**Realtime**](/products/cn/web-scraper-api/integration-methods/realtime.md)。这种方法是同步的。这意味着，在发送作业提交请求后， **您需要保持连接打开** 直到我们成功完成您的作业或返回错误。此集成方式最适合需要即时响应的实时数据提取。您可以发送包含抓取和解析参数的 JSON 负载，而 API 会自动处理代理管理、重试和机器人流量管理。
* [**Push-Pull**](/products/cn/web-scraper-api/integration-methods/push-pull.md) **（支持批量查询）**。这种集成方式是 **异步的**。这意味着，在提交作业后，我们会很快向您返回一个包含作业信息的 JSON，其中包括用于下载结果/检查作业状态的 URL。作业处理完成后，我们将 `POST` 作业完成通知到您的服务器，此时您就可以下载结果了。此集成方式还支持将结果直接上传到您的 AWS S3、Google Cloud 或任何兼容 S3 的存储。

{% hint style="success" %}
Push-Pull 是我们推荐的集成方式，适合可靠地处理大量数据。
{% endhint %}

* [**Proxy Endpoint**](/products/cn/web-scraper-api/integration-methods/proxy-endpoint.md)。这种方法同样是同步的（类似于 Realtime），但不是通过 RESTful 接口使用我们的服务，您 **可以像使用代理一样使用我们的端点**。如果您之前使用过代理，并且只想从我们这里获取可用的网页内容，请使用 Proxy Endpoint。

{% hint style="info" %}
所有 API 连接的存活时间（**TTL**）设置为 **150 秒**。需要注意的是，在极少数情况下，连接可能会在收到响应前超时。系统负载或极其复杂的作业提交等因素都可能导致超时。
{% endhint %}


---

# 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:

```
GET https://developers.oxylabs.io/products/cn/web-scraper-api/integration-methods.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.
