IP Address Parameter
The API supports passing in a single IPv4 or IPv6 IP address. Alternatively, if you do not pass in any IP address, we'll return details for the calling address. This allows you to look up your own (or a visitor to your site) IP address details without knowing the IP address in advance.
# Get details for 8.8.8.8 $ curl ipinfo.io/8.8.8.8?token=$TOKEN # Get details for 2001:4860:4860::8888 $ curl ipinfo.io/2001:4860:4860::8888?token=$TOKEN # Get details for your own IP address, which'll be included in the response $ curl ipinfo.io?token=$TOKEN