IP geolocation
Look up where an address is, roughly: for regional rules, fraud signals and showing the right defaults to your visitors.
500 lookups a month free, no card needed.
- City
- Mountain View
- Region
- California
- Country
- United States (US)
- Continent
- North America
What you get
City-level location
City, region, country, continent and approximate coordinates.
IPv4 and IPv6
Private, loopback and other non-public addresses simply answer that nothing was found.
Batches
Look up to 100 addresses in one request.
Address in the body
The address travels in the request body, never in a URL, so it stays out of request logs.
Try it
Send one address, or up to 100 in a batch.
curl -s https://api.classifence.com/v1/ip/lookup \
-H "Authorization: Bearer $CLASSIFENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ip":"8.8.8.8"}'
{
"ip": "8.8.8.8",
"found": true,
"country_code": "US",
"region": "California",
"city": "Mountain View",
"accuracy": "approximate",
"attribution": { "text": "IP Geolocation by DB-IP", … },
…
}
Locations are approximate, and coordinates are the city's, not the device's. Data is refreshed monthly.
IP Geolocation by DB-IP, licensed under CC BY 4.0. If you show this data to your own users, keep the credit and link; every response carries an attribution object for this.
Add location to your checks
Create an account, copy your key, and look up your first address in a few minutes.