For the complete documentation index, see llms.txt. This page is also available as Markdown.

URL

抓取你选择的任意 Airbnb URL(房源、体验、服务)。

您可以通过使用以下方式向我们的服务提供自己的 URL 来获取 Airbnb 结果 airbnb 来源。API 会返回您想要的任何 Airbnb 页面 HTML。

请求示例

下面的示例说明如何获取渲染后的 Airbnb 结果。

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "airbnb",
        "url": "https://www.airbnb.com/s/Praia-Fonte-da-Telha/homes?place_id=ChIJawaRIc60Hg0RxwaucPtoP5A",
        "render": "html"
    }'

我们使用同步的 Realtime 集成方法作为示例。如果您想使用 Proxy Endpoint 或异步 Push-Pull 集成,请参阅 集成方法 部分。

请求参数值

通用

参数
说明
默认值

source

设置爬虫。

airbnb

url

指向任何页面的直接 URL(链接)。

-

render

设置为 html. 更多信息.

-

callback_url

您的回调端点 URL。 更多信息

-

user_agent_type

设备类型和浏览器。完整列表可在 这里.

desktop

- 必填参数

最后更新于

这有帮助吗?