Документация API
Standard SMM panel API — connect other panels, bots and scripts.
- API URL
https://24service.uz/api/v2- Method
- POST (form-data / x-www-form-urlencoded / JSON)
- Key
- Create a key here: API (разработчикам)
- Response
- JSON · errors as
{"error": "…"}
services — service list
| Parameter | Описание |
|---|---|
| key | your API key |
| action | services |
Example response
[{"service": 1024, "name": "Telegram Members", "type": "Default", "category": "Telegram Members", "rate": "6500.00", "min": "10", "max": "100000", "refill": true, "cancel": true, "dripfeed": true}] add — place an order
| Parameter | Описание |
|---|---|
| key | your API key |
| action | add |
| service | service ID |
| link | link |
| quantity | quantity |
| runs | drip-feed runs (optional) |
| interval | drip-feed interval, minutes (optional) |
| comments | comments, one per line (Custom Comments) |
Example response
{"order": 23501} status — order status (one or up to 100)
| Parameter | Описание |
|---|---|
| key | your API key |
| action | status |
| order | order ID |
| orders | comma-separated order IDs (up to 100) |
Example response
{"charge": "6500.00", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "UZS"} refill — request a refill
| Parameter | Описание |
|---|---|
| key | your API key |
| action | refill |
| order | order ID |
| orders | comma-separated order IDs (up to 100) |
Example response
{"refill": "1"} refill_status — refill status
| Parameter | Описание |
|---|---|
| key | your API key |
| action | refill_status |
| refill | refill ID |
| refills | comma-separated refill IDs |
Example response
{"status": "Completed"} cancel — cancel orders
| Parameter | Описание |
|---|---|
| key | your API key |
| action | cancel |
| orders | comma-separated order IDs (up to 100) |
Example response
[{"order": 9, "cancel": 1}, {"order": 2, "cancel": {"error": "Incorrect order ID"}}] balance — balance
| Parameter | Описание |
|---|---|
| key | your API key |
| action | balance |
Example response
{"balance": "100500.00", "currency": "UZS"} Code examples
PHP
<?php
$ch = curl_init('https://24service.uz/api/v2');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query(['key' => 'YOUR_KEY', 'action' => 'add', 'service' => 1024, 'link' => 'https://t.me/channel', 'quantity' => 1000])]);
$result = json_decode(curl_exec($ch), true); Python
import requests
r = requests.post('https://24service.uz/api/v2', data={'key': 'YOUR_KEY', 'action': 'status', 'order': 23501})
print(r.json()) Node.js
const r = await fetch('https://24service.uz/api/v2', { method: 'POST', body: new URLSearchParams({ key: 'YOUR_KEY', action: 'balance' }) });
console.log(await r.json()); API виртуальных номеров (формат SMS-Activate)
Готово для ботов и скриптов под SMS-Activate / HeroSMS: замените только адрес и ключ. Ключ тот же, что и выше.
- API URL
https://24service.uz/api/sms- Method
- POST
- Key
api_key— Передавайте api_key в теле POST или в заголовке X-Api-Key (в URL не принимается).- Response
- Текст (ACCESS_…, STATUS_…) или JSON
Обычный порядок: getPrices → getNumber → getStatus каждые 5–10 с → после кода setStatus=6. Если код не пришёл — setStatus=8, деньги вернутся на баланс (через 2 минуты после покупки).
getBalance — Баланс
Example response
ACCESS_BALANCE:125000.00
getCountries — Список стран
Example response
{"0": {"id": 0, "eng": "Russia", "rus": "Россия"}, "6": {"id": 6, "eng": "Indonesia", "rus": "Индонезия"}} getServicesList — Сервисы (коды)
Example response
{"status": "success", "services": [{"code": "tg", "name": "Telegram"}, {"code": "wa", "name": "WhatsApp"}]} getPrices — Цена и количество номеров (в вашей валюте)
| Parameter | Описание |
|---|---|
| service | Код сервиса (напр. tg, ig, wa) |
| country | ID страны (из getCountries) |
Example response
{"6": {"tg": {"cost": 4200.00, "count": 1530}}} getNumber — Получить номер (списывает деньги)
| Parameter | Описание |
|---|---|
| service | Код сервиса (напр. tg, ig, wa) |
| country | ID страны (из getCountries) |
| maxPrice | Необязательно: максимальная цена — если дороже, WRONG_MAX_PRICE |
Example response
ACCESS_NUMBER:5821:6281234567890
getNumberV2 — Получить номер, ответ JSON
| Parameter | Описание |
|---|---|
| service | Код сервиса (напр. tg, ig, wa) |
| country | ID страны (из getCountries) |
| maxPrice | Необязательно: максимальная цена — если дороже, WRONG_MAX_PRICE |
Example response
{"activationId": "5821", "phoneNumber": "6281234567890", "activationCost": 4200.00, "currency": "UZS", "countryCode": "6", "activationEndTime": "2026-10-05 12:40:00"} getStatus — Проверить SMS-код
| Parameter | Описание |
|---|---|
| id | ID активации |
Example response
STATUS_WAIT_CODE STATUS_OK:12345 STATUS_CANCEL
setStatus — Сменить статус: 3 — ещё SMS, 6 — завершить, 8 — отменить (возврат)
| Parameter | Описание |
|---|---|
| id | ID активации |
| status | 3 / 6 / 8 |
Example response
ACCESS_RETRY_GET · ACCESS_ACTIVATION · ACCESS_CANCEL
getActiveActivations — Активные номера
Example response
{"status": "success", "activeActivations": [{"activationId": "5821", "phoneNumber": "6281234567890", "smsCode": null, "status": "STATUS_WAIT_CODE"}]} Ошибки: BAD_KEY, NO_BALANCE (мало средств), NO_NUMBERS, BAD_SERVICE, BAD_COUNTRY, NO_ACTIVATION, EARLY_CANCEL_DENIED, CHANNELS_LIMIT, TOO_MANY_REQUESTS.
Python
import requests, time
URL, KEY = 'https://24service.uz/api/sms', 'YOUR_KEY'
api = lambda **p: requests.post(URL, data={'api_key': KEY, **p}).text
_, aid, phone = api(action='getNumber', service='tg', country=6).split(':')
while not (s := api(action='getStatus', id=aid)).startswith('STATUS_OK'):
time.sleep(5)
print(phone, s.split(':', 1)[1]); api(action='setStatus', id=aid, status=6) Limits
- 300 requests per minute per key.
- Send the key in the POST body only — keys in the URL are rejected.
- Duplicate protection: Idempotency-Key header or idempotency_key parameter.