接口参考
监控任务详情 API
POST
/open-api/v1/ad-monitor-task/monitor-task-details/{task_id}免费·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/monitor-task-details/dc7ed8902c66fc5e1dfbe4ccad5c345b' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API Key}' 请求参数
按参数标注的位置传入请求。
| 参数 | 类型 | 说明 |
|---|---|---|
| task_id
path · 必填
| string | | 监控任务ID |
返回示例
返回示例 · JSON
{
"code": 200,
"message": "success",
"data": {
"task_id": "902175d02614903e4944dfdfe85bbb4d",
"updated_at": 1761229088,
"monitor_task_type": 1,
"facebook_page_id": "100726615757315",
"facebook_page_url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&is_targeted_country=false&media_type=all&search_type=page&view_all_page_id=100726615757315",
"facebook_shop_url": null,
"facebook_shop_search_url": null,
"name": "Coloringbook",
"avatar_url": "https://scontent-nrt1-2.xx.fbcdn.net/v/t39.30808-1/250115514_100726659090644_7405549375147557340_n.png?stp=dst-png_s100x100&_nc_cat=101&ccb=1-7&_nc_sid=418b77&_nc_ohc=oR82bdd8LsEQ7kNvwFR9css&_nc_oc=AdnOlwugd-a_Yt-WSY-rJGMEasY4EGYZ8Exjb64rrr672pxh0Voz_F8o46bTAjEKo0M&_nc_zt=24&_nc_ht=scontent-nrt1-2.xx&_nc_gid=4fHEZoJRgLMnM34BI30F8w&oh=00_AfcOORyQ7zhijv2OZ5YnwEslo6BS2i0Nb6SCZp7TjzhhcA&oe=690014F0",
"category": "Brand",
"country": null,
"ad_total_count": 0,
"ad_total_active_count": 0,
"ad_today_count": 0,
"ad_yesterday_count": 0,
"ad_seven_day_count": 0,
"landing_page_total_count": 0,
"landing_page_today_count": 0,
"landing_page_yesterday_count": 0,
"landing_page_seven_day_count": 0,
"product_total_count": 0,
"product_today_count": 0,
"product_yesterday_count": 0,
"product_seven_day_count": 0,
"videos_ad_total_count": 0,
"images_ad_total_count": 0,
"cards_ad_total_count": 0,
"latest_ad_data": null,
"monitored_days": 1,
"started_at": 1761229088
},
"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 |
| »» task_id | string | true | none | 监控任务ID | none |
| »» monitor_task_type | integer | true | none | 监控任务类型 | 可选值:1-Facebook广告主,2-店铺/网站。 |
| »» facebook_page_id | string¦null | true | none | Facebook广告主ID | none |
| »» facebook_page_url | string | true | none | Facebook广告主URL | none |
| »» facebook_shop_url | string¦null | true | none | 店铺/网站的URL | none |
| »» facebook_shop_search_url | string¦null | true | none | Facebook店铺搜索URL | none |
| »» name | string¦null | true | none | 监控对象名称 | none |
| »» avatar_url | string¦null | true | none | 监控对象头像 | none |
| »» category | string¦null | true | none | Facebook广告主的类别 | none |
| »» country | string¦null | true | none | 国家 | none |
| »» ad_total_count | integer | true | none | 总广告数 | none |
| »» ad_total_active_count | integer | true | none | 总活跃 | none |
| »» ad_today_count | integer | true | none | 今日新增广告数 | none |
| »» ad_yesterday_count | integer | true | none | 昨日新增广告数 | none |
| »» landing_page_total_count | integer | true | none | 落地页总数 | none |
| »» landing_page_today_count | integer | true | none | 落地页今日新增 | none |
| »» landing_page_yesterday_count | integer | true | none | 落地页昨日新增 | none |
| »» product_total_count | integer | true | none | 总产品数 | none |
| »» product_today_count | integer | true | none | 产品今日新增 | none |
| »» product_yesterday_count | integer | true | none | 产品昨日新增 | none |
| »» latest_ad_data | [object]¦null | true | none | 最新广告数据 | none |
| »»» id | string | true | none | 广告ID | none |
| »»» cover_url | string | true | none | 封面 | none |
| »»» ad_started_at | integer | true | none | 发布时间时间戳 | none |
| »» monitored_days | integer | true | none | 已监控天数 | none |
| »» started_at | integer | true | none | 监控开始时间 | none |
| »» updated_at | 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 类型的总数量 |
