Skip to main content

Rotating Credentials

Generate multiple credentials for a rotating residential proxy.

Prerequisites

First, retrieve your active rotating proxy from the history endpoint:

GET /proxies/history/?category=residential_rotating&expired=false

You will need the following fields from the response:

  • connection_login
  • connection_password
  • connection_host
  • connection_port

Generate Credentials

POST /proxies/rotating-credentials/

Request Body

{
"connection_login": "string",
"connection_password": "string",
"connection_host": "string",
"connection_port": 10000,
"session_type": "random",
"country_code": "string",
"region": "string",
"city": "string",
"amount": 5
}

Parameters

ParameterRequiredDescription
connection_loginYesLogin from your ordered proxy
connection_passwordYesPassword from your ordered proxy
connection_hostYesHost from your ordered proxy
connection_portYesPort from your ordered proxy
session_typeYesIP rotation behavior (see below)
country_codeNoFilter by country
regionNoFilter by region
cityNoFilter by city
amountNoNumber of credentials to generate

Session Types

TypeDescription
randomIP changes on every request
short_sessionSame IP for a short period (~1 min)
long_sessionSame IP for a longer period (~4 hours)

Response

{
"credentials": [
"login-params:password@host:port"
]
}

Each credential string follows the format:

<connection_login>-<additional_params>:<connection_password>@<connection_host>:<connection_port>
tip

You can retrieve the list of supported country_code, region, and city values from the rotating countries reference available in your dashboard.