Skip to content

Geolocation Data

A typical request and response for a single IP looks like this:

Request Example

GET https://api.ipwho.org/ip/76.102.11.203?apiKey=sk.xxxx&get=geoLocation

Response Example

{
"success": true,
"data": {
"geoLocation": {
"continent": "North America",
"continentCode": "NA",
"country": "United States",
"countryCode": "US",
"capital": "Washington",
"region": "California",
"regionCode": "CA",
"city": "Los Altos",
"postal_Code": "94022",
"dial_code": "+1",
"is_in_eu": false,
"latitude": 37.3793,
"longitude": -122.12,
"accuracy_radius": 10
}
}
}

Geolocation Data Fields

ParameterTypeDescription
ipstringThe IP address that was looked up.
continentstringContinent name (e.g., Asia).
continentCodestringTwo-letter continent code (e.g., AS).
countrystringCountry name (e.g., Nepal).
countryCodestringISO 3166-1 alpha-2 country code (e.g., NP).
capitalstringCapital city of the country (e.g., Kathmandu).
regionstringRegion or province name (e.g., Bagmati Province).
regionCodestringRegion or province code (e.g., P3).
citystringCity name, if available.
postal_CodestringPostal / ZIP code, if available.
dial_codestringCountry calling code (e.g., +977).
is_in_eubooleanIndicates if the country is part of the European Union.
latitudenumberApproximate latitude of the IP location.
longitudenumberApproximate longitude of the IP location.
accuracy_radiusnumberEstimated accuracy radius in kilometers.