SMMProxy

เอกสาร API Proxy การดำเนินการคำสั่งซื้อและข้อมูลการเชื่อมต่ออัตโนมัติ

SMMProxy Developer API ให้บริการตรวจสอบยอดเงิน ตรวจสอบราคาสั่งซื้อ Proxy รายการข้อมูลการเชื่อมต่อผ่าน HTTPS REST สร้างคีย์ในเมนู API Key ในแดชบอร์ด และส่งในหัวข้อ Authorization ด้วย Bearer Key

เริ่มต้น

  1. สร้างบัญชีและเติมเงินครั้งแรก API Key สร้างได้จากบัญชีที่เติมเงินแล้วอย่างน้อยหนึ่งครั้ง
  2. สร้างคีย์ใหม่ในเมนู API key ของแดชบอร์ด คีย์จะแสดงเพียงครั้งเดียวเมื่อสร้าง ดังนั้นให้บันทึกทันที
  3. รวมคีย์ Authorization: Bearer ในทุกคำขอ การตอบกลับเป็น JSON และจะมีฟิลด์ ok เสมอ

ที่อยู่หลัก: https://smmproxy.io/api/v1

curl -H "Authorization: Bearer smpk_YOUR_KEY" https://smmproxy.io/api/v1/balance

GET/api/v1/balance

ตรวจสอบยอดเงิน

ตัวอย่างการตอบกลับ
{ "ok": true, "balance": "48.20", "currency": "USD" }

GET/api/v1/products

ค้นหาสินค้า ประเทศ และราคา

ตัวอย่างการตอบกลับ
{ "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

สั่งซื้อพร็อกซี่ (ชำระจากยอดเงิน)

เนื้อหาคำขอ
{ "product": "isp", "country": "us", "quantity": 5, "period": "1m" }
ตัวอย่างการตอบกลับ
{ "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

รายการสั่งซื้อ (ล่าสุด 100 รายการ)

ตัวอย่างการตอบกลับ
{ "ok": true, "orders": [{ "id": "OR-7K2M-Q8XD4P", "status": "active", "total": "6.45" }] }

GET/api/v1/proxies?order=OR-7K2M-Q8XD4P

รายการข้อมูลการเชื่อมต่อ

ตัวอย่างการตอบกลับ
{ "ok": true, "proxies": [{ "host": "198.51.100.24", "http_port": 10842, "socks5_port": 20842,
  "username": "u7kq2m", "password": "Xc81pLq0Zr", "country": "us", "expires_at": "..." }] }

ราคาสั่งซื้อ

ชื่อรูปแบบคำอธิบาย
productstringisp, mobile, ipv4, residential
countrystringรหัสประเทศ 2 ตัวอักษรพิมพ์เล็ก (us, gb, de ...)
quantityintegerจำนวน IP·พอร์ต, residential เป็น GB
periodstring1w 2w 1m 2m 3m 6m 9m 12m (ไม่รวม residential)
protocolstringhttp หรือ socks5, ค่าเริ่มต้นเป็น http (จะออกพอร์ตทั้งสองแบบ)

ข้อผิดพลาด

HTTPerrorความหมาย
401unauthorizedคีย์ไม่ถูกต้องหรือไม่มี เงินจะไม่ถูกหัก
400invalid_requestโปรดตรวจสอบสินค้า ประเทศ จำนวน และระยะเวลาอีกครั้ง เงินจะไม่ถูกหัก
402insufficient_balanceยอดเงินไม่เพียงพอสำหรับการชำระเงิน กรุณาเติมเงินแล้วลองอีกครั้ง เงินจะไม่ถูกหัก
503network_errorเกิดข้อผิดพลาดเครือข่ายขณะส่งคำสั่งซื้อ เงินจะไม่ถูกหักและสามารถลองอีกครั้งในภายหลัง
429rate_limitedส่งได้สูงสุด 300 ครั้งต่อนาที

ตัวอย่าง Python

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

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);
เอกสาร API Proxy ยอดคงเหลือ·ราคา·คำสั่งซื้อ·รายการ Proxy | SMMProxy