IP Address:
ISP: Merck and Co.
Hostname: ec2-54-87-71-112.compute-1.amazonaws.com
Country: United States
Country Code: US
Region: NJ
City: Woodbridge
Latitude: 40.552501678467
Longtitude: -74.291496276855
ZIP: 07095
DMA Code: 501
54.87.71 block

Try JSON API from command line

$curl http://www.ipgeni.com/api/
    "ip": "",
    "hostname": "ec2-54-87-71-112.compute-1.amazonaws.com",
    "city": "Woodbridge",
    "region": "NJ",
    "country": "US",
    "loc": "40.552501678467,-74.291496276855",
    "org": "Merck and Co.",
    "postal": "07095",
    "phone": ""
IPGENI geolocation API is available on the developer page. The API is compatible with hostip.info api which is no longer updated.