header-frame
GEOIP AND MORE

Get Better Understanding of Your Users

alternative

Know your visitor

Get more information like country, state, capital, phone code, city and lat/log of your user.

alternative

Trusted Source

We update our database on regular basis to achieve best accuracy and consistent data.

alternative

Powerful & Scalable

We continuously working on our architecture and infrastructure to provide high reliability and robustness.

alternative

Easy to Integrate

We provide top-notch developer-friendly documentation So that you can start using it as quickly as you can.

alternative

Security

Every request will be encrypted with SHA-256 no matter if it is you choose the free plan or paid plan.

alternative

Technical Support

All of your technical problems will be served as soon as possible. Customer satisfaction is our top priority.

GeoIP Lookup API

GeoIP lookup API will help you to get a better understanding of your website/app user by providing their location, local language ,timezone, and continent.

  • Serve customer in their regional language
  • Improve user experience
  • Improve the conversion rate
SIGN UP
POST
var data = JSON.stringify({
    "ip": [
        "{ CLIENT_IP_1 }",
        "{ CLIENT_IP_2 }"
    ]
});
                                      
var xhr = new XMLHttpRequest();
            
xhr.addEventListener("readystatechange", function () {
    if (this.readyState === 4) {
        console.log(this.responseText);
    }
});
                                      
xhr.open("POST", "https://geoipify.com/api/ipinfo");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.setRequestHeader("x-api-key", "{ YOUR_AUTH_KEY }");
                                      
xhr.send(data);
                                
POST                        
<?php
            
$request = new HttpRequest();
$request->setUrl('https://geoipify.com/api/ipinfo');
$request->setMethod(HTTP_METH_POST);
            
$request->setHeaders(array(
    'x-api-key' => '{ YOUR_AUTH_KEY }',
    'Content-Type' => 'application/json'
));
            
$request->setBody('{
    "ip":["{ CLIENT_IP_1 }","{ CLIENT_IP_2 }"]
}');
            
try {
    $response = $request->send();        
    echo $response->getBody();
} catch (HttpException $ex) {
    echo $ex;
}
                                
POST
OkHttpClient client = new OkHttpClient();
            
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n\t\"ip\":[\"{ CLIENT_IP_1 }\",\"{ CLIENT_IP_2 }\"]\n}");
Request request = new Request.Builder()
    .url("https://geoipify.com/api/ipinfo")
    .post(body)
    .addHeader("Content-Type", "application/json")
    .addHeader("x-api-key", "{ YOUR_AUTH_KEY }")
    .build();
                                    
Response response = client.newCall(request).execute();
                                
POST
require 'uri'
require 'net/http'
                                    
url = URI("https://geoipify.com/api/ipinfo")
                                    
http = Net::HTTP.new(url.host, url.port)
                                    
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request["x-api-key"] = '{ YOUR_AUTH_KEY }'
request.body = "{\n\t\"ip\":[\"{ CLIENT_IP_1 }\",\"{ CLIENT_IP_2 }\"]\n}"
                                    
response = http.request(request)
puts response.read_body
                                
POST                        
curl -X POST \
    https://geoipify.com/api/ipinfo \
    -H 'Content-Type: application/json' \
    -H 'x-api-key: { YOUR_AUTH_KEY }' \
    -d '{
        "ip":["{ CLIENT_IP_1 }","{ CLIENT_IP_2 }"]
    }'
                                
NEWSLETTER

Stay Updated With The Latest News

I've read and agree to geoipify's written Privacy Policy and Terms Conditions
footer-frame