Proxy-API-Dokumentation, Automatisierung von Bestellungen und Zugangsdaten
Die SMMProxy-API bietet Guthabenabfrage, Preisprüfung, Proxy-Bestellung und Verbindungsdaten per HTTPS REST. Erstelle einen API-Key im Dashboard und sende ihn als Bearer-Token im Header.
Loslegen
- Erstellen Sie ein Konto und führen Sie die erste Aufladung durch. API-Keys sind erst nach einer erfolgreichen Aufladung verfügbar.
- Erstellen Sie einen neuen API-Schlüssel im API-Schlüssel-Menü des Dashboards. Der Schlüssel wird nur einmal beim Erstellen angezeigt, speichern Sie ihn sofort.
- Fügen Sie jedem Request den Authorization: Bearer-Schlüssel hinzu. Die Antwort erfolgt im JSON-Format und enthält immer ein ok-Feld.
Standardadresse: https://smmproxy.io/api/v1
curl -H "Authorization: Bearer smpk_YOUR_KEY" https://smmproxy.io/api/v1/balance
GET/api/v1/balance
Guthaben prüfen
Antwortbeispiel
{ "ok": true, "balance": "48.20", "currency": "USD" }GET/api/v1/products
Produkt, Land und Preis prüfen
Antwortbeispiel
{ "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 bestellen (Zahlung vom Guthaben)
Anfragekörper
{ "product": "isp", "country": "us", "quantity": 5, "period": "1m" }Antwortbeispiel
{ "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
Bestellliste (letzte 100)
Antwortbeispiel
{ "ok": true, "orders": [{ "id": "OR-7K2M-Q8XD4P", "status": "active", "total": "6.45" }] }GET/api/v1/proxies?order=OR-7K2M-Q8XD4P
Liste der Verbindungsinformationen
Antwortbeispiel
{ "ok": true, "proxies": [{ "host": "198.51.100.24", "http_port": 10842, "socks5_port": 20842,
"username": "u7kq2m", "password": "Xc81pLq0Zr", "country": "us", "expires_at": "..." }] }Bestellwert
| Name | Format | Beschreibung |
|---|---|---|
| product | string | isp, mobile, ipv4, residential |
| country | string | Zweistelliger Ländercode in Kleinbuchstaben (us, gb, de ...) |
| quantity | integer | Anzahl IPs/Ports (Residential: GB) |
| period | string | 1w 2w 1m 2m 3m 6m 9m 12m (ohne Residential) |
| protocol | string | HTTP oder SOCKS5, standardmäßig HTTP (beide Ports werden bereitgestellt) |
Fehler
| HTTP | error | Bedeutung |
|---|---|---|
| 401 | unauthorized | Schlüssel fehlt oder ist falsch. Das Geld wird nicht abgebucht. |
| 400 | invalid_request | Bitte überprüfen Sie Produkt, Land, Menge und Dauer erneut. Das Geld wird nicht abgebucht. |
| 402 | insufficient_balance | Ihr Guthaben ist niedriger als der Zahlungsbetrag. Bitte laden Sie auf und versuchen Sie es erneut. Das Geld wird nicht abgebucht. |
| 503 | network_error | Netzwerkfehler während der Bestellung. Das Geld wird nicht abgebucht. Sie können es später erneut versuchen. |
| 429 | rate_limited | Maximal 300 Anfragen pro Minute. |
Python-Beispiel
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-Beispiel
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);