接口参考
监控任务的广告数统计 API
POST
/open-api/v1/ad-monitor-task/ad-count-statistics免费·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/ad-count-statistics' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API Key}' \
--data-raw '{
"task_id": "902175d02614903e4944dfdfe85bbb4d",
"date_start": 1760745600,
"date_end": 1761350399
}' 请求参数
按参数标注的位置传入请求。
| 参数 | 类型 | 说明 |
|---|---|---|
| body
body · 可选
| object | | none |
| » task_id
body · 必填
| string | 监控任务ID | none |
| » date_start
body · 可选
| integer | 开始日期 | 时间戳:秒。 |
| » date_end
body · 可选
| integer | 结束日期 | 时间戳:秒。 |
返回示例
返回示例 · JSON
{
"code": 200,
"message": "success",
"data": {
"data": [
{
"date": 1761264000,
"ad_total_count": 51219,
"ad_active_count": 3052,
"ad_new_count": 47,
"landing_page_total_count": 8413,
"landing_page_new_count": 0,
"ad_product_total_count": 151,
"ad_product_active_count": 45,
"ad_product_new_count": 0
},
{
"date": 1761177600,
"ad_total_count": 51059,
"ad_active_count": 2892,
"ad_new_count": 411,
"landing_page_total_count": 8413,
"landing_page_new_count": 102,
"ad_product_total_count": 151,
"ad_product_active_count": 45,
"ad_product_new_count": 1
},
{
"date": 1761091200,
"ad_total_count": 50450,
"ad_active_count": 2880,
"ad_new_count": 248,
"landing_page_total_count": 8305,
"landing_page_new_count": 16,
"ad_product_total_count": 150,
"ad_product_active_count": 44,
"ad_product_new_count": 0
},
{
"date": 1761004800,
"ad_total_count": 49890,
"ad_active_count": 2641,
"ad_new_count": 217,
"landing_page_total_count": 8278,
"landing_page_new_count": 9,
"ad_product_total_count": 150,
"ad_product_active_count": 43,
"ad_product_new_count": 1
},
{
"date": 1760918400,
"ad_total_count": 49487,
"ad_active_count": 3968,
"ad_new_count": 246,
"landing_page_total_count": 8255,
"landing_page_new_count": 23,
"ad_product_total_count": 149,
"ad_product_active_count": 43,
"ad_product_new_count": 0
}
]
},
"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 |
| »»» date | integer | true | none | 日期 | 时间戳:秒。 |
| »»» ad_total_count | integer | true | none | 广告总量 | none |
| »»» ad_active_count | integer | true | none | 广告活跃数 | none |
| »»» ad_new_count | integer | true | none | 广告新增量 | none |
| »»» landing_page_total_count | integer | true | none | 落地页总量 | none |
| »»» landing_page_new_count | integer | true | none | 落地页新增量 | none |
| »»» ad_product_total_count | integer | true | none | 广告商品总量 | none |
| »»» ad_product_new_count | 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 类型的总数量 |
