从这里开始
快速开始
只需五步,即可将你的面板或机器人接入 v3 密钥 + 操作(key + action)API:创建账户、创建 API 密钥、列出服务、下单并跟踪订单。
发送第一个请求
列出服务是最简单的只读调用。
action=services会返回你可以下单的所有服务,包含你自己的价格(rate)、限制、标签、额外字段和细水长流限制。请将YOUR_API_KEY替换为第 2 步中的密钥。# 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";响应200 OK [ { "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 } ]下单
从第 3 步中选择一个
service,在/dashboard/wallet充值,然后用link和quantity调用action=add。发送你自己的request_id,这样重试永远不会产生第二个订单。任何订单在最初 15 秒内都可以全额退款取消。下单接口参考curl -X POST https://notpanel.com/api/v3 \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "key=YOUR_API_KEY&action=add&service=7&link=https://instagram.com/example&quantity=1000&request_id=550e8400-e29b-41d4-a716-446655440000"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: "add", service: "7", link: "https://instagram.com/example", quantity: "1000", request_id: "550e8400-e29b-41d4-a716-446655440000", }), }); const data = await res.json(); console.log(data);import requests res = requests.post( "https://notpanel.com/api/v3", data={ "key": "YOUR_API_KEY", "action": "add", "service": "7", "link": "https://instagram.com/example", "quantity": "1000", "request_id": "550e8400-e29b-41d4-a716-446655440000", }, ) print(res.json())<?php $body = http_build_query([ 'key' => 'YOUR_API_KEY', 'action' => 'add', 'service' => '7', 'link' => 'https://instagram.com/example', 'quantity' => '1000', 'request_id' => '550e8400-e29b-41d4-a716-446655440000', ]); $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, 'ignore_errors' => true, ], ])); print_r(json_decode($response, true));跟踪订单
用
action=status查询单个订单,或一次最多查询 100 个;也可以注册 webhook,在订单变化时收到通知。action=order_details会显示订单的全部信息,并可通过你自己的request_id再次找到该订单。