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 the most common format: JSON

The API supports JSON as the output format. 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/v2/info?apikey=YOUR-APIKEY')
.then(response => {
    console.log(response)
})
.catch(error => {
    console.log(error)
})
Query Parameter Name Type Required / Optional Description
apikey string required Authentication parameter
ip string optional Default: requesters IP
language string optional ie. 'de'

Easy To Use & Fully Customizable IP Geolocation Data

Built with developers in mind, our IP data API is not only easy to integrate but comes along with an entire suite of REST-Clients and pre-built integrations. Additionally, we provide a Postman-Collection.

Supported Languages
and many more...

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.