API usage from command line:

$ curl http://ipinfo.freq-out.com/8.8.8.8
{
  "ip": "8.8.8.8",
  "continent_code": "NA",
  "country_code": "US",
  "country_name": "United States",
  "city_name": "Mountain View",
  "postal_code": "",
  "latitude": 37.385999999999996,
  "longitude": -122.0838,
  "timezone": "America/Los_Angeles",
  "real_region_name": "California",
  "osm_url": "https://www.openstreetmap.org/#map=11/37.385999999999996/-122.0838"
}