查询余额
查询 CaptchaSonic 账户余额。
/getTaskResult
通过以下 API 请求获取您的账户余额和套餐详情。请前往 https://captchasonic.com/app 获取 apiKey。
GET
https://api.captchasonic.com/balance?apiKey=sonic_xxxxxxHostapi.captchasonic.com
URL 参数
| 参数 | 类型 | 值 |
|---|---|---|
apiKey | string | 您的 API KEY。 |
响应状态码
| 状态码 | 说明 |
|---|---|
200 OK | 请求成功。返回余额信息。 |
401 Unauthorized | API key 无效或缺失。 |
403 Forbidden | 权限不足,访问被拒绝。 |
429 Too Many Requests | 超出速率限制。 |
500 Internal Server Error | 服务器内部错误。 |
请求示例
GET
https://api.captchasonic.com/balance?apiKey=sonic_xxxxxxHostapi.captchasonic.com
响应体
{
"status": "ok",
"balance": 99.99,
"username": "user",
"plan": {
"planId": "",
"active": 0,
"planType": "",
"minLimit": 0,
"minLimitUsed": 0,
"type": "",
"dailyLimit": 0,
"dailyLimitUsed": 500,
"start": 0,
"end": 0,
"planLimit": 0,
"planLimitUsed": 0,
"refill": 1734339963,
"auto_renew": false,
"shared": false
}
}