登录
跳到内容

API

API文档

将您的应用程序连接到面板 API。

连接

HTTP方法
POST
API 网址
https://iamprovider.com/api/v2
回复格式
JSON

API 密钥与账户

请将 API 密钥保存在服务器上。选择准确的服务 ID,保存返回的订单 ID,并在提交后查询状态。

服务列表

参数说明
key您的 API 密钥
actionservices

响应示例

[
    {
        "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 密钥
actionadd
service服务 ID
link页面链接
quantity所需数量
runs可选执行次数
interval可选间隔(分钟)

响应示例

{
    "order": 23501
}

订单状态

参数说明
key您的 API 密钥
actionstatus
order订单 ID

响应示例

{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}

批量订单状态

参数说明
key您的 API 密钥
actionstatus
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 密钥
actionrefill
order订单 ID

响应示例

{
    "refill": "1"
}

批量创建补量请求

参数说明
key您的 API 密钥
actionrefill
orders用逗号分隔的订单 ID,最多 100 个

响应示例

[
    {
        "order": 1,
        "refill": 1
    },
    {
        "order": 2,
        "refill": 2
    },
    {
        "order": 3,
        "refill": {
            "error": "Incorrect order ID"
        }
    }
]

查询补量状态

参数说明
key您的 API 密钥
actionrefill_status
refill补量 ID

响应示例

{
    "status": "Completed"
}

批量查询补量状态

参数说明
key您的 API 密钥
actionrefill_status
refills用逗号分隔的补量 ID,最多 100 个

响应示例

[
    {
        "refill": 1,
        "status": "Completed"
    },
    {
        "refill": 2,
        "status": "Rejected"
    },
    {
        "refill": 3,
        "status": {
            "error": "Refill not found"
        }
    }
]

请求取消

参数说明
key您的 API 密钥
actioncancel
orders用逗号分隔的订单 ID,最多 100 个

响应示例

[
    {
        "order": 9,
        "cancel": {
            "error": "Incorrect order ID"
        }
    },
    {
        "order": 2,
        "cancel": 1
    }
]

账户余额

参数说明
key您的 API 密钥
actionbalance

响应示例

{
    "balance": "100.84292",
    "currency": "USD"
}

查找下一页

Tab 选择 · Enter 打开 · Esc 关闭