Points de terminaison sur cette page
GET /v1/account: Obtenir le compte actuelGET /v1/balance: Solde prépayé actuelGET /v1/balance/transactions: Historique du solde
URL de base https://localserpproxy.com/api/v1. Pour l’authentification, les erreurs et les limites, consultez la présentation de l’API.
Obtenir le compte actuel
GET/v1/account
Authentification : clé API dans l’en-tête Authorization: Bearer API_KEY.
Réponse 200 OK
{
"accountNumber": "4821773009125564",
"createdAt": "2026-10-05T09:12:44Z",
"email": null,
"emailVerified": false,
"hasPassword": false,
"twoFactorEnabled": false,
"lang": "en",
"currency": "USD",
"balance": "0.00",
"referralCode": "K7Q2MX",
"status": "active",
"notifications": {
"paymentReceipts": true,
"lowTraffic": true,
"expiryReminders": true,
"productNews": false
},
"recoveryCodesRemaining": 0
}Exemples de code
curl -s "https://localserpproxy.com/api/v1/account" \
-H "Authorization: Bearer $API_KEY"import os
import requests
API = "https://localserpproxy.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}"}
r = requests.get(f"{API}/account", headers=HEADERS, timeout=30)
r.raise_for_status()
print(r.json())// Node.js 18+ (built-in fetch), ES module
const API = 'https://localserpproxy.com/api/v1';
const res = await fetch(`${API}/account`, {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());Solde prépayé actuel
GET/v1/balance
Authentification : clé API dans l’en-tête Authorization: Bearer API_KEY.
Réponse 200 OK
{
"balance": "29.00",
"currency": "USD"
}Exemples de code
curl -s "https://localserpproxy.com/api/v1/balance" \
-H "Authorization: Bearer $API_KEY"import os
import requests
API = "https://localserpproxy.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}"}
r = requests.get(f"{API}/balance", headers=HEADERS, timeout=30)
r.raise_for_status()
print(r.json())// Node.js 18+ (built-in fetch), ES module
const API = 'https://localserpproxy.com/api/v1';
const res = await fetch(`${API}/balance`, {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());Historique du solde
GET/v1/balance/transactions
Authentification : clé API dans l’en-tête Authorization: Bearer API_KEY.
Paramètres
| Nom | Dans | Type | Obligatoire | Description |
|---|---|---|---|---|
page | query | integer | Non | ≥ 1, par défaut 1 |
perPage | query | integer | Non | 1–100, par défaut 20 |
type | query | top_up · purchase · refund · referral_payout · adjustment | Non | — |
Réponse 200 OK
{
"data": [
{
"id": "txn_2k9d1m",
"type": "top_up",
"amount": "29.00",
"balanceAfter": "29.00",
"description": "Top-up · USDT · Tron (TRC-20)",
"createdAt": "2026-10-05T14:03:11Z",
"orderId": null,
"topUpId": "top_7d2kq9x1"
}
],
"pagination": {
"page": 1,
"perPage": 20,
"total": 1,
"totalPages": 1
}
}Exemples de code
curl -s "https://localserpproxy.com/api/v1/balance/transactions" \
-H "Authorization: Bearer $API_KEY"import os
import requests
API = "https://localserpproxy.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}"}
r = requests.get(f"{API}/balance/transactions", headers=HEADERS, timeout=30)
r.raise_for_status()
print(r.json())// Node.js 18+ (built-in fetch), ES module
const API = 'https://localserpproxy.com/api/v1';
const res = await fetch(`${API}/balance/transactions`, {
headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());