Locations API

Every country, region, city, ISP and carrier you can target, with the value to put in the proxy login.

Targeting values come from these lists, never from guesses: a value outside them makes the gateway answer 407, and it never falls back to the whole country. Each item has a name as the network names it ("new york") and a slug, the form the proxy login uses (newyork).

Region and city lists exist for every country. ISP lists (residential) and carrier lists (mobile) exist for the United States, the United Kingdom and Germany so far. The lists follow our upstream network and are cached for a day, so fetch them when you build a picker rather than on every request.

List countries

GET/api/v1/locations/countries

Countries with exits on the product right now. code is what country and the -cc- key take.

Query parameters

NameTypeDescription
productrequiredresidential | mobileWhich pool: residential or mobile.

Request

curl "https://aeonproxy.com/api/v1/locations/countries?product=residential" \
  -H "Authorization: Bearer $AEONPROXY_API_KEY"

Response 200

{
  "product": "residential",
  "count": 3,
  "results": [
    {
      "code": "us",
      "name": "United States"
    },
    {
      "code": "gb",
      "name": "United Kingdom"
    },
    {
      "code": "de",
      "name": "Germany"
    }
  ]
}

Errors

StatusCodeWhen
400invalid_parameterproduct is missing or not residential / mobile

List regions

GET/api/v1/locations/regions

States, provinces or nations of one country. The slug goes into the -st- key: ap_…-cc-us-st-newyork.

Query parameters

NameTypeDescription
productrequiredresidential | mobileWhich pool: residential or mobile.
countryrequiredstringTwo-letter country code from countries, e.g. us, gb, de.

Request

curl "https://aeonproxy.com/api/v1/locations/regions?product=residential&country=us" \
  -H "Authorization: Bearer $AEONPROXY_API_KEY"

Response 200

{
  "product": "residential",
  "country": "us",
  "count": 3,
  "results": [
    {
      "name": "california",
      "slug": "california"
    },
    {
      "name": "new york",
      "slug": "newyork"
    },
    {
      "name": "texas",
      "slug": "texas"
    }
  ]
}

Errors

StatusCodeWhen
400invalid_parameterproduct is missing or not residential / mobile
400invalid_parameterthe country is not in the product's list

List cities

GET/api/v1/locations/cities

Cities of one country, filtered by search and paged with limit and offset (the United States alone has thousands). count is the number of matches before paging. The slug goes into the -city- key.

Query parameters

NameTypeDescription
productrequiredresidential | mobileWhich pool: residential or mobile.
countryrequiredstringTwo-letter country code from countries, e.g. us, gb, de.
searchstringOnly cities whose name contains this text (case-insensitive).
limitintegerPage size. 1–1000. Default 100.
offsetintegerHow many matches to skip. From 0. Default 0.

Request

curl "https://aeonproxy.com/api/v1/locations/cities?product=residential&country=us&search=san&limit=3" \
  -H "Authorization: Bearer $AEONPROXY_API_KEY"

Response 200

{
  "product": "residential",
  "country": "us",
  "count": 41,
  "limit": 3,
  "offset": 0,
  "results": [
    {
      "name": "san antonio",
      "slug": "sanantonio"
    },
    {
      "name": "san diego",
      "slug": "sandiego"
    },
    {
      "name": "san francisco",
      "slug": "sanfrancisco"
    }
  ]
}

Errors

StatusCodeWhen
400invalid_parameterproduct is missing or not residential / mobile
400invalid_parameterthe country is not in the product's list

List ISPs and carriers

GET/api/v1/locations/isps

Home ISPs (residential) or mobile carriers (mobile) of one country. Residential logins take the slug in -isp-, mobile ones in -car-. An empty list means the country has no network targeting yet.

Query parameters

NameTypeDescription
productrequiredresidential | mobileWhich pool: residential or mobile.
countryrequiredstringTwo-letter country code from countries, e.g. us, gb, de.

Request

curl "https://aeonproxy.com/api/v1/locations/isps?product=residential&country=us" \
  -H "Authorization: Bearer $AEONPROXY_API_KEY"

Response 200

{
  "product": "residential",
  "country": "us",
  "kind": "isp",
  "count": 2,
  "results": [
    {
      "name": "comcast cable",
      "slug": "comcastcable"
    },
    {
      "name": "charter communications",
      "slug": "chartercommunications"
    }
  ]
}

Errors

StatusCodeWhen
400invalid_parameterproduct is missing or not residential / mobile
400invalid_parameterthe country is not in the product's list

Your API key is already in the dashboard.