FORGOT YOUR DETAILS?

IP Location API

The IP Location API lets you discover the user's location, timezone, IP-address and more. This can be done with just one line of simple Javascript code. Try for free now!

IP Location API

Lookup the location of you vistors fast and accurate

After easy integration the IP Location API delivers the results in JSON format.

The IP Location API works great for small projects and large scale entrerprise projects.

api icon

Try the IP Location API and receive 1000 API calls for free.

Loading your location... please wait!

Try the IP location API for free!

1000 FREE API CALLS

IP location API Features

The IP location API is able to lookup the location - timezone - currency - and IP-address

Location lookup 

The IP location API is able to detect the exact location of a user. This detailed location information is presented to you in JSON format. Specifically, the country, region, and city is returned to you. The API locates the exact GPS coordinates of your visitor. Both the langitude and longitude are presented. Finaly, the location lookup module detects the local phone-code

Timezone lookup 

The IP location API detect the local timezone of the user. The timezone is presented to you in string and ISO format. Additionally, the timezone module presents the local time of the user to you. This can be used to personalise your website with local timing information of your visitor. 

Currency lookup 

The currency lookup module can be used to personalise your webshop. Adjust the pricing of your products to the local vuluta of the visitor. The currency is presented to you in string ans ISO format. All the currency signs are returned to you as well.

IP-address lookup

The IP-address is used by the IP location API to lookup the exact information outlined above. Other IP location API's often require the IP-address to lookup this information. This API automatically detects the IP-address and presents this to you. The API is able to detect both IPv4 and IPv6 IP-addresses. 

Try the IP location API for free!

1000 FREE API CALLS

Code 

There are several implementations available. Choose the best type for your application. Once implemented the variables can be used to identify information about the location of visitors on your website.  

IMPLEMENTATION

Add the following code between your <head> tags.

<script src="https://theapicompany.com/geolocationAPI.js?id=XXX"></script>


Note: the ID is used for idenfication and not for authorization. You will receive the unique ID in your email after your order is complete or you enlisted to the trial!
VARIABLES
Location
var countrycode = geolocation.location.countryCode; //NL var country = geolocation.location.country; //Netherlands var regioncode = geolocation.location.regionCode; //nh var region = geolocation.region.country; //Noord-Holland var city = geolocation.location.city; //Haarlem var longitude = geolocation.location.longitude; //51.229546 var latitude = geolocation.location.latitude; //6.046671 var capital = geolocation.location.capital; //Amsterdam var phonecode = geolocation.location.phoneCode; //31
Timezone
var timezonename = geolocation.timezone.timezoneName; //Europe/Amsterdam var timezonecode = geolocation.timezone.timezoneCode; //CET var localtime = geolocation.timezone.localTime; //Thu Mar 26 2020 16:55:45 GMT+1
Currency
var currencyname = geolocation.currency.currencyName; //EURO var currencycode = geolocation.currency.currencyCode; //EUR var currencysymbol = geolocation.currency.currencySymbol; //€
IP Address
var ipaddress = geolocation.userIP; //83.28.23.151
IMPLEMENTATION

Add the following code between your <head> tags.

<script async src="https://theapicompany.com/geolocationAPI2.js?id=XXX"></script>


Note: the ID is used for idenfication and not for authorization. You will receive the unique ID in your email after your order is complete or you enlisted to the trial!


VARIABLES

Create a callback function. Use the following variables inside this function:

function geolocationAPICallback(geolocation){ // do stuff here - use geolocation. alert(geolocation.location.countryCode); //NL alert(geolocation.location.country); //Netherlands alert(geolocation.location.regionCode); //nh alert(geolocation.location.region); //Noord-Holland alert(geolocation.location.city); //Haarlem alert(geolocation.location.latitude); //51.229546 alert(geolocation.location.longitude); //6.046671 alert(geolocation.location.phoneCode); //31 alert(geolocation.timezone.timezoneName); //Europe/Amsterdam alert(geolocation.timezone.timezoneCode); //CET alert(geolocation.timezone.localTime); //Thu Mar 26 2020 16:55:45 GMT+1 alert(geolocation.currency.currencyName); //EURO alert(geolocation.currency.currencyCode); //EUR alert(geolocation.currency.currencySymbol); //€ alert(geolocation.userIP); //82.28.23.151 };

Coming soon!

Try the IP location API for free!

1000 FREE API CALLS

- OR -

Pick your plan

BASIC PLAN

$2.99per month

100K API Calls
  • Best for small websites!
Calls/month100.000
 Location
 Timezone
 Currency
 IP address
 HTTPS
 Domains1
MEDIUM PLAN

$7.99per month

500K API Calls
  • Best for most companies!
Calls/month500.000
 Location
 Timezone
 Currency
 IP address
 HTTPS
 Domains1

PRO PLAN

$12.99per month

1M API Calls
  • Best for big companies!
Calls/month1.000.000
 Location
 Timezone
 Currency
 IP address
 HTTPS
 Domains3

GOLD PLAN

$79.99per month

10M API Calls
  • Best for enterprises!
Calls/month10.000.000
 Location
 Timezone
 Currency
 IP address
 HTTPS
 Domains5

Need more API calls? Contact us!

Contact us

Find more information on the blog. If you have any questions or remarks let us know!

TOP