API Documentation
IvyProxy Residential IP Proxy API — OpenAPI 3.0
Authentication
There are two credentials, and they are used in different places. The API key authenticates the proxy itself (and the self-service portal endpoint below); a bearer token from your console login authenticates the management API.
# Management API — log in, then send the token as a bearer header
TOKEN=$(curl -s -X POST https://ivyproxy.com/api/v1/auth/login \
-H 'Content-Type: application/json' \
-d '{"email":"you@example.com","password":"..."}' | jq -r .access_token)
curl -H "Authorization: Bearer $TOKEN" https://ivyproxy.com/api/v1/b2b/account
# Self-service portal — the one endpoint that takes the API key directly
curl -X POST https://ivyproxy.com/api/v1/b2b/portal \
-H 'Content-Type: application/json' \
-d '{"api_key":"<API_KEY>"}'Endpoints
/api/v1/nodesList available proxy nodesBearer tokenQuery available nodes filtered by country, city, IP type, tags, and quality grade.
| Parameter | Type | Description |
|---|---|---|
country | string | ISO 3166-1 alpha-2 country code (e.g. US, DE) |
city | string | City name filter |
ip_type | string | residential | hosting | mobile |
provider_type | string | Exit mechanism filter |
page | integer | Page number (default 1) |
page_size | integer | Results per page (default 20) |
/api/v1/nodes/bestGet the best available nodeBearer tokenReturns the highest-scoring node for the requested country / IP type.
| Parameter | Type | Description |
|---|---|---|
country | string | ISO 3166-1 alpha-2 country code |
ip_type | string | residential | hosting | mobile |
/api/v1/b2b/portalEnterprise self-service portal dataAPI key (in body)Authenticate with your API key and return your account's customer profile, API keys, sessions and usage.
| Parameter | Type | Description |
|---|---|---|
api_key | string | Your API key (request body JSON field) |
Proxy Connection
Connect through the relay with a line. Order lines in your console under "Lines" (country, IP type, a name suffix and a quantity); each line gets an issued login and is bound to one fixed exit. The credentials are identical for SOCKS5 (port 1080) and HTTP/HTTPS (port 8888): username = the line login, copied exactly (e.g. country-jp-type-residential-session-shop-01), password = your API key.
- Logins are issued, not composed: a login that was never issued, or has been released, is refused.
- A line never switches to another exit. Several residential or mobile lines for the same country and type each use a different exit provider; order more lines when you need more IPs.
- Home and mobile networks can go offline or get a new IP from their carrier. While an exit is offline its line is temporarily unavailable; IP changes are reported in your console.
- A line with no traffic for 24 hours (operator setting, shown in the console) is released automatically.
# SOCKS5 (<relay-host> = the access address shown in your console under "Connection details") # Use socks5h so DNS resolves at the exit; socks5 resolves locally, leaking the target and breaking geo matching. curl -x "socks5h://country-jp-type-residential-session-shop-01:<API_KEY>@<relay-host>:1080" https://api.ipify.org # HTTP/HTTPS forward proxy (same credentials; HTTPS targets go through a CONNECT tunnel) curl -x "http://country-jp-type-residential-session-shop-01:<API_KEY>@<relay-host>:8888" https://api.ipify.org
The exact host and ports are listed in your console under "Connection details". On the HTTP entry a missing or invalid key returns 407, a login that was not issued (or does not match its line) 400, a line that is preparing, reconnecting or suspended 503, and an exhausted balance 402.
SDK Quick Start
from proxysdk import ProxyClient
client = ProxyClient(api_key="your-api-key", base_url="https://your-domain")
# List US residential nodes
nodes = client.list_nodes(country="US", ip_type="residential")
# Or let the server pick the best one
best = client.get_best_node(country="US", ip_type="residential")
# Proxy URL: username = a line login issued in the console ("Lines"), password = your API key
# (<relay-host> = the address shown in your console under "Connection details")
proxy_url = client.get_proxy_url("<relay-host>", 1080, "country-us-type-residential-session-task-01")
print(f"Proxy: {proxy_url}")import { ProxyClient } from 'proxy-sdk';
const client = new ProxyClient({ apiKey: 'your-api-key', baseUrl: 'https://your-domain' });
// List German nodes
const nodes = await client.listNodes({ country: 'DE', ipType: 'residential' });
// Proxy URL: username = a line login issued in the console ("Lines"), password = your API key
const proxyUrl = client.getProxyUrl('<relay-host>', 1080, 'country-de-type-residential-session-task-01');
console.log('Proxy:', proxyUrl);package main
import (
"context"
"fmt"
proxysdk "github.com/your-org/proxy-sdk-go"
)
func main() {
client := proxysdk.NewClient("your-api-key", "https://your-domain")
nodes, _ := client.ListNodes(context.Background(), "US", "residential", 10)
fmt.Println("nodes:", len(nodes))
best, _ := client.GetBestNode(context.Background(), "US", "residential")
fmt.Println("best:", best.ID)
// Proxy URL: username = a line login issued in the console ("Lines"), password = your API key
proxyURL, _ := client.ProxyURL("<relay-host>", 1080, "socks5h", "country-us-type-residential-session-task-01")
fmt.Println("proxy:", proxyURL)
}import proxysdk.ProxyClient;
var client = new ProxyClient("your-api-key", "https://your-domain");
// List nodes (raw JSON)
var nodes = client.listNodes("US", "residential", 10);
// Proxy URL: username = a line login issued in the console ("Lines"), password = your API key
System.out.println("Proxy: " + client.getProxyUrl("<relay-host>", 1080, "socks5h", "country-us-type-residential-session-task-01"));Rate Limits & Errors
Rate Limits
- API requests: 100 req/min per API Key (configurable per plan)
- Session creation: 50 req/min per API Key
- Concurrent sessions: varies by plan (default 100)
Error Codes
| Code | Meaning |
|---|---|
401 | Invalid or missing API credentials |
403 | Insufficient permissions or IP not whitelisted |
429 | Rate limit exceeded |
402 | Insufficient balance or quota exhausted |
503 | No available nodes matching criteria |