IP Geolocation
IP address to full location, currency and ISP.
GET
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ip | string | Optional | IP address to look up (omit to auto-detect caller IP) |
Request Example
curl "https://api.localityapi.com/v1/ip?ip=8.8.8.8" \
-H "X-API-Key: lapi_your_key"Response
json
{
"ip": "8.8.8.8",
"country": "US",
"country_name": "United States",
"city": null,
"timezone": "America/Chicago",
"current_time": "2026-06-02 13:33:51",
"currency": "USD",
"currency_symbol": "$",
"phone_code": "+1",
"languages": ["English"],
"isp": "Google LLC",
"asn": "AS15169",
"is_eu": false,
"query_ms": 9
}Response Fields
ipstringThe IP addresscountrystringISO2 country codecountry_namestringFull country namecitystring|nullCity name if availabletimezonestringIANA timezone identifiercurrent_timestringCurrent local timecurrencystringCurrency codecurrency_symbolstringCurrency symbolphone_codestringPhone dialing codelanguagesarrayOfficial languagesispstringInternet Service ProviderasnstringAutonomous System Numberis_eubooleanWhether in European Unionquery_msintegerQuery execution time in milliseconds