三步开始
第一个请求
action=services 只读取数据,可以放心尝试。将 YOUR_API_KEY 替换为 API 页面中的密钥。
- 方法
- POST
- 请求体
- application/x-www-form-urlencoded
- 响应
- 服务的 JSON 数组
# List the services you can order
curl -X POST https://notpanel.com/api/v3 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=services"const res = await fetch("https://notpanel.com/api/v3", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
key: "YOUR_API_KEY",
action: "services",
}),
});
const services = await res.json();
console.log(`Found ${services.length} services`);import requests
res = requests.post(
"https://notpanel.com/api/v3",
data={"key": "YOUR_API_KEY", "action": "services"},
)
services = res.json()
print(f"Found {len(services)} services")<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'services',
]);
$response = file_get_contents('https://notpanel.com/api/v3', false, stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $body,
],
]));
$services = json_decode($response, true);
echo "Found " . count($services) . " services\n";
[
{
"service": "7",
"name": "Instagram Followers",
"type": "Default",
"category": "Instagram Followers",
"rate": "1.20",
"min": "100",
"max": "10000",
"refill": true,
"cancel": true,
"dripfeed": true,
"type_key": "default",
"canonical_name": "Instagram Followers",
"name_language": "en",
"platform": "instagram",
"tags": ["refill", "cancel", "drip_feed"],
"fields": [],
"drip_feed": {
"mode": "batches",
"min_runs": 2,
"max_runs": 100,
"min_interval_minutes": 1,
"max_interval_minutes": 1440,
"max_total_minutes": 2880
},
"step": 1,
"availability": "available",
"average_time_minutes": 30
}
]API 参考
每个操作都是向 API 地址发送的 POST 请求,并带有各自的 action 值。
指南
API 包含哪些内容
API 密钥身份验证
每个密钥对应一个绑定账户的机密。你的所有密钥共用该账户每分钟的请求限制,任何密钥都可以在控制面板中撤销。
清晰的速率限制
每个账户一个随消费增长的限制,外加对高负载操作的少量专项限制。每个响应都带有 X-RateLimit 响应头。
签名的 webhook
当订单完成、部分交付或取消,以及补充完成时,每次调用发送一个签名事件。至少送达一次,并带重试。
可安全重试的订单
发送你自己的
request_id,重复请求就永远不会产生第二个订单。没有它时,60 秒内相同的 add 会返回第一个订单。开始阶段免费取消
任何订单在最初 15 秒内都可以全额退款取消。之后,在支持取消的服务上,取消请求同样有效。
面板直接兼容
使用标准密钥 + 操作 API 的面板只需切换基础 URL。/api/v1、/api/v2 和 /api/v3 地址的行为完全相同。