Free IP Geolocation API

Look up the city, country, time zone and coordinates of any IP address with one free API call. Works for IPv4 and IPv6, and detects your visitor's own IP too.

0
1
2
3
4
5
6
7
8
9
10
11
{
   "ip": "0.0.0.0",
   "country_code": "",
   "country_name": "",
   "region_code": "",
   "region_name": "",
   "city": "",
   "postal_code": "",
   "time_zone": "",
   "latitude": 0,
   "longitude": 0
}

IP Detection

Get the public IP address of the visitor calling the API.

Read more in the documentation

IP Lookup

Get the location and time zone of any IP address.

Read more in the documentation

Geo-Fencing

Show, hide or localize content based on where your visitors are.

Read more in the documentation

A free IP lookup API for developers

Knowing where your visitors are lets you localize content, set the right currency and spot suspicious traffic. We think the basics should cost nothing, so this API is free.

5,000 free requests a month

Enough for hobby projects and small production apps.

Fast responses

Lookups answer in milliseconds, so they never slow down a page.

IPv4 and IPv6

Look up addresses in either format with the same endpoint.

Need more data?

ipbase.com is our commercial IP API, with ISP, ASN, VPN and proxy detection and any monthly volume.

Any monthly volume

ISP and ASN data

VPN, proxy and Tor detection

Bulk lookups

Compare ipbase.com
ipbase.com