API
与常见 SMM 面板接口一致,使用 POST 表单参数请求,返回 JSON。
接口地址
https://easyfans.shop/api/v2
API key
注册后可在这里获取 API key。
services服务列表
| 参数 | 说明 | |
|---|---|---|
| key | 你的 API key | 必填 |
| action | services | 必填 |
请求
curl -X POST https://easyfans.shop/api/v2 \ -d key=YOUR_KEY \ -d action=services
返回
[
{
"service": 1005,
"name": "Post views No drop",
"type": "Default",
"category": "X Views",
"rate": "0.0202",
"min": "4951",
"max": "100000000",
"refill": false,
"cancel": true,
"dripfeed": true
}
]add下单
| 参数 | 说明 | |
|---|---|---|
| key | 你的 API key | 必填 |
| action | add | 必填 |
| service | 服务编号 | 必填 |
| link | 链接 | 必填 |
| quantity | 下单数量。Custom Comments 类型无需传入。 | 必填 |
| runs | 分批下单的批数,仅支持分批的服务可用。 | 可选 |
| interval | 每批之间的间隔,单位为分钟。 | 可选 |
| type | 所需参数 |
|---|---|
| Default | link quantity 支持分批的服务可另加 runs 和 interval。 |
| Custom Comments | link comments 每行一条评论,用 \n 分隔,数量按行数计算。 |
| Comment Likes | link quantity username 评论作者的用户名 |
| Web Traffic | link quantity 可选参数 country、device、type_of_traffic、google_keyword |
请求
curl -X POST https://easyfans.shop/api/v2 \ -d key=YOUR_KEY \ -d action=add \ -d service=1005 \ -d link=https://x.com/pepe_onbase/status/1862940115731220481 \ -d quantity=10000 \ -d runs=5 \ -d interval=30
返回
{
"order": 284320
}status订单状态
| 参数 | 说明 | |
|---|---|---|
| key | 你的 API key | 必填 |
| action | status | 必填 |
| order | 单个订单号 | 必填 |
| orders | 多个订单号,用逗号分隔,最多 100 个。与 order 二选一。 | 可选 |
单个订单
curl -X POST https://easyfans.shop/api/v2 \ -d key=YOUR_KEY \ -d action=status \ -d order=284316
返回
{
"charge": "1.0100",
"start_count": "1204",
"status": "In progress",
"remains": "31580",
"currency": "USDT"
}多个订单
curl -X POST https://easyfans.shop/api/v2 \ -d key=YOUR_KEY \ -d action=status \ -d orders=284316,284315
返回
{
"284316": {
"charge": "1.0100",
"start_count": "1204",
"status": "In progress",
"remains": "31580",
"currency": "USDT"
},
"284315": {
"charge": "5.0160",
"start_count": "46",
"status": "Completed",
"remains": "0",
"currency": "USDT"
}
}balance余额
| 参数 | 说明 | |
|---|---|---|
| key | 你的 API key | 必填 |
| action | balance | 必填 |
请求
curl -X POST https://easyfans.shop/api/v2 \ -d key=YOUR_KEY \ -d action=balance
返回
{
"balance": "25.0000",
"currency": "USDT"
}refill补单
| 参数 | 说明 | |
|---|---|---|
| key | 你的 API key | 必填 |
| action | refill | 必填 |
| order | 订单号。多个订单请使用 orders。 | 必填 |
请求
curl -X POST https://easyfans.shop/api/v2 \ -d key=YOUR_KEY \ -d action=refill \ -d order=284290
返回
{
"refill": "8812"
}refill_status补单状态
| 参数 | 说明 | |
|---|---|---|
| key | 你的 API key | 必填 |
| action | refill_status | 必填 |
| refill | 补单号。多个补单请使用 refills。 | 必填 |
请求
curl -X POST https://easyfans.shop/api/v2 \ -d key=YOUR_KEY \ -d action=refill_status \ -d refill=8812
返回
{
"status": "Completed"
}cancel取消
| 参数 | 说明 | |
|---|---|---|
| key | 你的 API key | 必填 |
| action | cancel | 必填 |
| orders | 订单号,用逗号分隔,最多 100 个。 | 必填 |
请求
curl -X POST https://easyfans.shop/api/v2 \ -d key=YOUR_KEY \ -d action=cancel \ -d orders=284318,284317
返回
[
{ "order": 284318, "cancel": 1 },
{ "order": 284317, "cancel": { "error": "Incorrect order ID" } }
]