IP Detection
IP geolocation API
Country, city, coordinates and timezone for an IP address.
Locate an IP
GET/v1/geo/{ip}
API key
Parameters
- ipstringpathRequired
IPv4 or IPv6 address.
Response fields
- ipstring
IP address that was checked.
- countrystring
Country name.
- countryCodestring
Two-letter ISO country code.
- citystring
City name.
- regionstring
Region or state.
- postalCodestring | null
Postal code.
- latitudenumber | null
Latitude.
- longitudenumber | null
Longitude.
- timezonestring
IANA timezone.
- accuracyRadiusinteger | null
Radius of the location estimate, in kilometres.
- lockedstring[]
Dotted paths of the fields sent as null on this plan. Absent on Starter and above.
- planRequiredstring
Plan that includes the locked fields. Absent on Starter and above.
curl https://ipscanner.io/v1/geo/24.48.0.1 \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"ip": "24.48.0.1",
"country": "Canada",
"countryCode": "CA",
"city": "Montreal",
"region": "Quebec",
"postalCode": "H1K",
"latitude": 45.6085,
"longitude": -73.5493,
"timezone": "America/Toronto",
"accuracyRadius": 5
}