Skip to content
4X PANEL

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

ParameterDescription
keyYour API key
actionservices

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

ParameterDescription
keyYour API key
actionadd
serviceService ID
linkLink
quantityQuantity (not for packages and custom comments)
commentsCustom comments, one per line (custom comment services)

Example answer

{"order":23501}

status

Order status

ParameterDescription
keyYour API key
actionstatus
orderOrder ID

Example answer

{"charge":"0.2500","start_count":"3572","status":"Partial","remains":"157","currency":"USD"}

status (multiple)

Status of up to 100 orders

ParameterDescription
keyYour API key
actionstatus
ordersOrder 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

ParameterDescription
keyYour API key
actionrefill
orderOrder ID

Example answer

{"refill":"1"}

refill_status

Refill status

ParameterDescription
keyYour API key
actionrefill_status
refillRefill ID

Example answer

{"status":"Completed"}

balance

Wallet balance

ParameterDescription
keyYour API key
actionbalance

Example answer

{"balance":"100.84","currency":"USD"}

Order statuses

Pending, In progress, Completed, Partial, Canceled

Refill statuses

Pending, In progress, Completed, Rejected

Errors

ErrorsDescription
Invalid API keyThe key is wrong or was replaced, or no top up has been added yet
Incorrect service IDNo service on sale with that ID
Incorrect linkThe link is not a full web address
Quantity out of rangeBelow the minimum or above the maximum
Not enough fundsThe wallet does not cover the price
Too many requestsMore than 300 requests in a minute
Refill not availableThe 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 IDNo order of yours with that ID
Incorrect refill IDNo refill of yours with that ID
Incorrect commentsEmpty, more than 10,000 lines, or a line over 500 characters
Incorrect requestUnknown action
Bad requestThe request body could not be read