Principal
API v2

Reseller API

Connect MyStrm to your panel and resell our services automatically: orders, statuses and balance through a single endpoint.

Compatible with Perfect Panel and SmartPanel

API URL
https://mystrm.ru/api/v2
Method
POST
Response
JSON

Getting started

  1. 1Sign up and top up your balance
  2. 2Copy your API key in your account
  3. 3Add us as a provider in your panel: API URL and key

POST only. Send parameters as a form (application/x-www-form-urlencoded) or as JSON in the request body.

cURL
curl -X POST \
  https://mystrm.ru/api/v2 \
  -d key=YOUR_API_KEY \
  -d action=balance

Add order

action=add

Creates an order. Fields depend on the service type — pick a type:

ParameterDescription
keyrequiredYour API key
actionrequiredadd
servicerequiredService ID (from the services list)
linkrequiredLink to page
quantityrequiredNeeded quantity
runsoptionalRuns to deliver
intervaloptionalInterval. Possible values: 10, 20, 30, 40, 50, 60
Request · cURL
curl -X POST \
  https://mystrm.ru/api/v2 \
  -d key=YOUR_API_KEY \
  -d action=add \
  -d service=1 \
  -d link=https://twitch.tv/channel \
  -d quantity=1000
Response
{
  "status": "success",
  "order": 23501
}

Order status

action=status

Current status of one order, the charge and what remains to be delivered.

ParameterDescription
keyrequiredYour API key
actionrequiredstatus
orderrequiredOrder ID
Request · cURL
curl -X POST \
  https://mystrm.ru/api/v2 \
  -d key=YOUR_API_KEY \
  -d action=status \
  -d order=23501
Response
{
  "order": 23501,
  "status": "Processing",
  "start_count": 0,
  "remains": 0,
  "charge": 90.3,
  "currency": "RUB"
}

Possible statuses: Pending Processing Completed Canceled

Multiple orders status

action=status

Statuses of several orders in one request.

ParameterDescription
keyrequiredYour API key
actionrequiredstatus
ordersrequiredOrder IDs separated by comma (up to 100)
Request · cURL
curl -X POST \
  https://mystrm.ru/api/v2 \
  -d key=YOUR_API_KEY \
  -d action=status \
  -d orders=12,13,2
Response
{
  "12": {
    "order": 12,
    "status": "Completed",
    "start_count": 0,
    "remains": 0,
    "charge": 126,
    "currency": "RUB"
  },
  "13": {
    "order": 13,
    "status": "Pending",
    "start_count": 0,
    "remains": 0,
    "charge": 63,
    "currency": "RUB"
  }
}

Services list

action=services

All available services with ID, rate per 1000, minimum and maximum.

ParameterDescription
keyrequiredYour API key
actionrequiredservices
Request · cURL
curl -X POST \
  https://mystrm.ru/api/v2 \
  -d key=YOUR_API_KEY \
  -d action=services
Response
[
  {
    "service": 19543,
    "name": "Зрители Kick.com | Уникальные | 1 час",
    "type": "Default",
    "category": "Kick",
    "desc": "Старт 0-15 минут",
    "rate": 240,
    "min": 10,
    "max": 5000,
    "multiple": 1,
    "dripfeed": false,
    "refill": false
  }
]

Balance

action=balance

The remaining balance of your account.

ParameterDescription
keyrequiredYour API key
actionrequiredbalance
Request · cURL
curl -X POST \
  https://mystrm.ru/api/v2 \
  -d key=YOUR_API_KEY \
  -d action=balance
Response
{
  "status": "success",
  "balance": 1250.4,
  "currency": "RUB"
}

Errors

On failure the response is an object with an error field — e.g. wrong key, not enough funds or invalid link.

Response
{
  "error": "Not enough funds on User balance"
}

Partners, referrers and resellers

Want to partner with us (our logo on your stream and a link in the description — and we send you viewers), refer clients or resell? Message us in the chat on the site.

Chat with us
type: default