Skip to content

Developers

Residential proxy API for sub-users, paid in crypto

IPwharf's residential proxy API is a REST interface for bandwidth you buy in crypto, Monero included: Bearer API keys create up to 50 sub-users per subscription, cap each one in bytes, read their daily usage and buy more traffic from your balance. Packs start at 50 GB for $32.91 and reach $0.505/GB at 5 TB.

Written by the · Updated

Residential proxy API fact sheet

IPwharf fact sheet, as of 23 November 2026
PaymentXMR, BTC, USDT (Tron or Ethereum), USDC, ETH, SOL, LTC; you pay from your own wallet to a fixed deposit address, never by card or PayPal
Monero (XMR)Yes, accepted on every pack
Identity check (KYC)None: no ID, selfie or company document
EmailNot needed: you sign in with a 16-digit number IPwharf generates for you
Smallest orderResidential 50 GB for $32.91 · Mobile 4G/5G 50 GB for $79.50
Volume tiersResidential: 7 packs from 50 GB to 5 TB, $0.658/GB down to $0.505/GB · Mobile 4G/5G: 5 packs from 50 GB to 1 TB, $1.59/GB down to $1.51/GB
Largest packResidential 5 TB · Mobile 4G/5G 1 TB; larger volumes on request
Traffic expiryNever: unused GB stay on the account
DeliveryYour balance is credited once the payment is matched by its exact amount and confirmed on-chain; a pack bought from that balance works at once
Sub-usersUp to 50 per subscription, each with its own login, GB cap and daily usage; dashboard or API
Prices checked23 November 2026
AuthAuthorization: Bearer <key>; keys carry read, proxies or billing scopes, up to 20 per account, revocable at once
Rate limit120 requests per minute per key (recommended); RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers; 429 with Retry-After
Sub-usersPOST /v1/residential/subscriptions/{subscriptionId}/sub-users: up to 50 per subscription, cap in bytes, usage by day per subUserId

What is a residential proxy API?

A residential proxy API is the HTTP interface that lets your code manage proxy access without the dashboard. It creates logins, caps them, reads their traffic and buys more bandwidth. A residential proxy sends your requests out through IP addresses that internet providers assign to homes. A sub-user is a separate proxy login carved out of one subscription, with its own username, password and optional traffic cap.

IPwharf's API is the one its own client area is built on. Sub-users exist on both products sold per GB: residential (productId: residential) and rotating 4G/5G mobile (productId: mobile-gb), through the same routes. The API manages access and billing; the proxy traffic itself goes through the gateway at gw.ipwharf.com.

API conventions

Every route below follows the same conventions for URLs, units, dates and identifiers:

  • Base URL: https://ipwharf.com/api/v1, on the site's own domain (no separate API host)
  • Format: JSON in and out, UTF-8
  • Authentication: Authorization: Bearer <key> (RFC 6750 syntax)
  • Money: US dollars as a string with two decimals: "812.40", never a float
  • Traffic: Integer bytes; 1 GB = 1,000,000,000 bytes, so 50 GB is 50000000000
  • Dates: Timestamps in ISO 8601 UTC (2026-11-23T14:03:11Z); calendar days as YYYY-MM-DD in UTC
  • IDs: Opaque strings with a type prefix: res_ subscription, sub_ sub-user, ord_ order, key_ API key
  • Lists: Growing lists such as orders take page and perPage (1 to 100, default 20)
  • Safe retries: Idempotency-Key header on POST /v1/orders, kept 24 hours

API keys and scopes

API keys are created only while you are logged in. In the dashboard, open API & whitelist, click Create API key, name it and tick only the permissions your script needs. The full secret is shown once; afterwards the dashboard shows only its prefix, such as pk_4f9a2c. An account holds up to 20 keys. Revoking a key in the dashboard or with DELETE /v1/api-keys/{keyId} stops it immediately.

API key scopes in the IPwharf API and what each one allows, as of 23 November 2026
ScopeWhat it allowsGive it to
readRead the account, balance, subscriptions, sub-users and usageDashboards, monitoring, billing reports
proxiesCreate, change and delete sub-users; manage the IP allowlistThe service that provisions client logins
billingBuy packs from the balance with POST /v1/ordersOnly the service that buys traffic

A key with billing can spend your balance. Keep it on a server, never in a browser or a mobile app.

Every route a sub-user integration needs

These routes cover the full life of a sub-user, from picking a target country to buying more traffic. The catalog routes are public; everything else needs a key.

IPwharf API routes for sub-users, usage and orders, from the published API contract, as of 23 November 2026
MethodPathWhat it doesScope
GET/v1/catalog/countries?product=residentialExit countries open for a productNone
GET/v1/catalog/countries/{countryCode}/cities, /states, /asnsTargeting values for the proxy usernameNone
GET/v1/balancePrepaid USD balanceread
GET/v1/residential/subscriptionsSubscriptions with total, used and remaining bytes, base username, password and gatewayread
GET/v1/residential/subscriptions/{subscriptionId}/sub-usersSub-users and the per-subscription limit (50)read
POST/v1/residential/subscriptions/{subscriptionId}/sub-usersCreate a sub-userproxies
PATCH/v1/residential/subscriptions/{subscriptionId}/sub-users/{subUserId}Change label, trafficLimitBytes, enabled, or set regeneratePasswordproxies
DELETE/v1/residential/subscriptions/{subscriptionId}/sub-users/{subUserId}Delete a sub-userproxies
GET/v1/residential/subscriptions/{subscriptionId}/usageBytes and requests per day, optionally for one subUserIdread
POST/v1/ordersBuy a pack from the balance, or add traffic to a subscriptionbilling
GET/v1/orders/{orderId}Read one orderread
GET, POST, DELETE/v1/ip-whitelistIPs allowed to use the proxies without a passwordread / proxies

List subscriptions and create a sub-user capped at 50 GB

Start by listing your subscriptions. Each one returns its id (for example res_9x2m4k), trafficTotalBytes, trafficUsedBytes, trafficRemainingBytes, the base proxy username and password, the gateway endpoint and subUserCount. Add productId=mobile-gb to see mobile subscriptions instead.

To create a sub-user, send a label (1 to 60 characters). The password is optional (8 to 64 characters, generated when omitted). trafficLimitBytes sets the cap; leave it out or send null and the sub-user shares the whole subscription. A subscription holds up to 50 sub-users.

export IPWHARF_API_KEY="pk_..."   # key with read + proxies scopes
# 1. List residential subscriptions and their remaining bytes
curl -s "https://ipwharf.com/api/v1/residential/subscriptions?productId=residential" \
  -H "Authorization: Bearer $IPWHARF_API_KEY"
# 2. Create a sub-user capped at 50 GB
curl -s -X POST "https://ipwharf.com/api/v1/residential/subscriptions/res_9x2m4k/sub-users" \
  -H "Authorization: Bearer $IPWHARF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label": "scraper", "trafficLimitBytes": 50000000000}'
The second call answers 201 with the sub-user: id (sub_3m9qk2), username (u7k2m9_scraper), password, trafficLimitBytes: 50000000000, trafficUsedBytes: 0, enabled: true and createdAt.

How do you read usage statistics per sub-user?

Call GET /v1/residential/subscriptions/{subscriptionId}/usage with from and to (UTC days, both inclusive) and subUserId to restrict the report to one sub-user. Without dates you get the last 30 days; one report covers up to 366 days.

The report gives totalBytes and totalRequests for the range. The points array has one entry per day, with date, bytes and requests; days without traffic appear with bytes: 0. For residential subscriptions, byCountry lists the top 10 exit countries by traffic. A two-day report looks like this (illustrative numbers):

{
  "from": "2026-11-21",
  "to": "2026-11-22",
  "totalBytes": 3418000000,
  "totalRequests": 61240,
  "points": [
    { "date": "2026-11-21", "bytes": 1502000000, "requests": 27015 },
    { "date": "2026-11-22", "bytes": 1916000000, "requests": 34225 }
  ],
  "byCountry": [
    { "country": "US", "bytes": 2950000000 },
    { "country": "GB", "bytes": 468000000 }
  ]
}

Usage is aggregated per UTC day: there is no hourly or per-request breakdown. For a live gauge, read trafficUsedBytes next to trafficLimitBytes on each sub-user from GET …/sub-users.

import os
import requests
API = "https://ipwharf.com/api/v1"
HEADERS = {"Authorization": "Bearer " + os.environ["IPWHARF_API_KEY"]}
r = requests.get(
    API + "/residential/subscriptions/res_9x2m4k/usage",
    headers=HEADERS,
    params={"from": "2026-11-01", "to": "2026-11-22", "subUserId": "sub_3m9qk2"},
    timeout=30,
)
r.raise_for_status()
report = r.json()
print("Total:", round(report["totalBytes"] / 1e9, 2), "GB,", report["totalRequests"], "requests")
for day in report["points"]:
    print(day["date"], round(day["bytes"] / 1e9, 3), "GB", day["requests"], "requests")
Usage of one sub-user from 1 to 22 November 2026 with Python requests; a key with the read scope is enough. Bytes divided by 1e9 give billing GB.

Disable a sub-user, change its cap or reset its password

PATCH /v1/residential/subscriptions/{subscriptionId}/sub-users/{subUserId} takes any of four fields:

  • enabled: false switches the login off; enabled: true turns it back on.
  • trafficLimitBytes raises or lowers the cap; null removes it.
  • label renames the sub-user.
  • regeneratePassword: true issues a new password, returned in the response.

A disabled sub-user is not deleted, so a client who pays late can be switched back on. DELETE on the same path removes the sub-user for good and answers 204.

The main login of a subscription has its own route: POST /v1/residential/subscriptions/{subscriptionId}/reset-password returns new credentials, and the old password stops working at the gateway within 60 seconds.

// Node.js 18+ (built-in fetch), ES module
const url =
  "https://ipwharf.com/api/v1/residential/subscriptions/res_9x2m4k/sub-users/sub_3m9qk2";
const res = await fetch(url, {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.IPWHARF_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ enabled: false }),
});
if (!res.ok) {
  const { error } = await res.json();
  throw new Error(`${error.code}: ${error.message} (${error.requestId})`);
}
const subUser = await res.json();
console.log(subUser.username, subUser.enabled); // u7k2m9_scraper false
Switch a sub-user off with a key that has the proxies scope. The response is the updated sub-user; errors carry a stable code and a requestId to quote to support.

Buy more bandwidth from your crypto balance

Every purchase is paid from a prepaid USD balance, and the balance is filled with crypto. You top it up in the dashboard with Bitcoin, USDT (TRC-20 or ERC-20), USDC, Ether, Solana, Litecoin or Monero, sent to a fixed address for the exact amount shown. The balance never expires. Top-ups are made in the dashboard, not through the API, and one top-up is capped at $10,000. Once the balance is funded, GET /v1/balance reads it and POST /v1/orders spends it.

The body {"planId": "res-1000", "options": {"subscriptionId": "res_9x2m4k"}} adds 1 TB, $515.00 ($0.515/GB), to an existing residential subscription. Every sub-user on it then draws from the larger pool. Without options, {"planId": "res-1000"} creates a new subscription. quantity (1 to 100, default 1) buys several packs at once; a large quantity needs a balance built from several top-ups. Mobile plans (mgb-…) only go onto mobile subscriptions; a mismatch returns 422. The full grid is on the pricing page.

A 201 returns the order with its total debited and fulfillment.residentialSubscriptionId. If the balance is short, the answer is 402 insufficient_balance with the missing amount in error.details, and nothing is debited. Send an Idempotency-Key: replaying the same key within 24 hours returns the first response instead of buying twice.

# Key with the billing scope. Reuse the same idempotency key if you retry.
IDEMPOTENCY_KEY=$(uuidgen)
curl -s -X POST "https://ipwharf.com/api/v1/orders" \
  -H "Authorization: Bearer $IPWHARF_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{"planId": "res-1000", "options": {"subscriptionId": "res_9x2m4k"}}'
Add a 1 TB residential pack to subscription res_9x2m4k from the balance. Plan IDs: res-50 to res-5000 for residential, mgb-50 to mgb-1000 for mobile.

How API sub-users connect to the proxy gateway

The API never carries proxy traffic. A sub-user connects to gw.ipwharf.com on port 7777 (HTTP and HTTPS through CONNECT) or 7778 (SOCKS5) with its own username and password. Targeting is appended to the username in one format:

USERNAME-country-{cc}-state-{state}-city-{city}-zip-{zip}-asn-{asn}-session-{id}-ttl-{minutes}

Every part after the username is optional, in lower case, with _ for spaces. For the sub-user above, u7k2m9_scraper-country-us-state-tx-city-dallas-session-k7f2-ttl-10 asks for a Dallas, Texas exit that stays on one IP for up to 10 minutes (a sticky session; the IP can still drop earlier). Without session, each new connection gets an IP from the pool, usually a different one. Valid state, city and asn values come from the public catalog routes, and the locations page lists every open country. Mobile sub-users target by country only.

Traffic is counted against the sub-user's cap: every byte sent and received through the proxy, headers included. A connection that fails before reaching its target is not counted.

Errors and rate limits

Every non-2xx answer has the same shape. code is stable and safe to branch on; message is an English sentence that can change; fields lists invalid inputs on a 422.

{
  "error": {
    "code": "validation_failed",
    "message": "Some fields are invalid.",
    "fields": [{ "field": "trafficLimitBytes", "code": "too_small", "message": "Must be 0 or more." }],
    "requestId": "req_2b7c0f"
  }
}
Error codes returned by the IPwharf API for sub-user, usage and order routes, as of 23 November 2026
StatuscodeWhen
401unauthorizedMissing, invalid or revoked key
402insufficient_balanceThe order costs more than the balance
403forbiddenThe key lacks the scope, or the account is suspended
404not_foundThe resource does not exist or belongs to another account
409conflictNot possible in the current state, such as a subscription already at 50 sub-users
422validation_failedOne or more fields are invalid, listed in fields
429rate_limitedToo many requests; wait Retry-After seconds

The recommended limit is 120 requests per minute per key. Each response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset, and a 429 repeats the wait in error.details.retryAfter. A panel that polls usage for 50 sub-users once an hour uses well under 1% of that budget.

Reseller proxy APIs compared

Four reseller APIs that often come up next to IPwharf, from what each provider publishes. Facts a provider does not publish are marked "Not stated", not guessed.

Reseller proxy APIs from IPwharf and four providers: minimums, sub-users, usage data, limits, hostname and crypto, read on their official pages 23 November 2026
ProviderMinimum to startSub-usersUsage per sub-userPublished API limitsHostname on your domainCrypto
IPwharfSmallest pack 50 GB for $32.91; no applicationUp to 50 per subscription, cap in bytes, on/off switchBytes and requests per day, up to 366 days per report, top 10 exit countries120 requests/min per key; Idempotency-Key on ordersNo: gw.ipwharf.comBTC, USDT, USDC, ETH, SOL, LTC, Monero; no payment processor
VeritasProxy1 GB retail; reseller discount of 20 to 35% by spendThrough its reseller APINot stated120 requests and 60 purchases per minute; Idempotency-KeyYes, CNAMEBTC, ETH, USDT, Monero
PacketStream$500 minimum purchaseCreated by API, with balance transferred to each90 days of usage historyNot statedBranded hostname set up at onboarding (reseller API docs)No: cards and PayPal
CleanProxies$500 opening balanceUser creation and GB allocation (POST /api/v1/orders with gb)Usage stats; per-user breakdown not statedNot statedNoBTC, ETH, USDT, USDC, Monero and more via Cryptomus, plus cards
ArealProxy100 GB first reseller purchaseUnlimited sub-users with GB allocationNot statedNot statedNot stated; its brand is hidden from your customersBTC, USDT, ETH, LTC and more via Cryptomus

Residential proxy API questions

Is there a residential proxy provider with an API to create sub-users?

Yes. IPwharf creates sub-users with POST /v1/residential/subscriptions/{subscriptionId}/sub-users, up to 50 per subscription. Each one gets its own proxy username and password, an optional cap in bytes such as 50000000000 for 50 GB, an on/off switch and daily usage. The bandwidth is paid in crypto, Monero included, with no KYC; packs start at 50 GB for $32.91.

Is there a residential proxy usage statistics API per sub-user?

IPwharf returns it with GET /v1/residential/subscriptions/{subscriptionId}/usage and the subUserId, from and to parameters. The report lists bytes and requests for every UTC day in the range, days at zero included, plus totals and the top 10 exit countries for residential traffic. The range defaults to 30 days and can reach 366. Each sub-user also shows trafficUsedBytes next to its cap.

What does the API cover when I resell residential proxies under my own brand?

Buy a residential pack in crypto, create one sub-user per client through the API, cap each with trafficLimitBytes, and show their daily usage in your own panel. Your brand, prices and support stay yours, and IPwharf never contacts your clients. One limit: the proxy hostname stays gw.ipwharf.com, with no CNAME. The reseller program covers the commercial side; VeritasProxy offers a CNAME if you need one.

What is a proxy API?

A proxy API is an HTTP interface for managing proxy access from code instead of a dashboard: creating logins, setting traffic limits, reading usage and buying bandwidth. It is separate from the proxy itself, which you reach on a gateway host and port. At IPwharf the API lives at https://ipwharf.com/api/v1 and the proxies at gw.ipwharf.com, port 7777 for HTTP and HTTPS or 7778 for SOCKS5.

Is there a Python library for the residential proxy API?

No. IPwharf publishes no SDK in any language. The API is plain HTTPS with JSON, so Python's requests, the built-in fetch in Node.js 18 or later, or curl cover every route, as the examples above show. Send the key as Authorization: Bearer <key>, stay under about 120 requests per minute per key, and read RateLimit-Remaining to pace a polling loop.

Sources

  1. RFC 6750: OAuth 2.0 Bearer Token Usage (Authorization header syntax) (checked 23 November 2026)
  2. VeritasProxy reseller program documentation (checked 23 November 2026)
  3. PacketStream reseller API documentation (checked 23 November 2026)
  4. PacketStream pricing (payment methods) (checked 23 November 2026)
  5. CleanProxies reseller API (checked 23 November 2026)
  6. CleanProxies rotating residential proxies (accepted coins) (checked 23 November 2026)
  7. ArealProxy reseller program (checked 23 November 2026)