API
JSON melalui HTTPS. Kirim kunci API Anda di header Authorization. Maksimal 300 permintaan per menit.
Alamat dasar
https://wingproxy.com/api/v1
Autentikasi
Header Authorization: Bearer YOUR_API_KEY. Buat kunci di halaman Kunci API setelah isi saldo pertama Anda.
curl https://wingproxy.com/api/v1/account \ -H "Authorization: Bearer YOUR_API_KEY"
GET /account
Saldo dan trafik.
Contoh respons
{
"balance": "42.50",
"traffic_left_gb": "8.73",
"traffic_used_gb": "1.27"
}GET /prices
Harga per GB untuk setiap ukuran paket.
Contoh respons
[
{ "from_gb": 1, "per_gb": "4.00" },
{ "from_gb": 10, "per_gb": "3.50" }
]POST /traffic {"gb": 10}
Membeli trafik dari saldo Anda.
Contoh respons
{
"id": 311,
"gb": 10,
"price": "35.00",
"status": "added"
}GET /list?country=de&session=sticky&minutes=10&count=5&format=hostport
Membuat baris proxy. country: kode negara, atau kosong untuk negara mana saja. session: rotating (default) atau sticky. minutes: 1 sampai 120 (default 10, hanya sticky). count: 1 sampai 1000 (default 10). format: hostport (host:port:user:pass, default) atau url (user:pass@host:port). protocol: http (default) atau socks5.
Contoh respons
{
"lines": [ "gate.example:8000:user-country-de-session-a1b2-time-10:pass" ]
}GET /usage
Trafik per hari selama 30 hari terakhir.
Contoh respons
[
{ "day": "2026-10-13", "gb": "0.84" }
]Error
Error mengembalikan status selain 2xx dan body JSON berisi kode error.
| unauthorized | Kunci API tidak ada atau salah |
| not_allowed | API terbuka setelah isi saldo pertama Anda |
| bad_request | Ada kolom yang kosong atau salah |
| not_enough_balance | Isi saldo terlebih dahulu |
| not_added | Trafik tidak bisa ditambahkan; harganya sudah kembali ke saldo Anda |
| checking | Pemasok belum mengonfirmasi; kami memeriksanya lalu menambahkan trafik atau mengembalikan harganya |
| no_login | Beli trafik terlebih dahulu; login proxy Anda dibuat saat itu |
| rate_limited | Terlalu banyak permintaan dalam satu menit |