Proxy API dokümanı, sipariş ve bağlantı bilgileri otomasyonu
SMMProxy geliştirici API'si bakiye sorgulama, fiyat sorgulama, proxy siparişi ve bağlantı bilgileri listesini HTTPS REST olarak sunar. Paneldeki API anahtarı menüsünden bir anahtar oluşturun ve Authorization başlığına Bearer anahtarını ekleyin.
Başlayın
- Hesap oluşturun ve ilk yüklemenizi yapın. API anahtarı yükleme yapılmış hesaplarda oluşturulabilir.
- Panelin API anahtarı menüsünden yeni bir anahtar oluşturun. Anahtar yalnızca oluşturulduğunda gösterilir, bu yüzden hemen kaydedin.
- Tüm isteklere Authorization: Bearer anahtarını ekleyin. Yanıtlar JSON formatındadır ve her zaman bir ok alanı bulunur.
Temel adres: https://smmproxy.io/api/v1
curl -H "Authorization: Bearer smpk_YOUR_KEY" https://smmproxy.io/api/v1/balance
GET/api/v1/balance
Bakiye sorgulama
Yanıt Örneği
{ "ok": true, "balance": "48.20", "currency": "USD" }GET/api/v1/products
Ürün, ülke ve fiyat sorgulama
Yanıt Örneği
{ "ok": true, "periods": ["1w","2w","1m","2m","3m","6m","9m","12m"],
"products": [{ "product": "isp", "unit": "ip", "countries": [{ "country": "us", "monthly": "1.29" }] }] }POST/api/v1/orders
Proxy siparişi (bakiyeden ödeme)
İstek Gövdesi
{ "product": "isp", "country": "us", "quantity": 5, "period": "1m" }Yanıt Örneği
{ "ok": true, "order": { "id": "OR-7K2M-Q8XD4P", "product": "isp", "country": "us",
"quantity": 5, "period": "1m", "total": "6.45", "expires_at": "2026-11-21T09:00:00.000Z" } }GET/api/v1/orders
Sipariş listesi (son 100 işlem)
Yanıt Örneği
{ "ok": true, "orders": [{ "id": "OR-7K2M-Q8XD4P", "status": "active", "total": "6.45" }] }GET/api/v1/proxies?order=OR-7K2M-Q8XD4P
Bağlantı bilgileri listesi
Yanıt Örneği
{ "ok": true, "proxies": [{ "host": "198.51.100.24", "http_port": 10842, "socks5_port": 20842,
"username": "u7kq2m", "password": "Xc81pLq0Zr", "country": "us", "expires_at": "..." }] }Sipariş tutarı
| İsim | Format | Açıklama |
|---|---|---|
| product | string | isp, mobile, ipv4, residential |
| country | string | 2 harfli küçük ülke kodu (us, gb, de ...) |
| quantity | integer | IP/port sayısı, konut için GB |
| period | string | 1h 2h 1a 2a 3a 6a 9a 12a (konut için eklenmez) |
| protocol | string | http veya socks5, varsayılan http (her iki port da verilir) |
Hata
| HTTP | error | Anlam |
|---|---|---|
| 401 | unauthorized | Anahtar yok veya uyumsuz. Para çekilmez. |
| 400 | invalid_request | Ürün, ülke, miktar ve süre değerlerini tekrar kontrol edin. Para çekilmez. |
| 402 | insufficient_balance | Bakiye ödeme tutarından az. Yükleme yaptıktan sonra tekrar gönderin. Para çekilmez. |
| 503 | network_error | Sipariş iletiminde ağ hatası. Para çekilmez ve kısa süre sonra tekrar gönderilebilir. |
| 429 | rate_limited | Dakikada 300 kez gönderebilirsiniz. |
Python örneği
import requests
API = "https://smmproxy.io/api/v1"
H = {"Authorization": "Bearer smpk_YOUR_KEY"}
order = requests.post(f"{API}/orders", headers=H, json={
"product": "isp", "country": "us", "quantity": 5, "period": "1m"}).json()
if order["ok"]:
proxies = requests.get(f"{API}/proxies", headers=H, params={"order": order["order"]["id"]}).json()
for p in proxies["proxies"]:
print(f'{p["host"]}:{p["http_port"]}:{p["username"]}:{p["password"]}')Node.js örneği
const API = "https://smmproxy.io/api/v1";
const H = { Authorization: "Bearer smpk_YOUR_KEY", "Content-Type": "application/json" };
const r = await fetch(API + "/orders", { method: "POST", headers: H,
body: JSON.stringify({ product: "mobile", country: "gb", quantity: 1, period: "1m" }) });
const j = await r.json();
console.log(j.ok ? j.order.id : j.error);