Skip to content
panelhi

API v2

Connect your own panel, bot or script. The API follows the format most SMM panels use, so existing integrations usually work after changing the address and key.

Address and key

Send every request as POST to the address below, as a form or JSON. Every answer is JSON.

Create your key in the dashboard under API. Send it in the key field of every request.

Get your API key
Endpoint
https://panelhi.com/api/v2
Method
POST (application/x-www-form-urlencoded, application/json)

Actions

List services

action=services

Returns every service with its ID, name, category, price per 1,000, limits and whether refill and cancel are available.

FieldMeaning
keyYour API key
actionName of the action
POST https://panelhi.com/api/v2
key=phi_••••••••&action=services

Example answer

[
  {
    "service": 153,
    "name": "YouTube Views · Quick",
    "type": "Default",
    "platform": "youtube",
    "category": "YouTube Views",
    "rate": "0.4550",
    "min": 500,
    "max": 1000000,
    "refill": false,
    "cancel": true
  }
]

Add an order

action=add

Places an order and takes the total from your balance. Returns the order number.

FieldMeaning
keyYour API key
actionName of the action
serviceService ID
linkPublic link
quantityWhole number within the service limits
POST https://panelhi.com/api/v2
key=phi_••••••••&action=add&service=153&link=https://www.youtube.com/watch?v=Xb7mQ2kLp4s&quantity=5000

Example answer

{ "order": "48302917" }

Order status

action=status

Status of one order (order) or up to 100 orders separated by commas (orders).

FieldMeaning
keyYour API key
actionName of the action
orderOrder number
ordersOrder numbers, separated by commas
POST https://panelhi.com/api/v2
key=phi_••••••••&action=status&order=48302917

Example answer

{
  "charge": "2.2750",
  "start_count": 0,
  "status": "Pending",
  "remains": 5000,
  "currency": "USD"
}

Balance

action=balance

Your current balance in USD.

FieldMeaning
keyYour API key
actionName of the action
POST https://panelhi.com/api/v2
key=phi_••••••••&action=balance

Example answer

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

Cancel orders

action=cancel

Cancels pending orders, up to 100 separated by commas. The amount returns to your balance.

FieldMeaning
keyYour API key
actionName of the action
ordersOrder numbers, separated by commas
POST https://panelhi.com/api/v2
key=phi_••••••••&action=cancel&orders=48302917,48302955

Example answer

[
  {
    "order": "48302917",
    "cancel": 1
  },
  {
    "order": "48302955",
    "cancel": {
      "error": "Order cannot be canceled"
    }
  }
]

Request a refill

action=refill

Requests a refill for a completed or partial order of a refill option, within its period.

FieldMeaning
keyYour API key
actionName of the action
orderOrder number
POST https://panelhi.com/api/v2
key=phi_••••••••&action=refill&order=48302917

Example answer

{ "refill": "R4410592" }

Refill status

action=refill_status

Status of a refill request by its number.

FieldMeaning
keyYour API key
actionName of the action
refillRefill request number
POST https://panelhi.com/api/v2
key=phi_••••••••&action=refill_status&refill=R4410592

Example answer

{ "status": "Pending" }

Status values

Pending, In progress, Completed, Partial and Canceled. Refill requests answer Pending, Completed or Rejected.

Errors

A failed request answers with an error field, for example Invalid API key, Invalid service, Invalid link, Quantity out of range or Not enough funds on balance.

Limits

Up to 300 requests a minute per key. Wrong keys are limited to 30 tries in 10 minutes per network.