Free & Reliable

IP Geolocation API

ipbase.com provides a reliable & scalable IP geolocation API for software developers. It uses a database of IP addresses associated with cities and other relevant information like time zone, latitude, and longitude.

Try it yourself & get started

Try the demo and convince yourself of the data quality of the API. By default, it shows data of your own IP address.

data

Generous usage volume for any use case

We provide a great price-value ratio. Our free plan provides you with 150 free monthly requests to help you get started. 100% free - no strings attached.

scalable

Ultra fast speeds

We have optimized the API for speed and reliability. The API leverages a strong infrastructure and is served right from the edge.

formats

Supports all common data formats

The API supports .csv, .xml and .json as output formats. Simply specify the desired format as part of the request url, and the response will be formatted accordingly.

Try it yourself:
{
    "ip":, "0.0.0.0",
    "country_code": "US",
    "country_name": "United States",
    "region_code": "0",
    "region_name": "0",
    "city": "Vienna",
    "zip_code": "1010",
    "time_zone": "Europe/Vienna",
    "latitude": 48.1936,
    "longitude": 16.3726,
    "metro_code": 0
}

Code Snippets

You can integrate our IP geolocation API into any application written in any programming language. The following code examples show how to use the IP lookup API with the most common programming languages:

// own IP address
const request = require('request-promise');

request('https://api.ipbase.com/json/?apikey=YOUR-APIKEY')
.then(response => {
    console.log(response)
})
.catch(error => {
    console.log(error)
})
URI Parameter Name Type Required / Optional Description
format string required Possible values: json, xml, csv, jsonp
IP Address string optional default: client IP address
Query Parameter Name Type Required / Optional Description
apikey string required Authentication parameter
callback string optional Function to call after request was executed

Frequently asked questions

What is ipbase.com?

ipbase.com is a JSON-based IP lookup REST API that enables developers to retrieve data about an IP Address.

How many requests can I make?

Our IP geolocation API provides you with a generous request volume. Our free plan provides you with 150 free requests to help you get started!

Are the data up-to-date?

ipbase.com offers real-time data for all your IP requests.