Skip to main content
See the Swagger UI for live request/response schemas and to try endpoints directly in your browser.
The geo endpoints return the IDs and codes you need to set geo-targeting on your proxies. The typical lookup flow is:
  1. Countries - get a country id (integer) and code (string)
  2. States - use code to get states for that country
  3. Cities - filter by country and optionally state
  4. ZIP codes - filter by country and city
Pass country id values in the countries array when creating or updating a proxy. Use code and extract_parameter values in proxy username parameters for connection-level geo-targeting.

Get countries

Returns all available countries with their numeric IDs and ISO codes.
Query parameters
ParameterTypeRequiredDescription
searchstringNoFilter by country name (partial match)
Scope: geo:read
Example response

Get states

Returns states or regions for a given country.
Query parameters
ParameterTypeRequiredDescription
country_codestringYesISO country code, e.g. US
searchstringNoFilter by region name
Scope: geo:read
Example response

Get cities

Returns cities for a given country, optionally filtered by state.
Query parameters
ParameterTypeRequiredDescription
country_codestringYesISO country code, e.g. US
regionstringNoRegion name to filter by, e.g. California
searchstringNoFilter by city name
Scope: geo:read
Example response

Get ZIP codes

Returns ZIP codes for a city within a country.
Query parameters
ParameterTypeRequiredDescription
country_codestringYesISO country code, e.g. US
citystringYesCity name, e.g. Los Angeles
Scope: geo:read
Example response