ProxyMania API
Base URL: https://proxymania.su/api/
API Key: displayed in your dashboard on the profile page
-
GET /api/get_proxies/{apikey}/?filter=&extended=0|1Parameters:
filter(optional) — filter by the comment field valueextended(optional) —0or1, whether to return extended information
Successful response:
[ { "id": 12345, "ipv6": "2a00:1234:5678:90ab::1", "http": "192.168.1.1:8080", "socks": "192.168.1.1:1080", "username": "user123", "password": "pass456", "comment": "my proxy", // with extended=1: "expire": "2025-12-31 23:59:59", "ip_auth": 0, "ip_auth_addr": "", "status": 0, "country": "ru" } ]Possible errors:
code: 1— invalid API key
-
GET /api/get_countries/{apikey}?type=ipv4|ipv6Parameters:
type(optional) —ipv4oripv6. If not specified, returns all types available for purchase
Successful response (type=ipv4):
[ { "alpha2": "r4", "name": "Russia IPv4", "price_ipv4": 119, "price_ipv4_2": 99 } ]IPv4 prices (per 1 proxy/month):
price_ipv4— when purchasing 1 to 99 proxiesprice_ipv4_2— when purchasing 100 or more proxies
Notes:
- For IPv4,
alpha2is the country code (r4— Russia, dedicated proxies;s4— Russia, shared proxies)
Successful response (type=ipv6):
[ { "alpha2": "ru", "name": "Russia", "price_ipv6": 7, "price_ipv6_2": 6, "price_ipv6_3": 5, "price_ipv6_4": 4.5, "price_ipv6_5": 4, "price_ipv6_6": 3.5, "price_ipv6_7": 3 } ]IPv6 prices (per 1 proxy/month):
price_ipv6— when purchasing 1 to 9 proxiesprice_ipv6_2— when purchasing 10 to 99 proxiesprice_ipv6_3— when purchasing 100 to 199 proxiesprice_ipv6_4— when purchasing 200 to 299 proxiesprice_ipv6_5— when purchasing 300 to 399 proxiesprice_ipv6_6— when purchasing 400 to 499 proxiesprice_ipv6_7— when purchasing 500 or more proxies
Possible errors:
code: 1— invalid API key
-
GET /api/get_freeproxys/{apikey}?country={countrycode}Parameters:
country— country code (r4— dedicated,s4— shared)
Successful response:
150Returns a number — the count of available proxies
Possible errors:
code: 1— invalid API key
-
GET /api/get_balance/{apikey}/Successful response:
{ "status": "ok", "balance": "502" }Possible errors:
code: 1— invalid API key
-
GET /api/buy_proxies/{apikey}?country=&count=&type=&period=&protocol=Parameters:
country— country code from the list of available countriescount— number of proxies to purchasetype—ipv4oripv6(default:ipv6)period(optional) — rental period (default: 30). Allowed values for IPv6:3,7,14,30,60,90,180days. For IPv4:30,60,90,180daysprotocol(optional) —httpsorsocks5(default:https)
Example request:
GET https://proxymania.su/api/buy_proxies/12b4493473dcd1c70d8f4b1c7a5ffc3c?country=s4&count=10&type=ipv4&period=30Successful response:
{ "status": "ok", "purchase_id": "a1b2c3d4e5f6...", "sum": 300 }Possible errors:
code: 1— invalid API keycode: "error count"— invalid quantitycode: "country not set"— country not specifiedcode: "country not found"— country not foundcode: "country not active"— country is not active for purchasecode: "invalid period"— invalid period (see minimum)code: "insufficient funds"— insufficient funds (returnsrequiredandbalance)code: "no available proxies"— no available proxiescode: "not enough proxies"— not enough proxies (returnsavailableandrequested)
Notes:
purchase_id— is set as the comment on purchased proxiessum— amount deducted from balance- IPv4 proxies are delivered immediately and activate within 1 minute.
- IPv6 proxies: poll
get_proxieswithfilter=purchase_idevery 30 seconds
Warning: Do not integrate the purchase API directly into desktop software with a hardcoded key — use a server-side proxy layer instead.
-
POST /api/renew/{apikey}?type=ipv4|ipv6&country= proxy_ids=13582,17371,17282GET parameters:
type—ipv4oripv6country(optional for IPv6) — country code
POST parameters:
proxy_ids— comma-separated list of proxy IDs to renew
Successful response:
{ "status": "ok", "transaction_id": 12345, "sum": 300 }Possible errors:
code: 1— invalid API keycode: 2— invalid proxy countcode: 3— insufficient funds (returnsrequiredandbalance)code: 4— proxy IDs not specifiedcode: "invalid type"— type not specified or invalidcode: "country not found"— country not foundmsg: "user check fail"— proxy does not belong to the usermsg: "country check fail"— proxy country does not match the specified one
Note: You can renew proxies from different countries in a single request — the price is calculated automatically.
-
POST /api/set_comment/{apikey}?type=ipv4|ipv6&comment=example proxy_ids=13582,17371,17282GET parameters:
type—ipv4oripv6comment— comment text
POST parameters:
proxy_ids— comma-separated list of proxy IDs
Successful response:
{ "status": "ok" }Possible errors:
code: 1— invalid API keycode: 2— invalid proxy countcode: 4— proxy IDs not specifiedmsg: "user check fail"— proxy does not belong to the usermsg: "comment not set"— error setting comment
-
POST /api/replace_proxies/{apikey} proxy_ids=13582,17371,17282Parameters (POST body):
proxy_ids— comma-separated list of proxy IDs to replace
Successful response:
{ "status": "ok" }Possible errors:
code: 1— invalid API keycode: 4— replacement limit per request exceededcode: 5— daily replacement limit exceededcode: 6— replacement was already performed recently (timeout)code: 7— proxy with the specified ID not found
Notes:
- Overall limit is 1,000 proxies per hour; each individual proxy also has a 1-hour cooldown for replacement
- Only the external IPv6 address changes; the ip:port:login:password for connection remain the same
-
POST /api/set_ipauth/{apikey}?type=ipv4|ipv6&status=on|off proxy_ids=13582,17371,17282&ip=185.33.22.11GET parameters:
type—ipv4oripv6status—on(enable IP binding) oroff(remove)
POST parameters:
proxy_ids— comma-separated list of proxy IDsip— IP address for authorization (whenstatus=on)
Successful response:
{ "status": "ok" }Possible errors:
code: 1— invalid API keycode: 2— invalid proxy countcode: 4— proxy IDs not specifiedmsg: "user check fail"— proxy does not belong to the usermsg: "wrong ip for auth"— invalid IP address (0.0.0.0, 255.255.255.255, or malformed)msg: "ip not set"— error setting IP authorization