jreisinger / checkip

Get (security) info about IP addresses
MIT License
230 stars 24 forks source link

[Feature request] Using IPinfo.io for IP information (IP Geolocation + ASN) #48

Open abdullahdevrel opened 3 months ago

abdullahdevrel commented 3 months ago

I would like to recommend ipinfo.io for the IP data.

Usage example:

curl https://ipinfo.io/8.8.8.8
{
    "ip": "8.8.8.8",
    "hostname": "dns.google",
    "anycast": true,
    "city": "Mountain View",
    "region": "California",
    "country": "US",
    "loc": "37.4056,-122.0775",
    "org": "AS15169 Google LLC",
    "postal": "94043",
    "timezone": "America/Los_Angeles"
}

Documentation: https://ipinfo.io/developers

Free IP databases: https://ipinfo.io/products/free-ip-database

nitefood/asn is mentioned in https://github.com/jreisinger/checkip/issues/41. The project is switching to IPinfo for their IP data as well: https://github.com/nitefood/asn/issues/67#issuecomment-2118168978


Consider including IPinfo in the project for accurate data and generous free access. Please let me know what you think. Thank you very much.