类别

通过分类节点 ID 抓取 Target 类别页面,支持门店、履约类型和配送邮编本地化。

target_category source 旨在根据 Target 的 taxonomy node ID 检索 Target 类别页面。该 source 支持本地化功能,并允许你浏览 Target 的产品类别。

请求示例

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
    "source": "target_category",
    "category_id": "owq2q",
    "render": "html"
}'

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

请求参数值

通用

参数
说明
默认值

source

设置爬虫。

target_category

category_id

类别的 Target taxonomy node ID(例如,PlayStation 5 控制器对应的 "owq2q")。

-

render

设置为 html. 更多信息.

-

callback_url

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

-

user_agent_type

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

desktop

- 必填参数

本地化

将结果适配到特定商店、履约类型和配送地点。

参数
说明
类型

fulfillment_type

设置履约类型。可用值为:pickup、shipping、shop_in_store、same_day_delivery。

字符串

store_id

设置门店位置。

整数

delivery_zip

设置配送到的位置。

字符串

了解 Target 的 node ID

Target 的类别系统使用 node ID 来标识特定类别。这些 node ID 是 Target taxonomy 系统中的唯一标识符。

示例 node ID

node ID 可在类别页面 URL 中找到。它是 URL 中格式为 N-<5 个符号> 的部分。下面是一些示例类别 URL 及其对应的 node ID:

  1. PlayStation 5 配件: lbxgt

  2. PlayStation 5: hj96d

node ID 格式

使用 target_category source 时,你只需要提供 node ID,而不需要提供 N- 前缀。API 会自动将 URL 格式化为正确形式。

最后更新于

这有帮助吗?