# 集成方式

网页爬虫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 Storage）。

{% 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" %}
存活时间（**TTL**）适用于所有 API 连接，设置为 **150 秒**。需要注意的是，在极少数情况下，连接可能会在收到响应之前超时。系统负载过高或作业提交极其复杂等因素都可能导致超时。
{% endhint %}


---

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