Free IP geolocation, DNS lookup, WHOIS, and HTTP header inspection API. No signup. No API key. Just send a request and get JSON back.
https://hackmyip.com/api/v1
Returns the caller's public IP address, geolocation, ISP, and privacy/VPN detection data. No parameters needed.
| Field | Type | Description |
|---|---|---|
| ip | string | Public IP address (IPv4 or IPv6) |
| location.city | string | City based on IP geolocation |
| location.region | string | State or region |
| location.country | string | ISO 3166-1 alpha-2 country code |
| location.continent | string | Continent code (NA, EU, AS, etc.) |
| location.latitude | number | Approximate latitude |
| location.longitude | number | Approximate longitude |
| location.timezone | string | IANA timezone (e.g. America/New_York) |
| location.postal_code | string | Postal / ZIP code |
| location.is_eu | boolean | Whether IP is in an EU country |
| network.asn | number | Autonomous System Number |
| network.isp | string | ISP or organization name |
| privacy.type | string | residential, vpn, or datacenter |
| privacy.score | number | IP cleanliness score (0-100) |
| privacy.grade | string | Letter grade: A, B, C, or D |
| privacy.is_vpn | boolean | VPN provider detected |
| privacy.is_datacenter | boolean | Datacenter/hosting IP detected |
Look up geolocation and network information for any IPv4 or IPv6 address.
| Parameter | Type | Description |
|---|---|---|
| address | string | Required. IPv4 or IPv6 address (e.g. 8.8.8.8) |
Query DNS records for any domain. Supports A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA, and PTR record types.
| Parameter | Type | Description |
|---|---|---|
| domain | string | Required. Domain name (e.g. example.com) |
| Parameter | Type | Description |
|---|---|---|
| type | string | DNS record type. Default: A. Options: A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA, PTR |
Returns the HTTP headers your client sent. Useful for debugging proxies, user agents, and custom headers.
Look up WHOIS registration data for a domain via RDAP. Returns registrar, dates, nameservers, and status.
| Parameter | Type | Description |
|---|---|---|
| domain | string | Required. Domain name (e.g. google.com) |
All errors return the same JSON envelope with success: false and a human-readable error message.