接口参考
监控任务的最新广告商品 API
POST
/open-api/v1/ad-monitor-task/latest-products免费·api.ppspy.com数据与监控消耗规则
数据消耗规则:1. 获取一条shopify数据结果消耗 1 数据 或者 获取一条广告库数据结果消耗 2 数据,获取数据结果的更多数据详情不消耗数据。 2. 广告监控 & 销量监控,每次监控 $1 / 月。单个监控有效期为一个月,一个月后自动停止。删除监控不会恢复监控次数,请谨慎删除。监控调用为随时且无限次。
请求头
AUTHORIZATION
Authorization: {API Key}CONTENT-TYPE
application/jsonACCEPT
application/json请求示例
cURL
curl --location --request POST 'https://api.ppspy.com/open-api/v1/ad-monitor-task/latest-products' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API Key}' \
--data-raw '{
"task_id": "902175d02614903e4944dfdfe85bbb4d",
"limit": 4
}' 请求参数
按参数标注的位置传入请求。
| 参数 | 类型 | 说明 |
|---|---|---|
| body
body · 可选
| object | | none |
| » task_id
body · 必填
| string | 监控任务ID | none |
| » limit
body · 可选
| integer | 查询数量限制 | 最小值等于1。 |
返回示例
返回示例 · JSON
{
"code": 200,
"message": "success",
"data": {
"data": [
{
"product_id": "9e62a65361a3c99d1d8abe88b26c79cf",
"product_url": "https:\/\/bloomchic.com\/products\/solid-glitter-twist-front-gathered-blouse?variant=45092711104682&feed_id=fb30387401",
"product_name": "Solid Glitter Twist Front Gathered Blouse",
"product_image_url": "https:\/\/fb-cdn.pipiads.com\/images\/pimg_9f0f0a6bf7c9ab8f07070.png",
"ad_start_date": 1761202800
},
{
"product_id": "b0ab5f769cc71284955c2df12ba6db25",
"product_url": "https:\/\/bloomchic.com\/products\/halloween-skull-print-cold-shoulder-sweatshirt?variant=43445379301546&feed_id=fb13207901",
"product_name": "Halloween Skull Print Cold Shoulder Sweatshirt",
"product_image_url": "https:\/\/fb-cdn.pipiads.com\/images\/pimg_475c7a86c59a71896a6f3.png",
"ad_start_date": 1761030000
},
{
"product_id": "b9546ab6ae22ac8bb75e2fc225f48d2b",
"product_url": "https:\/\/bloomchic.com\/products\/colorblock-buttons-v-neck-knit-cardigan?variant=47423439143082&feed_id=fb51674051",
"product_name": "Colorblock Buttons V-Neck Knit Cardigan",
"product_image_url": "https:\/\/fb-cdn.pipiads.com\/images\/pimg_8ea659fce95064cd33771.png",
"ad_start_date": 1760079600
},
{
"product_id": "765b3d2ae4791d5d6663873162fa45e1",
"product_url": "https:\/\/bloomchic.com\/products\/cozy-floral-print-lace-trim-blouse?variant=47414121988266&feed_id=fb51673689",
"product_name": "Cozy Floral Print Lace Trim Blouse",
"product_image_url": "https:\/\/fb-cdn.pipiads.com\/images\/pimg_52b7a2fb4ae094b6c23df.png",
"ad_start_date": 1760079600
}
]
},
"credits": {
"remaining_credits": 745,
"consumed_credits": 0,
"total_credits": 745
}
}
文档中的示例数据
返回数据结构
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | 业务状态码 | none |
| » message | string | true | none | 响应的消息 | none |
| » data | object | true | none | 响应的数据 | none |
| »» data | [object] | true | none | 数据列表 | none |
| »»» product_id | string | true | none | 商品ID | none |
| »»» product_url | string | true | none | 产品地址 | none |
| »»» product_name | string | true | none | 商品名称 | none |
| »»» product_image_url | string | true | none | 商品图片URL | none |
| »»» ad_start_date | integer | true | none | 广告开始日期 | none |
| » credits | object | true | none | Credits 信息 | 当前 API 请求对应的 credits 信息 |
| »» remaining_credits | integer | true | none | 剩余 credits | 本次请求后剩余的 credits 数量 |
| »» consumed_credits | integer | true | none | 消耗 credits | 本次请求消耗的 credits 数量 |
| »» total_credits | integer | true | none | 总 credits | 当前 credits 类型的总数量 |
