接口参考
查询当前积分 API
查询普通开放平台积分与监控任务积分的余额。
GET
/open-api/v1/credits免费·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/credits' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API Key}' 请求参数
| 参数 | 类型 | 说明 |
|---|---|---|
| 此接口不需要请求参数。 | ||
返回示例
返回示例 · JSON
{
"code": 200,
"message": "success",
"data": {
"normal": {
"total_credits": 745,
"used_credits": 0,
"credits": 745,
"purchased_credits": 745
},
"monitor": {
"total_credits": 745,
"used_credits": 0,
"credits": 745,
"purchased_credits": 745
}
}
}
文档中的示例数据
返回数据结构
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | 业务状态码 | none |
| » message | string | true | none | 响应的消息 | none |
| » data | object | true | none | 响应的数据 | none |
| »» normal | object | true | none | 普通开放平台积分 | none |
| »»» total_credits | integer | true | none | 累计总积分 | none |
| »»» used_credits | integer | true | none | 已使用积分 | none |
| »»» credits | integer | true | none | 当前剩余积分 | none |
| »»» purchased_credits | integer | true | none | 购买获得的积分 | none |
| »» monitor | object | true | none | 监控任务积分 | none |
| »»» total_credits | integer | true | none | 累计总积分 | none |
| »»» used_credits | integer | true | none | 已使用积分 | none |
| »»» credits | integer | true | none | 当前剩余积分 | none |
| »»» purchased_credits | integer | true | none | 购买获得的积分 | none |
