ipdata is a JSON IP Address Geolocation API that allows to lookup the location of both IPv4 and IPv6.