This API service is designed for quick and easy visitors IP geolocation integration into your script or website. Get rid of setting up local GeoIP libraries and forget about regular updates. Our neural network analyzes dozens of sources and almost real-time updates the database.

Data formats

CSV endpoint

You can call the API by sending HTTP GET requests to http://ipwhois.app/csv/{IP}

{IP} can be an IPv4 or IPv6 address, or none to use the current IP address.


You can edit this query and experiment with the options

Actual response,1,IPv4,"North America",NA,"United States",US,https://cdn.ipwhois.io/flags/us.svg,Washington,+1,"CA,MX,CU",California,"Mountain View",37.3860517,-122.0838511,AS15169,"Google LLC","Google LLC",America/Los_Angeles,"Pacific Standard Time",0,-28800,"GMT -8:00","US Dollar",USD,$,1,"US dollars",0

Returned data

The API can return the following fields and values

name description
ip IP used for the query (e.g.
success true or false
message included only when success is false
Can be one of the following: invalid IP address, you've hit the monthly limit
type IP address type (IPv4 or IPv6)
continent Continent name (e.g. North America)
continent_code Two-letter continent code (e.g. NA)
country Country name (e.g. United States)
country_code Two-letter country code (e.g. US)
country_capital The capital of country (e.g. Washington)
country_phone Country Phone Code (e.g. +1)
country_neighbours Neighboring countries (e.g. CA,MX,CU)
region Region/state (e.g. Virginia)
city City (e.g. Ashburn)
latitude Latitude (e.g. 39.0437567)
longitude Longitude (e.g. -77.4874416)
as AS number (e.g. AS15169)
org Organization name (e.g. Level 3 Communications)
isp ISP name (e.g. Level 3 Communications)
timezone City timezone (e.g. America/New_York)
timezone_name Full time zone name (e.g. Eastern Standard Time)
timezone_dstOffset The offset for daylight-savings time in seconds.
timezone_gmtOffset The offset from UTC (in seconds) for the given location. (e.g. -18000)
timezone_gmt Timezone GMT. (e.g. GMT -5:00)
currency Country currency name. (e.g. US Dollar)
currency_code Country currency code. (e.g. USD)
currency_symbol Country currency symbol. (e.g. $)
currency_rates The current exchange rate against the US dollar.
currency_plural Currency plural. (e.g. US dollars)
completed_requests Number of API calls for the current month (Updated every 2 minutes).

Specify response fields

You can restrict API results to specific data fields if you don’t need to keep track of all the data. In this case, you need to add the GET objects parameter to the API request's URL and set a specific field or fields list with a comma.

For example: objects=country,city,timezone


Localized city, region, country and continent can be requested by setting the GET parameter lang to one of the following:

lang description demo
en English (default)
ru Русский (Russian)
de Deutsch (German)
es Español (Spanish)
pt-BR Español - Argentina (Spanish)
fr Français (French)
zh-CN 中国 (Chinese)
ja 日本語 (Japanese)

Usage limits

You can use our API for free up to 10,000 requests per month. See our pricing details if you need more.

We do not allow commercial use of this endpoint. Please see our pro service for SSL access, advanced features and commercial support.