Proxies with an API for automation

When you need proxies by the hundred or hand them to clients automatically, manual work in a dashboard does not scale. The x2proxy API lets you manage proxies from code.

Why automate proxy management

Bots, resale services, scrapers and internal team panels create and disable proxies all the time. Doing it by hand is slow and error-prone. With the API, ports, limits, IP changes and traffic purchases run from code at the moment your system needs them.

Common challenges

Manual operationsCreating a hundred ports or changing limits one by one in the interface takes hours.
Scheduled IP changesA script has to change the address before a task without a human in the loop.
Granting and revoking accessClients and teammates need proxies issued fast and disabled just as fast.
Balance controlIf nobody watches the traffic, it runs out at the worst moment.

How proxies help

Ports in batchesUp to 10 ports per request, with safe retries via the Idempotency-Key header.
IP change by linkA rotate-ip link with the port token is called from a script or bot.
Limits and shutdownA traffic limit per port and access shut off with one command, while the connection string stays the same.
Balance and alertsBuy traffic via the API and get email alerts at spend thresholds from 1% to 100%.

Where and how to use it

Changing the IP before every taskCall the rotate-ip link from a script or a bot.
Issuing ports to clientsA bot creates a port with a set limit.
Cutting access with one commandWhen a project closes, the port is disabled and the string stays the same.
A custom team panelSub-accounts, statistics, balance and traffic purchases are in the API too.

Example setup

API key
Settings → API Keys
Creating ports
up to 10 per request, with an Idempotency-Key header
IP change
the rotate-ip link with the port token
Docs
api.x2proxy.com/docs

How to start

  1. Sign up and top upPay with crypto directly or via a wallet, top-ups from $5.
  2. Create a proxy or portPick a country and, if needed, a city or ASN provider.
  3. Set up the sessionSticky from 1 minute to 24 hours, or Rotation to change the IP.
  4. Connect it to your softwareHTTP(S) or SOCKS5: an antidetect browser, scraper, bot or script.

Which proxies to choose

Both types fit this task. Compare the details below or use both from one cabinet.

Residential Proxies

Main

200+ countries and OS fingerprint

Sticky sessions up to 24 hours on real devices for automation and bots.

  • Real devices, 99.8% uptime
  • Geo down to state, city and ASN
  • Sticky from 1 minute to 24 hours, or Rotation
  • OS fingerprint (Windows, Android) and UDP BETA
  • Traffic never expires, instant activation

Mobile Proxies

New

Mobile carrier IPs

Mobile IPs for automation that needs mobile provider addresses: ports, blocked domains, statistics and sub-users are managed in the cabinet.

  • 130+ countries, country and ASN provider choice
  • Sticky from 1 minute to 24 hours, or Rotation
  • UDP BETA
  • Ports, blocked domains, statistics and sub-users in the cabinet
  • Packages from 2 to 500 GB, custom plans on request

Residential and Mobile Proxies in one cabinet

Residential Proxies give wide coverage and an OS fingerprint, Mobile Proxies give carrier IPs and ASN choice. Both run from one cabinet, so you can start with one type and add the other later.

FAQ

Why use proxies for “Automation and API”?
Bots, resale services, scrapers and internal team panels create and disable proxies all the time. Doing it by hand is slow and error-prone. With the API, ports, limits, IP changes and traffic purchases run from code at the moment your system needs them.
Which proxies are best for the “Automation and API” use case?
Residential Proxies: sticky sessions up to 24 hours on real devices for automation and bots. Mobile Proxies: mobile IPs for automation that needs mobile provider addresses: ports, blocked domains, statistics and sub-users are managed in the cabinet.
How much do Residential Proxies cost for the “Automation and API” use case?
Residential Proxies start at $1.50/GB, and the exact price depends on volume. Traffic never expires.
How much do Mobile Proxies cost for the “Automation and API” use case?
Mobile Proxies start at $2.75/GB, and the exact price depends on package size.

Other use cases

Start with x2proxy

Instant activation. Traffic never expires.