jhurliman

jhurliman / IPInfo / 0.1.0

README.md

Overview

Perform fraud checks, identify bots or automated crawlers, or get more info about an IP address or hostname with this API.

Usage

Input

ParameterDescription
addressValid IPv4 or IPv6 address, or hostname

Output

ParameterDescription
asnAutonomous System Number
country_codeCountry code
country_nameCountry name
hostnameHostname if reverse DNS lookup succeeds, otherwise the same value as the ip field
ipIPv4 or IPv6 address
ip_block_typeOne of the following values: "residential", "commercial", "mixed". If you intend to identify VPNs/proxies look for the "commercial" value
ispInternet Service Provider

Example

Input:

{
    "address": "google.com"
}

Output:

{  
    "asn":15169,
    "country_code":"US",
    "country_name":"United States",
    "hostname":"google.com",
    "ip":"172.217.7.174",
    "ip_block_type":"commercial",
    "isp":"GOOGLE"
}