Retrieve Available Geo-locations

Obtain a list of available geo-locations for Geonode proxy services.

Retrieve a comprehensive list of all available geo-locations, including countries, cities, states, and ASNs that you can use for geo-targeting your proxy requests.

Request

curl -X GET "https://monitor.geonode.com/services/locations/proxies" \
     -u geonode_username:password

Response

200 Success

List of available geo-locations retrieved successfully.

Response Structure

The response is an array of country objects, each containing:

FieldTypeDescription
codestringISO 3166-1 alpha-2 country code
namestringFull country name
citiesobjectCity-level targeting options
cities.prefixstringPrefix to use for city targeting (e.g., "-city-")
cities.optionsarrayList of available cities
statesobjectState-level targeting options
states.prefixstringPrefix to use for state targeting (e.g., "-state-")
states.optionsarrayList of available states
asnsobjectASN-level targeting options
asns.prefixstringPrefix to use for ASN targeting (e.g., "-asn-")
asns.optionsarrayList of available ASNs

Example Response

[
  {
    "code": "AF",
    "name": "Afghanistan",
    "cities": {
      "prefix": "-city-",
      "options": [
        {
          "code": "kabul",
          "name": "Kabul"
        }
      ]
    },
    "states": {
      "prefix": "-state-",
      "options": [
        {
          "code": "kabul",
          "name": "Kabul"
        }
      ]
    },
    "asns": {
      "prefix": "-asn-",
      "options": [
        {
          "code": "131284",
          "name": "AS131284 Etisalat Afghan"
        }
      ]
    }
  }
]

On this page