Geolocus
Country location is what matters most.
# Try freely by yourself (examples shown are IP addresses for google.com): curl -XGET 'https://www.geolocus.io/api/ip/216.58.198.206' curl -XGET 'https://www.geolocus.io/api/ip/2a00:1450:4007:816::200e' curl -XGET 'https://www.geolocus.io/api/myip' # Or download the database in MMDB format: wget https://www.geolocus.io/geolocus.mmdb
Your location information
{ "isineu" : 0, "physical_subnet" : "3.144.0.0/13", "location" : "37.09024,-95.712891", "netname" : "AT-88-Z", "physical_latitude" : "37.09024", "physical_continentname" : "North America", "physical_isineu" : 0, "subnet" : "3.144.0.0/13", "physical_asn" : "AS16509", "longitude" : "-95.712891", "asn" : "AS16509", "timezone" : "America/Chicago", "physical_countryname" : "United States", "abuse" : [ "abuse@amazonaws.com", "amzn-noc-contact@amazon.com", "aws-routing-poc@amazon.com", "aws-rpki-routing-poc@amazon.com" ], "continent" : "NA", "physical_timezone" : "America/Chicago", "physical_continent" : "NA", "continentname" : "North America", "physical_location" : "37.09024,-95.712891", "physical_organization" : "Amazon.com, Inc.", "country" : "US", "physical_longitude" : "-95.712891", "physical_country" : "US", "latitude" : "37.09024", "organization" : "Amazon Technologies Inc.", "domain" : [ "amazon.com", "amazonaws.com" ], "countryname" : "United States", "ip" : "3.144.243.80" }
Random IP location
{ "physical_continent" : "NA", "continentname" : "North America", "physical_location" : "37.09024,-95.712891", "physical_longitude" : "-95.712891", "physical_organization" : "Cogent Communications", "country" : "US", "physical_country" : "US", "latitude" : "37.09024", "organization" : "PSINet, Inc.", "domain" : [ "cogentco.com" ], "countryname" : "United States", "ip" : "204.4.210.61", "isineu" : 0, "physical_subnet" : "204.4.192.0/19", "location" : "37.09024,-95.712891", "netname" : "COGENT-204-4-14", "physical_latitude" : "37.09024", "physical_continentname" : "North America", "physical_isineu" : 0, "subnet" : "204.4.192.0/19", "physical_asn" : "AS174", "longitude" : "-95.712891", "asn" : "AS174", "physical_countryname" : "United States", "timezone" : "America/Chicago", "continent" : "NA", "abuse" : [ "abuse@cogentco.com", "ipalloc@cogentco.com", "noc@cogentco.com" ], "physical_timezone" : "America/Chicago" }