API
API文档
将您的应用程序连接到面板 API。
连接
- HTTP方法
POST- API 网址
https://iamprovider.com/api/v2- 回复格式
JSON
服务列表
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | services |
响应示例
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "First Category",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "Second Category",
"rate": "8",
"min": "10",
"max": "1500",
"refill": false,
"cancel": true
}
]添加订单
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | add |
service | 服务 ID |
link | 页面链接 |
quantity | 所需数量 |
runs可选 | 执行次数 |
interval可选 | 间隔(分钟) |
响应示例
{
"order": 23501
}订单状态
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | status |
order | 订单 ID |
响应示例
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}批量订单状态
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | status |
orders | 用逗号分隔的订单 ID,最多 100 个 |
响应示例
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
},
"100": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10",
"currency": "USD"
}
}创建补量请求
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | refill |
order | 订单 ID |
响应示例
{
"refill": "1"
}批量创建补量请求
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | refill |
orders | 用逗号分隔的订单 ID,最多 100 个 |
响应示例
[
{
"order": 1,
"refill": 1
},
{
"order": 2,
"refill": 2
},
{
"order": 3,
"refill": {
"error": "Incorrect order ID"
}
}
]查询补量状态
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | refill_status |
refill | 补量 ID |
响应示例
{
"status": "Completed"
}批量查询补量状态
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | refill_status |
refills | 用逗号分隔的补量 ID,最多 100 个 |
响应示例
[
{
"refill": 1,
"status": "Completed"
},
{
"refill": 2,
"status": "Rejected"
},
{
"refill": 3,
"status": {
"error": "Refill not found"
}
}
]请求取消
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | cancel |
orders | 用逗号分隔的订单 ID,最多 100 个 |
响应示例
[
{
"order": 9,
"cancel": {
"error": "Incorrect order ID"
}
},
{
"order": 2,
"cancel": 1
}
]账户余额
| 参数 | 说明 |
|---|---|
key | 您的 API 密钥 |
action | balance |
响应示例
{
"balance": "100.84292",
"currency": "USD"
}