Proxy guide

Server-Side Proxy Rotation API

Instead of fetching a list and rotating proxies in your own code, Proxy11's rotation endpoint returns one proxy per call. Choose random for a fresh IP each request, or sticky to keep the same IP for a session window.

SDKs

Example

GET https://proxy11.com/api/rotate?key=YOUR_API_KEY&strategy=random
# Random: fresh proxy every call
GET /api/rotate?key=YOUR_API_KEY&country=us&type=anonymous

# Sticky: same proxy for 10 minutes per session
GET /api/rotate?key=YOUR_API_KEY&strategy=sticky&session=scraper-1&sticky_seconds=600

# Response
{"ip":"62.255.12.3","port":"80","country":"United States",
 "country_code":"us","time":0.31,"type":1,
 "strategy":"sticky","session":"scraper-1","sticky_seconds":600}

Practical Tips

  • Use strategy=random when every request needs a different source IP.
  • Use strategy=sticky with a session id when the target expects the same IP across a login flow.
  • The TXT variant (/api/rotate.txt) returns a bare ip:port, ideal for shell scripts and cron.
  • Rotation is stateless and deterministic for sticky sessions, so it behaves the same on every server.

Proxy API

Fetch proxy lists in TXT, JSON, CSV, or XML formats.

API documentation

Python SDK

Install with pip and use rotators or requests sessions.

Python GitHub repo

Node.js SDK

Install with npm and use async proxy helpers.

Node.js GitHub repo