{% include "styles.html" %}
Your IP Address
{% if ExplicitLookup %} Reset {% endif %}

{%- if City %}{{ City }}{% if Country %}, {% endif %}{% endif -%} {{- Country -}} {%- if CountryISO %} {{ CountryISO }}{% endif -%} {%- if ASNOrg %} · {{ ASNOrg }}{% endif -%}

Network & Location
{% if Hostname %}{% endif %} {% if ASN %}{% endif %} {% if ASNOrg %}{% endif %} {% if Country %}{% endif %} {% if CountryISO %}{% endif %} {% if CountryEU %}{% endif %} {% if RegionName %}{% endif %} {% if RegionCode %}{% endif %} {% if City %}{% endif %} {% if PostalCode %}{% endif %} {% if MetroCode %}{% endif %} {% if Latitude %}{% endif %} {% if Longitude %}{% endif %} {% if Timezone %}{% endif %}
IP{{ IP }}
Decimal{{ IPDecimal }}
Hostname{{ Hostname }}
ASN{{ ASN }}
Organization{{ ASNOrg }}
Country{{ Country }}
Country ISO{{ CountryISO }}
EU Member{{ CountryEU }}
Region{{ RegionName }}
Region Code{{ RegionCode }}
City{{ City }}
Postal Code{{ PostalCode }}
Metro Code{{ MetroCode }}
Latitude{{ Latitude }}
Longitude{{ Longitude }}
Timezone{{ Timezone }}
Map
{% if Latitude %}

Approximate location. Data by MaxMind / ip66.dev.

{% else %}

No coordinates available for this address.

{% endif %}

API

All endpoints are available programmatically. Use curl -s to suppress the progress bar.

Plain text

{% if Country %} {% endif %} {% if CountryISO %} {% endif %} {% if City %} {% endif %} {% if ASN %} {% endif %}
CommandResponse
curl {{ Host }}{% if ExplicitLookup %}?ip={{ IP }}{% endif %} {{ IP }}
curl {{ Host }}/country{% if ExplicitLookup %}?ip={{ IP }}{% endif %} {{ Country }}
curl {{ Host }}/country-iso{% if ExplicitLookup %}?ip={{ IP }}{% endif %} {{ CountryISO }}
curl {{ Host }}/city{% if ExplicitLookup %}?ip={{ IP }}{% endif %} {{ City }}
curl {{ Host }}/asn{% if ExplicitLookup %}?ip={{ IP }}{% endif %} {{ ASN }}
  • Set Accept: application/json header for JSON responses.
  • Append ?ip=ADDRESS to look up a different IP. Not supported on /port.

JSON

{% if Port %} {% endif %}
CommandDescription
curl {{ Host }}/json{% if ExplicitLookup %}?ip={{ IP }}{% endif %} Full IP information
curl {{ Host }}/port/<PORT> Port reachability check

Example response

{{ JSON | safe }}
{% if Port %}

Port response

{
  "ip": "{{ IP }}",
  "port": 443,
  "reachable": false
}
{% endif %}

FAQ

How do I force IPv4 or IPv6?
Pass -4 or -6 to your client, e.g. curl -4 {{ Host }}.
Is automated use allowed?
Yes, but please be reasonable with request frequency.
Can I run my own instance?
Yes. Source code is available on GitHub.