プロキシAPIドキュメント、注文と接続情報の自動化
SMMProxy開発者APIは残高照会、価格照会、プロキシ注文、接続情報一覧をHTTPS RESTで提供します。ダッシュボードのAPIキーメニューでキーを作成し、AuthorizationヘッダーにBearerキーとして送信します。
始める
- アカウントを作成し初回チャージを完了します。APIキーはチャージが1回反映されたアカウントで作成可能です。
- ダッシュボードのAPIキーメニューから新しいキーを作成します。キーは作成時に一度だけ表示されるので、すぐに保存してください。
- すべてのリクエストに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": "..." }] }注文金額
| 名前 | 形式 | 説明 |
|---|---|---|
| product | string | isp, mobile, ipv4, residential |
| country | string | 国コード2文字小文字 (us, gb, de ...) |
| quantity | integer | IP・ポート数、住宅用はGB |
| period | string | 1w 2w 1m 2m 3m 6m 9m 12m (住宅用は含まない) |
| protocol | string | httpまたはsocks5、デフォルトはhttp(両方のポートが発行されます) |
エラー
| HTTP | error | 意味 |
|---|---|---|
| 401 | unauthorized | キーがないか一致しません。お金は引き落とされません。 |
| 400 | invalid_request | 商品、国、数量、期間の値を再度確認してください。お金は引き落とされません。 |
| 402 | insufficient_balance | 残高が支払い金額より少ないです。チャージしてから再度送信してください。お金は引き落とされません。 |
| 503 | network_error | 注文送信中にネットワークエラーが発生しました。お金は引き落とされず、しばらくしてから再度送信できます。 |
| 429 | rate_limited | 1分間に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);