Nomer API
Ro'yxatdan o'tish uchun virtual nomer oling va SMS kodni API orqali qabul qiling. Narxlar sizning valyutangizda qaytadi, hisob-kitob so'mda.
Endpoint
https://seenuzpro.uz/v1So'rov
GET · JSONKalit
key=SIZNING_KALITBu API uchun alohida kalit: @seenuzprobot → API → Nomer API. Javoblar doim
ok maydoni bilan keladi.Nomer olinganda narx balansdan darhol yechiladi. Nomer berilmasa (xato yoki nomer qolmagan) pul to'liq qaytadi.
GETaction=getCountrys
Mamlakatlar va narxlar
Mavjud mamlakatlar, narx (sizning valyutangizda) va bo'sh nomerlar soni.
| Parametr | Tavsif | |
|---|---|---|
key | majburiy | API kalitingiz |
action | majburiy | getCountrys |
GET https://seenuzpro.uz/v1?key=SIZNING_KALIT&action=getCountrys
{
"ok": true,
"result": {
"countries": {
"PS": { "name": "Palestine", "price": "14375", "available_count": 82, "currency": "UZS" },
"ID": { "name": "Indonesia", "price": "14950", "available_count": 140, "currency": "UZS" }
}
}
}GETaction=getNumber
Nomer olish
Tanlangan mamlakatdan nomer beradi va narxni yechadi. Javobdagi hash_code bilan keyin SMS kod olinadi.
| Parametr | Tavsif | |
|---|---|---|
key | majburiy | API kalitingiz |
action | majburiy | getNumber |
country | majburiy | Mamlakat kodi getCountrys dan (masalan PS) |
GET https://seenuzpro.uz/v1?key=SIZNING_KALIT&action=getNumber&country=PS
{
"ok": true,
"result": {
"phone": "+970591234567",
"hash_code": "a8f3c1e9b2",
"price": "14375",
"currency": "UZS",
"price_uzs": "14375",
"new_balance": "85625",
"new_balance_uzs": "85625"
}
}{
"ok": false,
"error": "INSUFFICIENT_BALANCE",
"msg": "Hisobingizda mablag' yetarli emas!",
"need": 14375,
"have": 9000
}GETaction=getCode
SMS kodni olish
Kod hali kelmagan bo'lsa, bir necha soniyadan keyin qayta so'rang (har 5–10 soniyada).
| Parametr | Tavsif | |
|---|---|---|
key | majburiy | API kalitingiz |
action | majburiy | getCode |
hash_code | majburiy | getNumber javobidagi hash_code |
GET https://seenuzpro.uz/v1?key=SIZNING_KALIT&action=getCode&hash_code=a8f3c1e9b2
{
"ok": true,
"result": {
"code": "482913"
}
}GETaction=getBalance
Balans
Balans sizning valyutangizda va so'mda.
| Parametr | Tavsif | |
|---|---|---|
key | majburiy | API kalitingiz |
action | majburiy | getBalance |
GET https://seenuzpro.uz/v1?key=SIZNING_KALIT&action=getBalance
{
"ok": true,
"result": {
"balance": "85625",
"balance_uzs": "85625.00",
"currency": "UZS"
}
}GETaction=getInfo
Hisob ma'lumoti
Hisob holati, til va yashirilgan kalit.
| Parametr | Tavsif | |
|---|---|---|
key | majburiy | API kalitingiz |
action | majburiy | getInfo |
GET https://seenuzpro.uz/v1?key=SIZNING_KALIT&action=getInfo
{
"ok": true,
"result": {
"user_id": "412",
"telegram_id": "123456789",
"status": "active",
"balance": "85625",
"balance_uzs": "85625.00",
"currency": "UZS",
"language": "uz",
"api_key": "a1b2********y9z0"
}
}Xatolar
Xatoda ok: false, error (kod) va msg (matn) qaytadi.
| Javob | Ma'nosi va nima qilish kerak |
|---|---|
API_KEY_EMPTY | key yuborilmagan. |
INVALID_KEY | Kalit noto'g'ri yoki hisob bloklangan. |
INSUFFICIENT_BALANCE | Balans yetmaydi. need — kerakli, have — mavjud summa (so'm). |
COUNTRY_NOT_FOUND | Bunday mamlakat kodi yo'q — getCountrys dan oling. |
BAD_HASH | hash_code noto'g'ri formatda. |
API_ERROR | Nomer xizmati vaqtincha javob bermadi — biroz kutib qayta urining. Pul yechilmaydi. |
Kod misollari
# 1) nomer olish curl "https://seenuzpro.uz/v1?key=YOUR_KEY&action=getNumber&country=PS" # 2) kodni olish (kod kelguncha har 5-10 soniyada) curl "https://seenuzpro.uz/v1?key=YOUR_KEY&action=getCode&hash_code=a8f3c1e9b2"
<?php
$api = 'https://seenuzpro.uz/v1';
$key = 'YOUR_KEY';
$num = json_decode(file_get_contents("$api?key=$key&action=getNumber&country=PS"), true);
if (empty($num['ok'])) exit($num['msg'] ?? 'error');
echo "Nomer: {$num['result']['phone']}\n";
for ($i = 0; $i < 24; $i++) { // ~2 daqiqa
sleep(5);
$c = json_decode(file_get_contents("$api?key=$key&action=getCode&hash_code={$num['result']['hash_code']}"), true);
if (!empty($c['result']['code'])) { echo "Kod: {$c['result']['code']}\n"; break; }
}
import time, requests
API = 'https://seenuzpro.uz/v1'
KEY = 'YOUR_KEY'
num = requests.get(API, params={'key': KEY, 'action': 'getNumber', 'country': 'PS'}, timeout=30).json()
if not num.get('ok'):
raise SystemExit(num.get('msg'))
print('Nomer:', num['result']['phone'])
for _ in range(24): # ~2 daqiqa
time.sleep(5)
c = requests.get(API, params={'key': KEY, 'action': 'getCode', 'hash_code': num['result']['hash_code']}, timeout=30).json()
if c.get('result', {}).get('code'):
print('Kod:', c['result']['code'])
break