接口参考
店铺的广告主 API
GET
/open-api/v1/ad-stores/advertisers·api.ppspy.com
数据与监控消耗规则
数据消耗规则:1. 获取一条shopify数据结果消耗 1 数据 或者 获取一条广告库数据结果消耗 2 数据,获取数据结果的更多数据详情不消耗数据。 2. 广告监控 & 销量监控,每次监控 $1 / 月。单个监控有效期为一个月,一个月后自动停止。删除监控不会恢复监控次数,请谨慎删除。监控调用为随时且无限次。
请求头
AUTHORIZATION
Authorization: {API Key}CONTENT-TYPE
application/jsonACCEPT
application/json请求示例
cURL
curl --location --request GET 'https://api.ppspy.com/open-api/v1/ad-stores/advertisers?store_id=3da0b54f87306bebc81196bcf8cdba02' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API Key}' 请求参数
按参数标注的位置传入请求。
| 参数 | 类型 | 说明 |
|---|---|---|
| store_id
query · 必填
| string | 广告店铺ID | |
| page
query · 可选
| integer | 页码,最小值等于1。 | |
| per_page
query · 可选
| integer | 分页大小,取值范围1-100。 | |
返回示例
返回示例 · JSON
{
"code": 200,
"message": "success",
"data": {
"current_page": 10,
"data": [
{
"id": "095ee5d9bf6b0b4bddfc2977c27658a9",
"name": "Bloery",
"profile_picture_url": "https://fb-cdn.pipiads.com/images/06df50c2211137e09471ad37030c195b.png",
"category_name": null,
"like_count": 13,
"creation_time": null,
"ad_platform": [
"FACEBOOK",
"INSTAGRAM",
"AUDIENCE_NETWORK",
"MESSENGER"
],
"ad_count": 1,
"ad_source": 1,
"source_advertiser_id": "383656001491233",
"store_ad_count": 1,
"ads_library_link": "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=383656001491233"
}
],
"last_page": 1,
"per_page": 1,
"total": 1
},
"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 |
| »» current_page | integer | true | none | 当前页码 | none |
| »» data | [object] | true | none | 数据列表 | none |
| »»» 广告主信息 | object¦null | false | none | 广告主信息 | none |
| »»»» id | string | true | none | 广告主ID | none |
| »»»» name | string | true | none | 广告主的名字 | none |
| »»»» profile_picture_url | string¦null | true | none | 广告主头像 | none |
| »»»» category_name | string¦null | true | none | 广告主类别 | none |
| »»»» like_count | integer¦null | true | none | 广告主点赞数 | none |
| »»»» creation_time | integer¦null | true | none | 广告主创建时间 | none |
| »»»» ad_platform | [string] | true | none | 广告平台 | none |
| »»»» ad_count | integer | true | none | 广告数 | none |
| »»»» store_ad_count | integer | true | none | 在该店铺的广告数 | none |
| »»»» ads_library_link | string | true | none | 广告主的广告库链接 | none |
| »» last_page | integer | true | none | 最后一页的页码 | none |
| »» per_page | integer | true | none | 分页大小 | none |
| »» total | 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 类型的总数量 |
