API
The standard SMM panel API v2. Tools and panels that support this format can connect with your API key.
- Endpoint
- https://4xpanel.com/api/v2
- Method
- POST. Send form fields (or JSON) by POST. Answers are JSON. Errors come as {"error": "..."}.
- API key
- Create it on the API key page after your first top up is added.
- Limits
- 300 requests per minute per key. Status takes up to 100 order IDs at once.
services
List of services
| Parameter | Description |
|---|---|
| key | Your API key |
| action | services |
Example answer
[{"service":1,"name":"Video views","type":"Default","category":"TikTok - Views","rate":"0.0500","min":"100","max":"1000000","refill":true,"cancel":false}]add
Place an order
| Parameter | Description |
|---|---|
| key | Your API key |
| action | add |
| service | Service ID |
| link | Link |
| quantity | Quantity (not for packages and custom comments) |
| comments | Custom comments, one per line (custom comment services) |
Example answer
{"order":23501}status
Order status
| Parameter | Description |
|---|---|
| key | Your API key |
| action | status |
| order | Order ID |
Example answer
{"charge":"0.2500","start_count":"3572","status":"Partial","remains":"157","currency":"USD"}status (multiple)
Status of up to 100 orders
| Parameter | Description |
|---|---|
| key | Your API key |
| action | status |
| orders | Order IDs separated by commas |
Example answer
{"23501":{"charge":"0.2500","start_count":"3572","status":"Partial","remains":"157","currency":"USD"},"10":{"error":"Incorrect order ID"}}refill
Ask for a refill
| Parameter | Description |
|---|---|
| key | Your API key |
| action | refill |
| order | Order ID |
Example answer
{"refill":"1"}refill_status
Refill status
| Parameter | Description |
|---|---|
| key | Your API key |
| action | refill_status |
| refill | Refill ID |
Example answer
{"status":"Completed"}balance
Wallet balance
| Parameter | Description |
|---|---|
| key | Your API key |
| action | balance |
Example answer
{"balance":"100.84","currency":"USD"}Order statuses
Pending, In progress, Completed, Partial, Canceled
Refill statuses
Pending, In progress, Completed, Rejected
Errors
| Errors | Description |
|---|---|
| Invalid API key | The key is wrong or was replaced, or no top up has been added yet |
| Incorrect service ID | No service on sale with that ID |
| Incorrect link | The link is not a full web address |
| Quantity out of range | Below the minimum or above the maximum |
| Not enough funds | The wallet does not cover the price |
| Too many requests | More than 300 requests in a minute |
| Refill not available | The service has no refill, the order is not finished, the period is over, or a refill was asked less than 24 hours ago |
| Incorrect order ID | No order of yours with that ID |
| Incorrect refill ID | No refill of yours with that ID |
| Incorrect comments | Empty, more than 10,000 lines, or a line over 500 characters |
| Incorrect request | Unknown action |
| Bad request | The request body could not be read |