IP address API
No sign-up for everyday use. With Pro, a personal key and generous quotas.
Free
1,000
requests per day per IP, no key
Your IP
$ curl netip.site
88.164.21.7
$ curl netip.site/json # all details
Another IP
$ curl "netip.site/json?ip=8.8.8.8"
$ curl -H "Authorization: Bearer nk_…" "netip.site/json?ip=8.8.8.8" # Pro
The key can also go in the X-Api-Key header or the ?key= parameter. Keep it secret (server side).
Response
{
"ip": "8.8.8.8",
"version": 4,
"hostname": "dns.google",
"country": "United States",
"country_code": "US",
"region": "California",
"city": "Mountain View",
"postal": "",
"latitude": 37.4056,
"longitude": -122.0775,
"timezone": "America/Los_Angeles",
"utc_offset": -420,
"continent": "North America",
"eu": false,
"asn": 15169,
"org": "Google LLC",
"datacenter": true,
"private": false
}
Errors
| Code | Response | Meaning |
|---|---|---|
| 401 | {"error":"invalid_key"} | Unknown or disabled key |
| 429 | {"error":"quota"} | Daily quota reached (resets every day at midnight) |
| 429 | {"error":"rate_limited"} | Too many requests in a few minutes |
Watch an IP (Pro)
*/5 * * * * curl -s netip.site/ping/<watcher key> # → ok 88.164.21.7 | changed <old> <new>
Each watcher’s /ping/ address is in “My account”. Add ?format=json for a JSON response.