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=geoLocationResponse 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
| Parameter | Type | Description |
|---|---|---|
ip | string | The IP address that was looked up. |
continent | string | Continent name (e.g., Asia). |
continentCode | string | Two-letter continent code (e.g., AS). |
country | string | Country name (e.g., Nepal). |
countryCode | string | ISO 3166-1 alpha-2 country code (e.g., NP). |
capital | string | Capital city of the country (e.g., Kathmandu). |
region | string | Region or province name (e.g., Bagmati Province). |
regionCode | string | Region or province code (e.g., P3). |
city | string | City name, if available. |
postal_Code | string | Postal / ZIP code, if available. |
dial_code | string | Country calling code (e.g., +977). |
is_in_eu | boolean | Indicates if the country is part of the European Union. |
latitude | number | Approximate latitude of the IP location. |
longitude | number | Approximate longitude of the IP location. |
accuracy_radius | number | Estimated accuracy radius in kilometers. |