ProxyApp API
Order residential proxy packages, list credentials, generate targeted proxies, extend subscriptions, and top up bandwidth. Authenticated requests use the same API key as SMSPool.
Authentication
Base URL: https://www.proxyapp.net/api
Get your key from SMSPool settings.
Send it as a Bearer token in the Authorization header.
A key field in a POST body works too. Keep the key out of the URL:
a URL is saved in browser history and can be recorded by proxies and logs on the way to us.
JSON bodies are accepted on POST endpoints.
Use of the API is subject to the SMSPool Terms of Service. Article 11 covers API use: sanctions and geographic restrictions, what you must require of your own users if you resell the service, and the safekeeping of keys.
curl "https://www.proxyapp.net/api/balance" \
-H "Authorization: Bearer YOUR_API_KEY"import requests
response = requests.get(
"https://www.proxyapp.net/api/balance",
headers={"Authorization": "Bearer YOUR_API_KEY"},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/balance", {
headers: { Authorization: "Bearer YOUR_API_KEY" },
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/balance");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
$result = json_decode(curl_exec($ch), true);
print_r($result);Errors
Failed responses use HTTP 400, 401, 404, or 429 and always include a success of 0 and a message.
HTML is stripped from messages so they are safe to show as-is.
{
"success": 0,
"message": "..."
}Proxy formats & targeting
The host and port are shared. Each package has its own username (the unique identifier) and password. Targeting is appended to the password.
| -country-US | Exit from a specific country |
| -region-NY | Narrow to a state or region |
| -city-newyork | Narrow to a city |
| -session-… | Sticky session: keep the same IP for about 5 minutes |
Formats: ip:port:user:pass, user:pass:ip:port,
ip:port@user:pass, user:pass@ip:port.
password-country-US-region-NY-city-newyork-session-Ab15CdEfgHijklmList purchasable packages
Returns every plan you can order, including bandwidth, price, and the effective rate per GB. Each plan can also be bought as a package that never expires: never_expires_price is what that costs.
curl "https://www.proxyapp.net/api/packages"import requests
response = requests.get(
"https://www.proxyapp.net/api/packages",
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/packages");
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/packages");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"packages": [
{
"id": 3,
"name": "Growth",
"gb": 25,
"price": 55,
"rate_per_gb": 2.2,
"length_days": 31,
"never_expires_price": 275,
"never_expires_rate_per_gb": 11
}
]
}Purchase a package
Charges your SMSPool balance and creates a new proxy package. Existing packages stay active. Pass recurring=1 to renew that same plan from balance when fewer than 5 days remain. Recurring renewals never charge a card. Pass never_expires=1 to buy the same bandwidth as a package that never expires, for the never_expires_price listed by /api/packages; such a package is never renewed, so recurring is ignored. Check the blocklist endpoint before ordering if you care about a specific target domain.
| package | Package id from /api/packages |
| coupon | Optional coupon code. Applies to this purchase only, not later renewals |
| recurring | Set to 1 to renew this plan automatically from balance |
| never_expires | Set to 1 to buy this plan as a package that never expires, at its never_expires_price |
curl -X POST "https://www.proxyapp.net/api/order" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "package=3"import requests
response = requests.post(
"https://www.proxyapp.net/api/order",
headers={"Authorization": "Bearer YOUR_API_KEY"},
data={
"package": 3,
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/order", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams({
"package": 3,
}),
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/order");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
"package" => 3,
]));
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"message": "Package purchased successfully.",
"proxy": {
"identifier": "SojSBfptwh",
"host": "104.16.0.1",
"port": 8000,
"username": "SojSBfptwh",
"password": "xK91mPq2Ab",
"expires_at": "2026-09-23 22:01:52",
"never_expires": 0,
"is_active": 1,
"package": "Growth",
"package_gb": 25
}
}List your packages
Returns every package on the account. Usage numbers come from cache unless you pass live=1 (slower, one provider lookup per package).
| live | Set to 1 to refresh usage from the provider |
curl "https://www.proxyapp.net/api/proxies" \
-H "Authorization: Bearer YOUR_API_KEY"import requests
response = requests.get(
"https://www.proxyapp.net/api/proxies",
headers={"Authorization": "Bearer YOUR_API_KEY"},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/proxies", {
headers: { Authorization: "Bearer YOUR_API_KEY" },
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/proxies");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"count": 2,
"proxies": [
{
"identifier": "SojSBfptwh",
"username": "SojSBfptwh",
"is_active": 1,
"package": "Growth",
"traffic_balance_formatted": "18.59 GB"
}
]
}Get one package
Looks up a package by its unique identifier (the proxy username) and returns live credentials, expiry, and remaining data. For a package that never expires, never_expires is 1 and expires_at is null.
| id | Package identifier, e.g. SojSBfptwh |
curl "https://www.proxyapp.net/api/proxy?id=SojSBfptwh" \
-H "Authorization: Bearer YOUR_API_KEY"import requests
response = requests.get(
"https://www.proxyapp.net/api/proxy",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={
"id": "SojSBfptwh",
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/proxy?id=SojSBfptwh", {
headers: { Authorization: "Bearer YOUR_API_KEY" },
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/proxy?id=SojSBfptwh");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"proxy": {
"identifier": "SojSBfptwh",
"host": "104.16.0.1",
"port": 8000,
"username": "SojSBfptwh",
"password": "xK91mPq2Ab",
"status": "ACTIVE",
"expires_at": "2026-09-23 22:01:52",
"never_expires": 0,
"is_active": 1,
"traffic_balance_formatted": "18.59 GB",
"extend_cost": 20.45
}
}Generate proxy lines
Builds one or more connection strings for a package. Country, region, and city are appended to the password. Sticky sessions keep the same IP for about 5 minutes.
| id | Package identifier |
| country | ISO country code from /api/locations |
| region | Region / state id |
| city | City id |
| sticky | 1 to enable a sticky session |
| amount | How many lines to generate (1–100) |
| format | 1 or ip_port_user_pass, 2 user_pass_ip_port, 3 ip_port_at_user_pass, 4 user_pass_at_ip_port |
curl -X POST "https://www.proxyapp.net/api/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "id=SojSBfptwh&country=US&sticky=1&amount=2&format=1"import requests
response = requests.post(
"https://www.proxyapp.net/api/generate",
headers={"Authorization": "Bearer YOUR_API_KEY"},
data={
"id": "SojSBfptwh",
"country": "US",
"sticky": 1,
"amount": 2,
"format": 1,
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/generate", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams({
"id": "SojSBfptwh",
"country": "US",
"sticky": 1,
"amount": 2,
"format": 1,
}),
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/generate");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
"id" => "SojSBfptwh",
"country" => "US",
"sticky" => 1,
"amount" => 2,
"format" => 1,
]));
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"count": 2,
"format": "ip_port_user_pass",
"proxies": [
"104.16.0.1:8000:SojSBfptwh:xK91mPq2Ab-country-US-session-Ab15Cd",
"104.16.0.1:8000:SojSBfptwh:xK91mPq2Ab-country-US-session-Xy92Zq"
]
}Rotate a password
Generates a new random password for that package only. Other packages are unchanged.
| id | Package identifier |
curl -X POST "https://www.proxyapp.net/api/password" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "id=SojSBfptwh"import requests
response = requests.post(
"https://www.proxyapp.net/api/password",
headers={"Authorization": "Bearer YOUR_API_KEY"},
data={
"id": "SojSBfptwh",
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/password", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams({
"id": "SojSBfptwh",
}),
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/password");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
"id" => "SojSBfptwh",
]));
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"message": "Proxy password updated.",
"identifier": "SojSBfptwh",
"username": "SojSBfptwh",
"password": "nR84tLq0Pm"
}Targeting locations
Lists countries, regions, or cities you can pass to /api/generate.
| type | countries, regions, or cities |
| country | Required for regions and usually for cities |
| region | Optional region filter for cities |
curl "https://www.proxyapp.net/api/locations?type=regions&country=US"import requests
response = requests.get(
"https://www.proxyapp.net/api/locations",
params={
"type": "regions",
"country": "US",
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/locations?type=regions&country=US");
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/locations?type=regions&country=US");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"type": "regions",
"data": [
{ "id": "NY", "name": "New York" }
]
}Blocklist check
Checks whether a domain is blocked on the network. Use this before you buy a package for a specific target.
| domain | Domain or full URL |
curl "https://www.proxyapp.net/api/blocklist?domain=example.com"import requests
response = requests.get(
"https://www.proxyapp.net/api/blocklist",
params={
"domain": "example.com",
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/blocklist?domain=example.com");
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/blocklist?domain=example.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"blocked": 0,
"domain": "example.com",
"matched_rule": null,
"blocked_subdomains": [],
"message": "This domain is not currently in the blocklist."
}Extend a package
Adds 30 days to the selected package. Packages that never expire cannot be extended. The immediate charge is 50% of the remaining data at the original plan rate. Pass recurring=1 to also turn on balance-only auto-extend for this same proxy: when fewer than 5 days remain, half this package's price is charged and 30 days are added. Bandwidth stays the same. A card is never charged. Expired packages cannot be extended.
| id | Package identifier |
| recurring | 1 to turn on half-price auto-extend, 0 to turn it off |
curl -X POST "https://www.proxyapp.net/api/extend" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "id=SojSBfptwh&recurring=1"import requests
response = requests.post(
"https://www.proxyapp.net/api/extend",
headers={"Authorization": "Bearer YOUR_API_KEY"},
data={
"id": "SojSBfptwh",
"recurring": 1,
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/extend", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams({
"id": "SojSBfptwh",
"recurring": 1,
}),
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/extend");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
"id" => "SojSBfptwh",
"recurring" => 1,
]));
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"message": "Your proxy has been extended for 30 days.",
"proxy": {
"identifier": "SojSBfptwh",
"expires_at": "2026-10-23 22:01:52",
"never_expires": 0,
"is_active": 1
}
}Top up bandwidth
Adds more data to an existing package without changing credentials or expiration. Choose a plan from /api/packages — the listed GB is added on top of whatever is still remaining. Expired packages cannot be topped up. Data added to a package that never expires does not expire either and costs the plan's never_expires_price. This is separate from recurring renewal.
| id | Package identifier |
| package | Package id from /api/packages |
| coupon | Optional coupon code |
curl -X POST "https://www.proxyapp.net/api/topup" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "id=SojSBfptwh&package=3"import requests
response = requests.post(
"https://www.proxyapp.net/api/topup",
headers={"Authorization": "Bearer YOUR_API_KEY"},
data={
"id": "SojSBfptwh",
"package": 3,
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/topup", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams({
"id": "SojSBfptwh",
"package": 3,
}),
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/topup");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
"id" => "SojSBfptwh",
"package" => 3,
]));
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"message": "Added 25 GB to this proxy.",
"gb_added": 25,
"cost": 55,
"proxy": {
"identifier": "SojSBfptwh",
"package": "Growth",
"package_gb": 50,
"traffic_balance_formatted": "43.59 GB",
"expires_at": "2026-09-23 22:01:52",
"never_expires": 0
}
}Recurring renewal
Turns a balance-only recurring charge on or off. Packages that never expire have nothing to renew, so turning either mode on is refused for them. mode=renew charges the plan price, adds that plan's bandwidth, and extends 31 days. mode=extend adds 30 days to the existing proxy and charges half that package's price, with no bandwidth added. When both are on, the full renewal runs and the half-price extension waits. A card is never charged. If the balance is too low, the package is left as-is and you are notified. Expired packages cannot be subscribed.
| id | Package identifier |
| enabled | 1 to turn it on, 0 to turn it off |
| mode | renew (default) or extend. extend uses the proxy's current package |
| package | Plan id from /api/packages. Used by mode=renew. Required when enabling renew unless the package already has a purchase |
curl -X POST "https://www.proxyapp.net/api/subscribe" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "id=SojSBfptwh&enabled=1&mode=extend"import requests
response = requests.post(
"https://www.proxyapp.net/api/subscribe",
headers={"Authorization": "Bearer YOUR_API_KEY"},
data={
"id": "SojSBfptwh",
"enabled": 1,
"mode": "extend",
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/subscribe", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY" },
body: new URLSearchParams({
"id": "SojSBfptwh",
"enabled": 1,
"mode": "extend",
}),
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/subscribe");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
"id" => "SojSBfptwh",
"enabled" => 1,
"mode" => "extend",
]));
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"message": "Recurring renewal is on.",
"auto_renew": 1,
"proxy": {
"identifier": "SojSBfptwh",
"auto_renew": 1,
"renew_package_id": 3,
"renew_package": "Growth",
"renew_gb": 25,
"renew_price": 55
}
}Purchase history
Returns recent package purchases, renewals, extensions, and top-ups for the account, newest first. Each row includes type: purchase, renew, extend, or topup.
| limit | Max rows to return (1–500, default 50) |
curl "https://www.proxyapp.net/api/history?limit=20" \
-H "Authorization: Bearer YOUR_API_KEY"import requests
response = requests.get(
"https://www.proxyapp.net/api/history",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={
"limit": 20,
},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/history?limit=20", {
headers: { Authorization: "Bearer YOUR_API_KEY" },
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/history?limit=20");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"count": 2,
"purchases": [
{
"id": 1843,
"identifier": "SojSBfptwh",
"type": "topup",
"package": "Growth",
"gb": 25,
"cost": 55,
"date": "2026-08-24 09:12:04"
},
{
"id": 1842,
"identifier": "SojSBfptwh",
"type": "purchase",
"package": "Growth",
"gb": 25,
"cost": 55,
"date": "2026-08-23 22:01:52"
}
]
}Account balance
Returns the current SMSPool balance used to pay for proxy packages.
curl "https://www.proxyapp.net/api/balance" \
-H "Authorization: Bearer YOUR_API_KEY"import requests
response = requests.get(
"https://www.proxyapp.net/api/balance",
headers={"Authorization": "Bearer YOUR_API_KEY"},
)
print(response.json())const response = await fetch("https://www.proxyapp.net/api/balance", {
headers: { Authorization: "Bearer YOUR_API_KEY" },
});
console.log(await response.json());<?php
$ch = curl_init("https://www.proxyapp.net/api/balance");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer YOUR_API_KEY"]);
$result = json_decode(curl_exec($ch), true);
print_r($result);{
"success": 1,
"balance": 120.5
}