RankMyIP

Lookup

Location, ASN and purity for any IPv4 / IPv6 address.

IPv4 and IPv6 are both supported. You see whichever protocol your browser used to connect.

Command line

curl https://rankmyip.com/ip/8.8.8.8

JSON API

curl https://rankmyip.com/api/ip/8.8.8.8

The JSON API and command-line lookups allow up to 20 requests per minute per IP (web lookups count too). Beyond that you get HTTP 429; please retry after a minute.