Skip to content
Login Sign up

Residential Proxies API

The Residential Proxies product is configured per-request via the gateway username — there is no per-account “management” API for it. What this API gives you is a way to enumerate the geo selectors you can drop into the username (country, region, city, asn) so your tooling stays in sync with what’s actually available.

All endpoints authenticate with an api_key query parameter. Generate a key in the panel under Account → API Keys.

?api_key=YOUR_API_KEY
GET https://shifter.io/api/v1/residential/geo/countries

Returns every country available for country-<iso2> targeting on the Residential Proxies gateway.

ParameterInRequiredDescription
api_keyqueryyesYour API key

Example:

Terminal window
curl "https://shifter.io/api/v1/residential/geo/countries?api_key=YOUR_API_KEY"

Response:

[
{ "code": "us", "name": "United States" },
{ "code": "de", "name": "Germany" },
{ "code": "gb", "name": "United Kingdom" },
{ "code": "fr", "name": "France" }
]
GET https://shifter.io/api/v1/residential/geo/regions

Returns the regions (states / provinces) available for region-<slug> targeting within a given country.

ParameterInRequiredDescription
api_keyqueryyesYour API key
countryqueryyesISO 3166-1 alpha-2 country code, e.g. us

Example:

Terminal window
curl "https://shifter.io/api/v1/residential/geo/regions?country=us&api_key=YOUR_API_KEY"

Response:

[
{ "slug": "california", "name": "California" },
{ "slug": "new_york", "name": "New York" },
{ "slug": "texas", "name": "Texas" }
]
GET https://shifter.io/api/v1/residential/geo/cities

Returns the cities available for city-<slug> targeting within a country (and optionally a region).

ParameterInRequiredDescription
api_keyqueryyesYour API key
countryqueryyesISO 3166-1 alpha-2 country code
regionquerynoRegion slug to narrow results

Example:

Terminal window
curl "https://shifter.io/api/v1/residential/geo/cities?country=us&region=california&api_key=YOUR_API_KEY"

Response:

[
{ "slug": "los_angeles", "name": "Los Angeles" },
{ "slug": "san_francisco", "name": "San Francisco" },
{ "slug": "san_diego", "name": "San Diego" }
]
GET https://shifter.io/api/v1/residential/geo/asns

Returns the ASNs available for asn-<num> targeting within a country.

ParameterInRequiredDescription
api_keyqueryyesYour API key
countryqueryyesISO 3166-1 alpha-2 country code

Example:

Terminal window
curl "https://shifter.io/api/v1/residential/geo/asns?country=us&api_key=YOUR_API_KEY"

Response:

[
{ "asn": 7922, "name": "Comcast" },
{ "asn": 701, "name": "Verizon" },
{ "asn": 22773, "name": "Cox Communications" }
]