Overview
Single instruction that includes REST API methods, Public Proxy API params, and all error codes.
Base URL
https://proxyleet.com/dev/{method}
Authorization
Header authorization: your_api_key is required for all methods except createKey.
Quick Start
curl -X POST https://proxyleet.com/dev/getBalance \
-H "authorization: YOUR_KEY"
REST API Methods
createKey
POST /dev/createKey
Purpose: get API key by email.
Body: {"email":"user@example.com"}
Response: {"code":200,"description":"The operation was completed successfully"}
curl -X POST https://proxyleet.com/dev/createKey \
-H "Content-Type: application/json" \
-d '{"email":"user@example.com"}'
getBalance
POST /dev/getBalance
Purpose: get account balance.
Body: not required.
Response: {"balance":123.45}
curl -X POST https://proxyleet.com/dev/getBalance \
-H "authorization: YOUR_KEY"
getAllOrders
POST /dev/getAllOrders
Purpose: get list of orders.
Body: not required.
Response: [{"id":1},{"id":2}]
curl -X POST https://proxyleet.com/dev/getAllOrders \
-H "authorization: YOUR_KEY"
getOrder
POST /dev/getOrder
Purpose: get order details.
Body: {"order_id":123}
Response: order details object.
curl -X POST https://proxyleet.com/dev/getOrder \
-H "authorization: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"order_id":123}'
getBasePrivate
POST /dev/getBasePrivate
Purpose: get private proxy catalog.
Body: not required.
Response: list of available products.
curl -X POST https://proxyleet.com/dev/getBasePrivate \
-H "authorization: YOUR_KEY"
getPricePrivate
POST /dev/getPricePrivate
Purpose: get private proxy price.
Body: {"idProxy":1001}
Response: pricing details for selected product.
curl -X POST https://proxyleet.com/dev/getPricePrivate \
-H "authorization: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"idProxy":1001}'
buyPrivateProxy
POST /dev/buyPrivateProxy
Purpose: purchase private proxies.
Body: {"proxy_id":1001,"proxy_count":1,"period":30}
Response: {"success":true,"order":123,"balance":100}
curl -X POST https://proxyleet.com/dev/buyPrivateProxy \
-H "authorization: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"proxy_id":1001,"proxy_count":1,"period":30}'
changeRotationPeriod
POST /dev/changeRotationPeriod
Purpose: change IP rotation period.
Body: {"proxy_id":555,"time":15}
Response: operation status code.
curl -X POST https://proxyleet.com/dev/changeRotationPeriod \
-H "authorization: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"proxy_id":555,"time":15}'
getPricePublic
POST /dev/getPricePublic
Purpose: get public proxy price.
Body: {"days":30}
Response: pricing details for selected period.
curl -X POST https://proxyleet.com/dev/getPricePublic \
-H "authorization: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"days":30}'
buyPublicProxy
POST /dev/buyPublicProxy
Purpose: buy public proxies.
Body: {"days":30,"emailBuyer":"user@example.com"}
Response: {"auth_key":"..."}
curl -X POST https://proxyleet.com/dev/buyPublicProxy \
-H "authorization: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"days":30,"emailBuyer":"user@example.com"}'
createPayment
POST /dev/createPayment
Purpose: create balance top-up payment.
Body: {"sum":1000}
Response: payment object or payment link.
curl -X POST https://proxyleet.com/dev/createPayment \
-H "authorization: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"sum":1000}'
prolongPrivateProxy
POST /dev/prolongPrivateProxy
Purpose: prolong private proxies.
Body: depends on product and prolongation period.
Response: method is temporarily unavailable.
curl -X POST https://proxyleet.com/dev/prolongPrivateProxy \
-H "authorization: YOUR_KEY"
Public Proxy API
Base URL: https://proxyleet.com/proxy/{params}
| # | Param | Description |
|---|---|---|
| 1 | key |
Access key. |
| 2 | type |
Proxy type: http, socks4, socks5. |
| 3 | country |
Countries: RU, US, HR. |
| 4 | city |
Cities list (comma-separated). |
| 5 | interface |
Response format: 1 - IP:PORT, 2 - [type]://[ip]:[port], 3 - JSON. |
| 6 | anonymity |
anonymous, transparent, elite. |
| 7 | speed |
Speed in milliseconds. |
Request example
https://proxyleet.com/proxy/key=YOUR_KEY/type=http/country=US/interface=2
Errors
REST API errors
| # | Code | Description |
|---|---|---|
| 1 | 1 | Key not found |
| 2 | 2 | Not enough funds |
| 3 | 3 | Internal server error |
| 4 | 200 | The operation was completed successfully |
| 5 | 404 | Method or data not found |
| 6 | 500 | Error in parameters |
Public Proxy API errors
| # | Error | Description |
|---|---|---|
| 1 | ERROR_TOO_MANY_IP | Exceeded daily IP limit (3) |
| 2 | ERROR_KEY_BANNED | Key has been banned |
| 3 | ERROR_KEY_EXPIRED | Key expired |
| 4 | ERROR_TOO_MANY_REQUESTS | Too many requests |
| 5 | ERROR_KEY_NOT_FOUND | Key not found |
| 6 | ERROR_PROXIES_NOT_FOUND | Proxies not found |