geoip insights 用法



网页直接访问,输入用户密码

https://geoip.maxmind.com/geoip/v2.1/insights/47.242.75.187?pretty

https://geoip.maxmind.com/geoip/v2.1/insights/me?pretty


用curl

api 用法:

https://dev.maxmind.com/geoip/docs/web-services?lang=en

# Retrieve data for your IP address.

curl -u "{account_id}:{license_key}" \

https://geoip.maxmind.com/geoip/v2.1/insights/me?pretty

# Retrieve data for an arbitrary IP address.

curl -u "{account_id}:{license_key}" \

 https://geoip.maxmind.com/geoip/v2.1/insights/{ip_address}?pretty


返回信息如下:


{
    "city": {
        "confidence": 1,
        "geoname_id": 8223932,
        "names": {
            "en": "Central",
            "ja": "中環",
            "ru": "Центральный"
        }
    },
    "continent": {
        "code": "AS",
        "geoname_id": 6255147,
        "names": {
            "fr": "Asie",
            "ja": "アジア",
            "pt-BR": "ásia",
            "ru": "Азия",
            "zh-CN": "亚洲",
            "de": "Asien",
            "en": "Asia",
            "es": "Asia"
        }
    },
    "country": {
        "confidence": 99,
        "iso_code": "HK",
        "geoname_id": 1819730,
        "names": {
            "ja": "香港",
            "pt-BR": "Hong Kong",
            "ru": "Гонконг",
            "zh-CN": "香港",
            "de": "Hongkong",
            "en": "Hong Kong",
            "es": "Hong Kong",
            "fr": "Hong Kong"
        }
    },
    "location": {
        "accuracy_radius": 1000,
        "latitude": 22.2908,
        "longitude": 114.1501,
        "time_zone": "Asia/Hong_Kong"
    },
    "maxmind": {
        "queries_remaining": 5663
    },
    "registered_country": {
        "iso_code": "US",
        "geoname_id": 6252001,
        "names": {
            "fr": "états Unis",
            "ja": "アメリカ",
            "pt-BR": "EUA",
            "ru": "США",
            "zh-CN": "美国",
            "de": "Vereinigte Staaten",
            "en": "United States",
            "es": "Estados Unidos"
        }
    },
    "subdivisions": [
        {
            "confidence": 1,
            "iso_code": "HCW",
            "geoname_id": 7533598,
            "names": {
                "en": "Central and Western District"
            }
        }
    ],
    "traits": {
        "is_anonymous": true,
        "is_hosting_provider": true,
        "user_type": "hosting",
        "autonomous_system_number": 45102,
        "autonomous_system_organization": "Alibaba US Technology Co., Ltd.",
        "isp": "Alibaba",
        "organization": "Alibaba",
        "ip_address": "47.242.75.187",
        "network": "47.242.75.128/25"
    }
}


相关字段文档

https://dev.maxmind.com/geoip/docs/databases/anonymous-ip?lang=en


is_anonymous

boolean

1 if the IP address belongs to any sort of anonymous network. Blank if not.

* Learn more about anonymizer and proxy detection on our Knowledge Base.<?XML:NAMESPACE PREFIX = "[default] http://www.w3.org/2000/svg" NS = "http://www.w3.org/2000/svg" />

is_anonymous_vpn

boolean

1 if the IP address is registered to an anonymous VPN provider. Blank if not.

If a VPN provider does not register subnets under names associated with them, we will likely only flag their IP ranges using the is_hosting_provider flag.

* Learn more about VPNs on our Knowledge Base.

is_hosting_provider

boolean

1 if the IP address belongs to a hosting or VPN provider (see description of is_anonymous_vpn flag). Blank if not.

* Learn more about hosting providers used for anonymizing on our Knowledge Base.

is_public_proxy

boolean

1 if the IP address belongs to a public proxy. Blank if not.

* Learn more about public proxies on our Knowledge Base.

is_tor_exit_node

boolean

1 if the IP address is a Tor exit node. Blank if not.

* Learn more about Tor exit nodes on our Knowledge Base.

is_residential_proxy

boolean

1 if the IP address is on a suspected anonymizing network and belongs to a residential ISP. Blank if not.

* Learn more about residential proxies on our Knowledge Base.