Endpoint

MethodGET
URLhttps://ipsnapshot.com/api/ip/{ip}
Your own IPhttps://ipsnapshot.com/api/ip/self
AuthNone - no API key required
Rate limit500 requests / day / IP (see X-RateLimit-Remaining header)
CORSAccess-Control-Allow-Origin: * - call it straight from the browser
CachingResponses cacheable for 1h (Cache-Control: max-age=3600)

Example Request

curlcurl https://ipsnapshot.com/api/ip/8.8.8.8
JavaScriptconst r = await fetch('https://ipsnapshot.com/api/ip/8.8.8.8').then(r => r.json());
PHP$r = json_decode(file_get_contents('https://ipsnapshot.com/api/ip/8.8.8.8'), true);
Pythonr = requests.get('https://ipsnapshot.com/api/ip/8.8.8.8').json()

Response Fields

FieldTypeDescription
successbooleantrue when the lookup succeeded
ipstringThe address that was looked up
data.ip_versionint4 or 6
data.country_codestringISO 3166-1 alpha-2 code
data.country / region / city / continentstringGeolocation (city-level for IPv4)
data.asnintAutonomous system number
data.ispstringNetwork operator / organization
data.is_vpnbooleanAppears on public VPN provider lists
data.is_datacenterbooleanFalls within a datacenter/hosting range
data.is_torbooleanActive Tor exit node
data.risk_level / risk_scorestring / intCombined risk assessment (0-100)
pagestringHuman-readable page for this IP on ipsnapshot.com

Errors use standard status codes: 400 invalid IP, 429 daily limit reached.

Fair Use & Attribution

  • 500 requests per day per IP - combined with 1-hour caching this covers most integrations.
  • Geolocation and ASN data include DB-IP Lite (CC BY 4.0); a link back is appreciated.
  • Threat flags are compiled from public VPN/datacenter lists and the official Tor exit list, refreshed regularly.

Frequently Asked Questions

Is the IP lookup API really free?

Yes. No API key, no registration, no credit card. Up to 500 requests/day per IP, CORS enabled for direct browser use.

Does it support IPv6?

Yes - IPv6 lookups return country-level geolocation plus ASN data. IPv4 lookups additionally include city-level location and threat-list flags.

How fresh is the data?

Geolocation and ASN data are refreshed monthly from DB-IP; VPN, datacenter, and Tor lists are refreshed regularly from public sources.

Can I test it right now?

Try /api/ip/8.8.8.8 in your browser, or look up 8.8.8.8, 1.1.1.1, or your own IP with What Is My IP.