Skip to main content

IPSTACK

Vasyl MartyniukLess than 1 minute

Deprecated!

This marker has been deprecated in favor of the GEO marker. This change was made because we've abstracted out geo lookup to integrate with multiple geo lookup providers.

Syntax

${IPSTACK.<pathToProperty>}

Definition

Note!

The IPSTACK is the custom marker available with the premium Complete Package add-on.

Invoke the ipstack.comopen in new window API to obtain the geo-location information based on the user’s IP address.

Here is the example of properties that are available to be targeted by the IPSTACK marker:

{
    "ip": "134.201.250.155",
    "type": "ipv4",
    "continent_code": "NA",
    "continent_name": "North America",
    "country_code": "US",
    "country_name": "United States",
    "region_code": "CA",
    "region_name": "California",
    "city": "Los Angeles",
    "zip": "90012",
    "latitude": 34.0655517578125,
    "longitude": -118.24053955078125,
    "location": {
        "geoname_id": 5368361,
        "capital": "Washington D.C.",
        "languages": [
            {
                "code": "en",
                "name": "English",
                "native": "English"
            }
        ],
        "country_flag": "https://assets.ipstack.com/flags/us.svg",
        "country_flag_emoji": "🇺🇸",
        "country_flag_emoji_unicode": "U+1F1FA U+1F1F8",
        "calling_code": "1",
        "is_eu": false
    }
}

In the example below, we deny access to the backend area to anybody outside of New York state.

{
    "Statement": [
        {
            "Effect": "deny",
            "Resource": "Capability:aam_access_dashboard",
            "Condition": {
                "NotEquals": {
                    "${IPSTACK.region_code}": "NY"
                }
            }
        }
    ]
}

The IPSTACK marker can target any property the API returns. It is documented in their official documentationopen in new window.