Premip

API reference

Top up your wallet, place orders, manage proxies, rotate exit IPs, edit your IP whitelist, check IP quality, run site checks and read usage from your own code. Every endpoint below works with an API key.

Base URL

https://api.premip.com

Auth header

X-Api-Key: premip_YOUR_KEY

Python SDK

pip install https://premip.com/downloads/premip-0.5.0-py3-none-any.whl
On this page

Authentication

Create a key in Dashboard → Settings → API keys. The secret is shown once, so store it server-side. Send it on every request in the X-Api-Key header, or as Authorization: Bearer premip_…. Keys can be expired or revoked from the same page.

Verify your key
curl https://api.premip.com/auth/api-key/verify \
  -H "X-Api-Key: premip_YOUR_KEY"

# {"valid":true,"email":"[email protected]"}

Conventions

  • Requests and responses are JSON. Send Content-Type: application/json on POST and PATCH.
  • Timestamps are ISO 8601 in UTC. Data usage is reported in MB (dataUsedMB).
  • Money is returned in dollars. It is stored in integer cents, so round on your side only for display.
  • Endpoints under /api/v1 also accept a trailing slash.
  • Proxy ids are strings. Copy them from GET /proxies or from the proxy detail page URL in the dashboard.

Proxy login parameters

The proxy itself is configured through the username. Append parameters to USERNAME and keep the same password. These work on both HTTP (port 8080) and SOCKS5 (port 1080) at gw.premip.com.

ParameterWhat it does
USERNAME-session-IDSticky session. Every request with the same ID keeps one exit IP until the TTL ends or you rotate. ID can be up to 128 characters; letters and digits need no URL encoding.
USERNAME-country-usPick the exit country: us, gb, de, fr or nl. The code must match the location you purchased.
X-Premip-Country headerHTTP only. Same as -country-, sent as a request header on the proxied request.
X-Premip-Session headerHTTP only. Same as -session-, sent as a request header.
Examples
# Sticky session in Germany
curl -x http://USERNAME-country-de-session-job42:[email protected]:8080 https://api.ipify.org

# Same session over SOCKS5 (port 1080)
curl --socks5-hostname gw.premip.com:1080 --proxy-user USERNAME-session-job42:PASSWORD https://api.ipify.org

Errors

Failures return an HTTP status and a JSON body with a stable code and a readable message. Match on code in your code, not on message text. Rate-limit and cooldown errors also carry retryAfterSec.

Cooldown response
HTTP/1.1 429 Too Many Requests
Retry-After: 42
Content-Type: application/json

{"code":"PROXY_ROTATE_COOLDOWN","message":"Wait 42 seconds before rotating again.","retryAfterSec":42}
StatusCodeMeaning
400BAD_REQUESTA field is missing, malformed or out of range, including top-up amounts outside 10 to 10000 USD. The message names the field.
400VALIDATION_ERRORReturned only by GET /api/v1/rotate without a proxy and by /api/v1/proxies/history for an unknown category.
400INVALID_IPip-check only looks up public addresses. Private, loopback and documentation ranges are rejected; a value that is not an IP at all returns BAD_REQUEST.
401UNAUTHORIZEDNo key, a malformed key, or an unknown key.
401API_KEY_EXPIREDThe key passed its expiry date. Create a new one.
400INVALID_QUANTITYtrafficAmount is not one of the listed package sizes.
400NO_ACTIVE_PLANPOST /proxies needs an active plan. Place an order first.
404NOT_FOUNDThe resource does not exist or belongs to another account.
409ORDER_NOT_CANCELLABLEOnly pending orders can be cancelled.
409ORDER_NOT_REFUNDABLEOnly your most recent paid order can be refunded, and only inside the 14-day window.
409PROXY_LIMIT_REACHEDYour plan’s proxy count is already allocated. Delete one to add another.
409NO_INVENTORYNo endpoint is available for that location right now. Try another location or retry later.
409INVENTORY_MISCONFIGUREDThe matching inventory is not ready. Contact support.
409USERNAME_TAKENAnother proxy already uses that username.
409PROXY_INACTIVESite checks and readiness tests need an active proxy.
409PROXY_NOT_ACTIVEA site check found the proxy is not active on the gateway.
429RATE_LIMITEDToo many payment requests (10 top-ups or 30 payment refreshes per 10 minutes) or too many IP checks. Wait and retry; there is no retryAfterSec.
429PROXY_ROTATE_COOLDOWNWait retryAfterSec before rotating this proxy again.
429SITE_CHECK_COOLDOWNOne site check per proxy every 20 seconds.
429SITE_CHECK_QUOTAHourly limit of 30 site-check runs per account reached. Retry after retryAfterSec.
429READINESS_COOLDOWNA readiness test ran recently for this proxy.
502SITE_CHECK_UNAVAILABLEThe gateway could not run the check. Retry shortly.
502GATEWAY_UNAVAILABLEThe gateway could not be reached for this request. Retry shortly.

Limits

LimitValue
Manual rotationOne rotation per proxy per 60 seconds by default. The Retry-After header and retryAfterSec tell you how long is left.
Site checksUp to 10 sites per run, one run per proxy every 20 seconds, 30 runs per account per hour, about 30 seconds per run.
PaymentsUp to 10 top-ups created per 10 minutes, and 30 payment refreshes (?sync=1 and POST /refresh together) per 10 minutes, per account.
IP checkerRate-limited per account. A 429 means wait and retry.
Sticky session TTL300, 1800 or 3600 seconds.
Auto-rotate interval0 (new IP on every request), 1, 5, 30 or 60 minutes.

Wallet and top-up

Your wallet balance pays for orders. Top up with crypto: the API returns a payment page and a payment intent that you poll until it is confirmed. The balance is credited when the network confirms the payment.

GET/billing/walletGet wallet balance

Get wallet balance

Returns the current balance in US dollars.

curl https://api.premip.com/billing/wallet \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

{ "balance": 32.5, "currency": "USD" }
POST/billing/wallet/creditTop up the wallet

Top up the wallet

Creates a crypto payment intent for the amount. Open checkoutUrl (or send payAmountCrypto to the address shown on that page), then poll GET /billing/payment-intents/{id} until status is confirmed. Amounts from 10 to 10000 USD are accepted.

JSON body

amountnumber · requiredAmount in US dollars, between 10 and 10000.
curl -X POST https://api.premip.com/billing/wallet/credit \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 50}'

Example response

{
  "id": "clx9pay0b0007",
  "purpose": "wallet_deposit",
  "status": "pending",
  "amount": 50,
  "amountDisplay": "$50.00",
  "currency": "USD",
  "asset": "USDT",
  "network": "tron",
  "address": "https://nowpayments.io/payment/?iid=...",
  "checkoutUrl": "https://nowpayments.io/payment/?iid=...",
  "reference": "pm3f9a1c07d2e4b8a615",
  "confirmations": 0,
  "requiredConfirmations": 1,
  "receivedAmount": null,
  "expiresAt": "2026-11-04T10:42:11.000Z",
  "createdAt": "2026-11-04T09:42:11.000Z",
  "confirmedAt": null,
  "orderId": null,
  "payCurrency": "usdttrc20",
  "payAmountCrypto": "50.31",
  "blockchainTxHash": null,
  "explorerUrl": null
}
  • 400 BAD_REQUEST amount is missing, not a number, or outside 10 to 10000 USD. The message names the field.
  • 429 RATE_LIMITED More than 10 top-ups created in 10 minutes. The response has no retryAfterSec, so wait a few minutes.
  • 503 PAYMENT_NOT_CONFIGURED Crypto payments are temporarily unavailable. Retry later.
GET/billing/payment-intents/{id}Check a payment

Check a payment

Returns one payment intent. Add ?sync=1 to ask the payment provider for the latest state first. ?sync=1 and POST /billing/payment-intents/{id}/refresh share one limit of 30 calls per 10 minutes per account (429 RATE_LIMITED), so poll every 30 to 60 seconds. Status moves pending, detected, confirming, confirmed. expired, failed, underpaid and overpaid are the other end states; underpaid and overpaid can still resolve to confirmed or failed after review.

Query parameters

sync"1" | "true"Refresh from the payment provider before answering.
curl "https://api.premip.com/billing/payment-intents/INTENT_ID?sync=1" \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

{
  "id": "clx9pay0b0007",
  "status": "confirmed",
  "confirmations": 1,
  "receivedAmount": 50,
  "confirmedAt": "2026-11-04T09:51:03.000Z",
  "blockchainTxHash": "0x…",
  "explorerUrl": "https://tronscan.org/#/transaction/…"
}
GET/billing/payment-intentsList payments

List payments

Returns the newest 50 payment intents on the account: top-ups, order payments and plan payments.

curl https://api.premip.com/billing/payment-intents \
  -H "X-Api-Key: premip_YOUR_KEY"
POST/billing/payment-intents/{id}/refreshRefresh a payment

Refresh a payment

Asks the payment provider for the current state and returns the updated intent. Use it when a payment looks stuck.

curl -X POST https://api.premip.com/billing/payment-intents/INTENT_ID/refresh \
  -H "X-Api-Key: premip_YOUR_KEY"
GET/billing/payment-intents/{id}/eventsList payment events

List payment events

Returns the confirmation timeline of one payment: each status change with the received amount and confirmation count.

curl https://api.premip.com/billing/payment-intents/INTENT_ID/events \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

[
  {
    "id": "clx9evt0e0004",
    "eventId": "evt_8d1f",
    "status": "confirmed",
    "receivedAmount": 50,
    "confirmations": 1,
    "txRef": "0x…",
    "createdAt": "2026-11-04T09:51:03.000Z"
  }
]
GET/billing/wallet/transactionsList wallet transactions

List wallet transactions

Every balance movement, newest first. type is deposit, purchase or refund; a manual_adjustment entry appears when support credits or debits your wallet. GET /billing/wallet/transactions/{id} returns one entry.

curl https://api.premip.com/billing/wallet/transactions \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

[
  {
    "id": "clx9txn0f0021",
    "type": "purchase",
    "amount": 17.5,
    "description": "Order PM-482193",
    "date": "2026-11-04T09:47:30.000Z",
    "status": "completed"
  },
  {
    "id": "clx9txn0f0019",
    "type": "deposit",
    "amount": 50,
    "description": "Wallet top-up",
    "date": "2026-11-04T09:51:03.000Z",
    "status": "completed"
  }
]

Catalog and pricing

Read the products, package sizes and locations you can buy, and price a package before you order. These three routes are public, so they also work without a key.

GET/catalog/productsList products

List products

Returns each product with its package list. plans[].quantity is the package size in GB and priceCents is the price. Pass the product id as productId and a package size as trafficAmount when you order.

curl https://api.premip.com/catalog/products

Example response

[
  {
    "id": "mobile",
    "name": "Mobile proxy",
    "pricingUnit": "per GB",
    "billingModel": "per_gb",
    "targetingEnabled": false,
    "plans": [
      { "id": "mob-5gb", "name": "5 GB", "price": "$17.50", "priceCents": 1750, "quantity": 5 },
      { "id": "mob-25gb", "name": "25 GB", "price": "$75", "priceCents": 7500, "quantity": 25 }
    ]
  }
]
GET/catalog/locationsList locations

List locations

Returns every location with its label and country code. Use label as location and countryCode as countryCode when you order. selfServe is false for locations that are priced as a premium location.

curl https://api.premip.com/catalog/locations

Example response

[
  { "id": "germany", "label": "Germany", "region": "Europe", "countryCode": "DE", "selfServe": true, "featured": true }
]
POST/catalog/quotePrice a package

Price a package

Returns the price for one package size. For a full cart with promo codes, use POST /orders/quote instead.

JSON body

productIdstring · requiredProduct id.
quantitynumber · requiredPackage size in GB. Must be a listed package.
targeting"country" | "precise"Targeting level. Default country.
locationPremiumbooleanPrice the package as a premium location.
curl -X POST https://api.premip.com/catalog/quote \
  -H "Content-Type: application/json" \
  -d '{"productId":"mobile","quantity":5}'

Example response

{
  "total": 17.5,
  "unitPrice": 3.5,
  "listUnitPrice": 3.5,
  "savingsPercent": 0,
  "requiresContact": false,
  "quantityLabel": "gb",
  "targeting": "country"
}
  • 400 INVALID_QUANTITY Choose one of the listed traffic packages.
  • 400 TARGETING_UNAVAILABLE This package does not include precise targeting.
  • 400 PRODUCT_UNAVAILABLE The product id is unknown, hidden or not sold per GB. POST /orders answers 404 for an unknown product id instead.

Orders

Place an order for one or more packages. If your wallet balance covers the total, the order is paid immediately and the proxies appear in GET /proxies. If not, the order is created as pending with a crypto payment attached; it turns paid when that payment is confirmed.

POST/orders/quoteQuote an order

Quote an order

Prices a list of items, applies a promo code if you send one, and returns the total. Nothing is charged and no order is created.

JSON body

itemsarray · requiredOne or more items. Each item has the fields listed below.
items[].productIdstring · requiredProduct id from GET /catalog/products, for example mobile or residential.
items[].locationstring · requiredExact location label from GET /catalog/locations, for example "United States". An unknown label is not rejected: it is priced as a premium location.
items[].countryCodestring · requiredTwo-letter country code of that location, for example US. It is not checked against location, so send the matching pair.
items[].trafficAmountinteger · requiredPackage size in GB. It must be one of the package sizes listed for the product.
items[].quantityintegerHow many of this package to buy. Default 1.
items[].targeting"country" | "precise"precise adds state, city, ZIP and ASN targeting where the package supports it. Default country.
items[].portsintegerAccepted and ignored. Every package includes one port.
items[].billingPeriod"none" | "daily" | "weekly" | "monthly" | "yearly"Accepted and ignored. Per-GB packages have no billing period.
items[].durationintegerAccepted and ignored.
promoCodestringPromo code, up to 32 characters.
curl -X POST https://api.premip.com/orders/quote \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [{
      "productId": "mobile",
      "location": "United States",
      "countryCode": "US",
      "trafficAmount": 5
    }]
  }'

Example response

{
  "subtotal": 17.5,
  "promoDiscount": 0,
  "referralDiscount": 0,
  "discount": 0,
  "total": 17.5,
  "promo": null,
  "referral": null
}
POST/ordersCreate an order

Create an order

Creates the order and charges your wallet when the balance covers it (status paid). Otherwise status is pending and payment holds the crypto payment to complete. Check status and payment.status, then read the new proxies from GET /proxies.

JSON body

itemsarray · requiredOne or more items. Each item has the fields listed below.
items[].productIdstring · requiredProduct id from GET /catalog/products, for example mobile or residential.
items[].locationstring · requiredExact location label from GET /catalog/locations, for example "United States". An unknown label is not rejected: it is priced as a premium location.
items[].countryCodestring · requiredTwo-letter country code of that location, for example US. It is not checked against location, so send the matching pair.
items[].trafficAmountinteger · requiredPackage size in GB. It must be one of the package sizes listed for the product.
items[].quantityintegerHow many of this package to buy. Default 1.
items[].targeting"country" | "precise"precise adds state, city, ZIP and ASN targeting where the package supports it. Default country.
items[].portsintegerAccepted and ignored. Every package includes one port.
items[].billingPeriod"none" | "daily" | "weekly" | "monthly" | "yearly"Accepted and ignored. Per-GB packages have no billing period.
items[].durationintegerAccepted and ignored.
promoCodestringPromo code, up to 32 characters.
curl -X POST https://api.premip.com/orders \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [{
      "productId": "mobile",
      "location": "United States",
      "countryCode": "US",
      "trafficAmount": 5
    }]
  }'

Example response

{
  "id": "clx9ord0c0012",
  "orderNumber": "PM-482193",
  "date": "2026-11-04T09:47:30.000Z",
  "status": "paid",
  "amount": "$17.50",
  "totalAmount": 17.5,
  "subtotalAmount": 17.5,
  "discountAmount": 0,
  "items": [
    {
      "id": "clx9itm0d0031",
      "productId": "mobile",
      "productName": "Mobile proxy",
      "location": "United States",
      "countryCode": "US",
      "trafficAmount": 5,
      "ports": 1,
      "billingPeriod": "none",
      "duration": 1,
      "quantityLabel": "gb",
      "targeting": "country",
      "unitPrice": 17.5,
      "totalPrice": 17.5
    }
  ],
  "receiptUrl": "/dashboard/orders/clx9ord0c0012"
}
  • 400 INVALID_QUANTITY trafficAmount is not a listed package size.
  • 400 PRODUCT_UNAVAILABLE The product is not available for purchase yet.
  • 404 NOT_FOUND Unknown product id.
GET/ordersList orders

List orders

Returns every order on the account, newest first, with line items and the latest payment.

curl https://api.premip.com/orders \
  -H "X-Api-Key: premip_YOUR_KEY"
GET/orders/{id}Get an order

Get an order

Returns one order. Poll it after creating a pending order; status changes to paid when the payment is confirmed.

curl https://api.premip.com/orders/ORDER_ID \
  -H "X-Api-Key: premip_YOUR_KEY"
POST/orders/{id}/cancelCancel a pending order

Cancel a pending order

Cancels an order that is still pending and closes its open payment. The order then has status failed. Paid orders cannot be cancelled; use refund instead.

curl -X POST https://api.premip.com/orders/ORDER_ID/cancel \
  -H "X-Api-Key: premip_YOUR_KEY"
  • 409 ORDER_NOT_CANCELLABLE Only pending orders can be cancelled.
POST/orders/{id}/refundRefund a paid order

Refund a paid order

Returns the order total to your wallet and revokes the plan and proxies that order created. Only your most recent paid order can be refunded online, and only for 14 days after it was placed. For anything else, contact support.

curl -X POST https://api.premip.com/orders/ORDER_ID/refund \
  -H "X-Api-Key: premip_YOUR_KEY"
  • 409 ORDER_NOT_REFUNDABLE The order is not paid, is not your most recent paid order, or the 14-day refund window has closed.

Cart

The cart is the same one you see in the dashboard. Use it when you want to prepare a purchase in code and finish it in the browser. To buy from code, send the items to POST /orders directly.

GET/cartList cart items

List cart items

Returns the items in your cart with unit and total prices.

curl https://api.premip.com/cart \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

[
  {
    "id": "clx9crt0g0003",
    "productId": "mobile",
    "productName": "Mobile proxy",
    "location": "United States",
    "countryCode": "US",
    "trafficAmount": 5,
    "quantity": 1,
    "unitPrice": 17.5,
    "totalPrice": 17.5,
    "quantityLabel": "gb",
    "targeting": "country"
  }
]
POST/cart/itemsAdd an item

Add an item

Adds a package to the cart. Adding the same configuration again raises its quantity by one. The body takes the same item fields as an order.

JSON body

productIdstring · requiredProduct id from GET /catalog/products, for example mobile or residential.
locationstring · requiredExact location label from GET /catalog/locations, for example "United States". An unknown label is not rejected: it is priced as a premium location.
countryCodestring · requiredTwo-letter country code of that location, for example US. It is not checked against location, so send the matching pair.
trafficAmountinteger · requiredPackage size in GB. It must be one of the package sizes listed for the product.
quantityintegerHow many of this package to buy. Default 1.
targeting"country" | "precise"precise adds state, city, ZIP and ASN targeting where the package supports it. Default country.
portsintegerAccepted and ignored. Every package includes one port.
billingPeriod"none" | "daily" | "weekly" | "monthly" | "yearly"Accepted and ignored. Per-GB packages have no billing period.
durationintegerAccepted and ignored.
curl -X POST https://api.premip.com/cart/items \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"productId":"mobile","location":"United States","countryCode":"US","trafficAmount":5}'
PATCH/cart/items/{id}Update an item

Update an item

Changes any of the item fields. Send only what changes. GET /cart/items/{id} returns one item.

JSON body

productIdstringProduct id from GET /catalog/products, for example mobile or residential.
locationstringExact location label from GET /catalog/locations, for example "United States". An unknown label is not rejected: it is priced as a premium location.
countryCodestringTwo-letter country code of that location, for example US. It is not checked against location, so send the matching pair.
trafficAmountintegerPackage size in GB. It must be one of the package sizes listed for the product.
quantityintegerHow many of this package to buy. Default 1.
targeting"country" | "precise"precise adds state, city, ZIP and ASN targeting where the package supports it. Default country.
portsintegerAccepted and ignored. Every package includes one port.
billingPeriod"none" | "daily" | "weekly" | "monthly" | "yearly"Accepted and ignored. Per-GB packages have no billing period.
durationintegerAccepted and ignored.
curl -X PATCH https://api.premip.com/cart/items/ITEM_ID \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"quantity": 2}'
DELETE/cart/items/{id}Remove an item or clear the cart

Remove an item or clear the cart

DELETE /cart/items/{id} removes one item. DELETE /cart empties the cart.

curl -X DELETE https://api.premip.com/cart/items/ITEM_ID \
  -H "X-Api-Key: premip_YOUR_KEY"

# Empty the whole cart
curl -X DELETE https://api.premip.com/cart \
  -H "X-Api-Key: premip_YOUR_KEY"

Proxies

List the proxies on your account and change how each one behaves. Credentials are returned in full, so treat responses like secrets.

GET/proxiesList proxies

List proxies

Returns every proxy allocation on the account with host, port, credentials, current exit IP, rotation settings and data used.

curl https://api.premip.com/proxies \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

[
  {
    "id": "clx9k2m0a0001",
    "host": "gw.premip.com",
    "port": 8080,
    "username": "user_4f8a21c3",
    "password": "••••••••",
    "location": "United States",
    "kind": "mobile",
    "accessType": "shared",
    "typeLabel": "Mobile (shared)",
    "status": "active",
    "dataUsedMB": 412.6,
    "currentIp": "203.0.113.24",
    "lastRotatedAt": "2026-11-04T09:12:44.000Z",
    "cooldownEndsAt": null,
    "stickyTtlSec": 1800,
    "autoRotateEnabled": false,
    "autoRotateIntervalMin": null,
    "sessionUsernameExample": "user_4f8a21c3-session-your_session_id",
    "countryUsernameExample": "user_4f8a21c3-country-us",
    "countryCode": "US"
  }
]
POST/proxiesCreate a proxy

Create a proxy

Allocates one proxy under your active plan and returns it with its login. Paying for an order creates the plan, not the proxy, so call this after the order is paid. The number of proxies a plan can hold is limited (a pay-as-you-go plan includes one). Returns 201 and the same object as GET /proxies.

JSON body

locationstring · requiredA country code such as US or a location label from GET /catalog/locations, for example "United States".
curl -X POST https://api.premip.com/proxies \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location":"US"}'
  • 400 NO_ACTIVE_PLAN The account has no active plan. Place and pay for an order first.
  • 409 PROXY_LIMIT_REACHED The plan already holds its maximum number of proxies. Delete one first.
  • 409 NO_INVENTORY No endpoint is available for that location right now.
  • 409 INVENTORY_MISCONFIGURED The matching inventory is not ready. Contact support.
DELETE/proxies/{id}Delete a proxy

Delete a proxy

Releases the proxy and its login and frees the slot for a new POST /proxies. Returns an empty object.

curl -X DELETE https://api.premip.com/proxies/PROXY_ID \
  -H "X-Api-Key: premip_YOUR_KEY"
  • 404 NOT_FOUND No proxy with that id on your account.
GET/proxies/{id}Get one proxy

Get one proxy

Same object as the list endpoint for a single proxy.

curl https://api.premip.com/proxies/PROXY_ID \
  -H "X-Api-Key: premip_YOUR_KEY"
  • 404 NOT_FOUND No proxy with that id on your account.
PATCH/proxies/{id}Enable or disable a proxy

Enable or disable a proxy

Inactive proxies refuse connections and cannot run site checks or readiness tests.

JSON body

status"active" | "inactive" · requiredNew state of the proxy.
curl -X PATCH https://api.premip.com/proxies/PROXY_ID \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"inactive"}'
PATCH/proxies/{id}/settingsSet sticky TTL and auto-rotation

Set sticky TTL and auto-rotation

Send only the fields you want to change. Use null to clear a value.

JSON body

stickyTtlSec300 | 1800 | 3600 | nullHow long a -session-ID keeps its exit IP.
autoRotateEnabledbooleanTurn scheduled rotation on or off.
autoRotateIntervalMin0 | 1 | 5 | 30 | 60 | null0 gives a new exit IP on every connection that has no session ID.
curl -X PATCH https://api.premip.com/proxies/PROXY_ID/settings \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stickyTtlSec":1800,"autoRotateEnabled":true,"autoRotateIntervalMin":30}'
PATCH/proxies/{id}/credentialsChange username or password

Change username or password

Existing connections stop authenticating as soon as the change is saved. Update your clients first or right after.

JSON body

usernamestring4 to 32 characters: lowercase letters, digits or underscores. No hyphens, because the gateway reads -session- and -country- from the login.
passwordstring8 to 64 characters: letters, digits and _ . ~ - only.
curl -X PATCH https://api.premip.com/proxies/PROXY_ID/credentials \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"password":"new-Password_2026"}'
  • 409 USERNAME_TAKEN Pick a different username.

IP rotation

Rotation assigns a new exit IP. Host, port and login stay the same, so running scripts and browser profiles keep working.

POST/api/v1/proxies/{id}/rotateRotate by proxy id

Rotate by proxy id

Returns the updated proxy, including the new currentIp and cooldownEndsAt.

curl -X POST https://api.premip.com/api/v1/proxies/PROXY_ID/rotate \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

{
  "id": "clx9k2m0a0001",
  "currentIp": "198.51.100.77",
  "lastRotatedAt": "2026-11-04T09:30:02.000Z",
  "cooldownEndsAt": "2026-11-04T09:31:02.000Z"
}
  • 429 PROXY_ROTATE_COOLDOWN Wait retryAfterSec. The Retry-After header carries the same value.
GET/api/v1/rotateRotate by query string

Rotate by query string

A GET form for tools that can only call a URL, such as a scheduler or a button in a browser profile manager. POST /api/v1/rotate takes the same value as a JSON body {"proxyId": "..."}.

Query parameters

proxystring · requiredProxy id.
curl "https://api.premip.com/api/v1/rotate?proxy=PROXY_ID" \
  -H "X-Api-Key: premip_YOUR_KEY"
GET/api/v1/proxies/{id}/change-ipChange IP (integration route)

Change IP (integration route)

Compatibility route for tools that expect a change-ip URL on an allocation. It triggers the same rotation as the endpoints above, with the same cooldown, and returns an empty object.

curl https://api.premip.com/api/v1/proxies/PROXY_ID/change-ip \
  -H "X-Api-Key: premip_YOUR_KEY"

Pools and geo targeting

Read your purchased pools and look up the countries, regions and cities you can target on rotating products.

GET/api/v1/proxies/historyList allocations by category

List allocations by category

Returns the purchased proxies in one category, newest first. Fields are snake_case: id, url, connection_login, connection_password, connection_host, connection_port, access_type, system_status, expired, change_ip_links and traffic_used_mb.

Query parameters

categorystring · requiredOne of lte, mobile, residential_rotating, residential_static or datacenter. Anything else returns 400 VALIDATION_ERROR.
expiredbooleanInclude expired allocations. Default false.
curl "https://api.premip.com/api/v1/proxies/history?category=lte" \
  -H "X-Api-Key: premip_YOUR_KEY"
POST/api/v1/proxies/rotating-credentialsBuild rotating logins

Build rotating logins

Turns one connection login into ready-to-use credential strings with session type and geo target applied.

JSON body

connection_loginstring · requiredBase username of the pool entry.
connection_passwordstring · requiredPassword of the pool entry.
connection_hoststring · requiredGateway host.
connection_portinteger · requiredGateway port.
session_type"random" | "sticky"random changes IP per request; sticky keeps one.
country_codestringISO country code, from the geo endpoints below.
regionstringRegion name from geo/regions.
citystringCity name from geo/cities.
curl -X POST https://api.premip.com/api/v1/proxies/rotating-credentials \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"connection_login":"USERNAME","connection_password":"PASSWORD","connection_host":"gw.premip.com","connection_port":8080,"session_type":"sticky","country_code":"us"}'

Example response

{ "credentials": ["user-country-us-session-a1b2c3:[email protected]:8080"] }
GET/api/v1/rotating-proxies/subscriptionRotating plan details

Rotating plan details

Your rotating-proxy subscription. Fields are snake_case: provisioning_status, proxy_host, proxy_port, proxy_port_socks5, traffic_used_mb, traffic_quota_mb, traffic_left_mb, expires_at and plan_id. Without an active plan it returns {"provisioning_status":"inactive"}.

curl https://api.premip.com/api/v1/rotating-proxies/subscription/ \
  -H "X-Api-Key: premip_YOUR_KEY"
GET/api/v1/rotating-proxies/session-optionsSession options

Session options

What you can request for rotating products, as snake_case lists: ip_filters, session_durations, protocols and rotation_modes, plus username_grammar describing the login format.

curl https://api.premip.com/api/v1/rotating-proxies/session-options/ \
  -H "X-Api-Key: premip_YOUR_KEY"
GET/api/v1/rotating-proxies/sub-usersSub-users

Sub-users

Sub-users on your rotating plan. Use their ids in the scraper’s prem_proxy_options.

curl https://api.premip.com/api/v1/rotating-proxies/sub-users/ \
  -H "X-Api-Key: premip_YOUR_KEY"
GET/api/v1/rotating-proxies/geo/{countries|regions|cities|zips|isps}Geo catalog

Geo catalog

Walk the location tree: countries, then regions, then cities, then zips and ISPs. Each level narrows the next.

Query parameters

namestringcountries only: filter by country name.
country_codestringRequired for regions, cities, zips and isps.
region_codestringcities: restrict to one region.
city_namestringzips and isps: restrict to one city.
curl "https://api.premip.com/api/v1/rotating-proxies/geo/regions/?country_code=us" \
  -H "X-Api-Key: premip_YOUR_KEY"

IP whitelist

When the whitelist has entries, only those client IPs can authenticate to your proxies. Add the IP of the machine that connects, not the proxy exit IP.

GET/ip-whitelistList entries

List entries

Returns every whitelisted IP with its label.

curl https://api.premip.com/ip-whitelist \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

[{ "id": "clx9k3a1b0002", "ip": "198.51.100.10", "label": "Office VPN", "createdAt": "2026-11-02T14:03:11.000Z" }]
POST/ip-whitelistAdd an IP

Add an IP

Accepts IPv4 and IPv6 addresses.

JSON body

ipstring · requiredIPv4 or IPv6 address of the connecting machine. Use a public address; the same address can be added more than once.
labelstringA short note, such as the team or server name.
curl -X POST https://api.premip.com/ip-whitelist \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ip":"198.51.100.10","label":"Office VPN"}'
PATCH/ip-whitelist/{id}Rename an entry

Rename an entry

Only the label can change. To change the IP, add a new entry and delete the old one.

JSON body

labelstring · requiredNew label.
curl -X PATCH https://api.premip.com/ip-whitelist/ENTRY_ID \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label":"Berlin office"}'
DELETE/ip-whitelist/{id}Remove an entry

Remove an entry

Connections from that IP stop authenticating immediately.

curl -X DELETE https://api.premip.com/ip-whitelist/ENTRY_ID \
  -H "X-Api-Key: premip_YOUR_KEY"

IP quality, site checks and readiness

Measure a proxy before you rely on it. These endpoints report what they see; they do not change how sites treat the proxy.

GET/api/v1/ip-checkIP quality report

IP quality report

Fraud score, proxy and VPN flags, ISP, location and reputation for one public IP. Same data as the dashboard IP checker.

Query parameters

ipstring · requiredPublic IPv4 or IPv6 address.
curl "https://api.premip.com/api/v1/ip-check?ip=203.0.113.24" \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

{
  "ip": "203.0.113.24",
  "score": 12,
  "risk": "low",
  "isp": "Example Mobile",
  "proxyType": "mobile",
  "proxyTypeLabel": "Mobile network",
  "detectedAsProxy": false,
  "geo": { "country": "United States", "countryCode": "US", "city": "Dallas", "timezone": "America/Chicago", "asn": "AS64500" },
  "connection": { "vpnService": false, "torNode": false, "dataCenter": false, "mobileNetwork": true, "residentialProxy": false },
  "reputation": { "usedByBots": false, "abuseVelocity": "none", "osintBlacklist": false }
}
  • 400 INVALID_IP Not a public address.
  • 429 RATE_LIMITED Too many lookups. Wait and retry.
GET/site-checks/catalogList testable sites

List testable sites

The fixed list of sites a check can fetch, with category, host, known bot protection and whether the site is selected by default. Use the key values in the next call.

curl https://api.premip.com/site-checks/catalog \
  -H "X-Api-Key: premip_YOUR_KEY"
POST/site-checksRun a site check

Run a site check

Fetches each selected site once through your proxy and classifies the answer as clear, challenge, captcha, blocked or error. The response includes exitIp, the address the sites saw, and nextRunAt.

JSON body

proxyIdstring · requiredProxy to test. Must be active.
sitesstring[] · required1 to 10 catalog keys, for example ["google","amazon"].
curl -X POST https://api.premip.com/site-checks \
  -H "X-Api-Key: premip_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"proxyId":"PROXY_ID","sites":["google","amazon"]}'

Example response

{
  "exitIp": "203.0.113.24",
  "results": [
    { "siteKey": "google", "outcome": "clear", "latencyMs": 640 },
    { "siteKey": "amazon", "outcome": "captcha", "latencyMs": 910 }
  ],
  "nextRunAt": "2026-11-04T09:31:30.000Z"
}
  • 400 UNKNOWN_SITE A key is not in the catalog.
  • 409 PROXY_INACTIVE Enable the proxy first.
  • 429 SITE_CHECK_COOLDOWN Wait retryAfterSec.
GET/site-checks/statsCAPTCHA and block rates

CAPTCHA and block rates

Per-site pass, CAPTCHA and block rates with request counts and median latency, for one proxy or all of yours.

Query parameters

proxyIdstringLimit to one proxy.
days1 | 7 | 30Window. Default 7.
curl "https://api.premip.com/site-checks/stats?proxyId=PROXY_ID&days=7" \
  -H "X-Api-Key: premip_YOUR_KEY"
GET/site-checks/runsRecent runs

Recent runs

Your latest site-check runs with per-site results, newest first.

Query parameters

proxyIdstringLimit to one proxy.
limitintegerNumber of runs to return.
curl "https://api.premip.com/site-checks/runs?limit=5" \
  -H "X-Api-Key: premip_YOUR_KEY"
GET/proxies/{id}/readinessBrowser profile readiness

Browser profile readiness

The last stored readiness result: score, band (ready, caution, not_ready or insufficient_evidence) and one entry per component with status PASS, WARN, FAIL, NOT_TESTED or STALE. Results are estimates. WebRTC, timezone and language leaks can only be tested inside the browser profile itself.

curl https://api.premip.com/proxies/PROXY_ID/readiness \
  -H "X-Api-Key: premip_YOUR_KEY"
POST/proxies/{id}/readinessRun a readiness test

Run a readiness test

Probes the exit IP, latency, session stability and tunnel through the gateway, then returns the new view.

curl -X POST https://api.premip.com/proxies/PROXY_ID/readiness \
  -H "X-Api-Key: premip_YOUR_KEY"
  • 409 PROXY_INACTIVE Enable the proxy first.
  • 429 READINESS_COOLDOWN Wait retryAfterSec.

Plan and invoices

Read the plan attached to your account, cancel it, and list the invoices created by your orders.

GET/billing/planGet the current plan

Get the current plan

Returns the traffic quota, the amount used and the expiry of your plan. Responds 404 NOT_FOUND until a first order has created a plan.

curl https://api.premip.com/billing/plan \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

{
  "id": "clx9pln0h0002",
  "name": "Mobile 25 GB",
  "dataQuotaMB": 25600,
  "dataUsedMB": 4120.4,
  "unlimitedTraffic": false,
  "expiresAt": "2027-11-04T09:47:30.000Z",
  "status": "active"
}
  • 404 NOT_FOUND The account has no plan yet.
POST/billing/plan/cancelCancel the current plan

Cancel the current plan

Sets the plan status to expired right away and returns the updated plan. Check the plan first: the call takes effect immediately.

curl -X POST https://api.premip.com/billing/plan/cancel \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

{
  "id": "clx9pln0h0002",
  "name": "Mobile 25 GB",
  "dataQuotaMB": 25600,
  "dataUsedMB": 4120.4,
  "unlimitedTraffic": false,
  "expiresAt": "2027-11-04T09:47:30.000Z",
  "status": "expired"
}
GET/billing/invoicesList invoices

List invoices

Returns one invoice per order. GET /billing/invoices/{id} returns a single invoice. receiptUrl is a dashboard path for paid invoices.

curl https://api.premip.com/billing/invoices \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

[
  {
    "id": "clx9inv0i0008",
    "date": "2026-11-04T09:47:30.000Z",
    "amount": "$17.50",
    "status": "paid",
    "receiptUrl": "/dashboard/orders/clx9ord0c0012"
  }
]

Usage

Track how much traffic each proxy used, per day and in total. Results are cached for 60 seconds.

GET/usage/analyticsGet usage analytics

Get usage analytics

Returns plan usage, a per-proxy breakdown (dataUsedMB) and a daily series (mb), all in MB.

curl https://api.premip.com/usage/analytics \
  -H "X-Api-Key: premip_YOUR_KEY"

Example response

{
  "planUsedMB": 4120.4,
  "planQuotaMB": 25600,
  "unlimitedTraffic": false,
  "proxyBreakdown": [
    { "proxyId": "clx9k2m0a0001", "proxyHost": "gw.premip.com", "location": "United States", "dataUsedMB": 4120.4 }
  ],
  "dailyUsage": [ { "date": "2026-11-03", "mb": 612.8 } ]
}

Keep going

API reference — Premip