How to find location via IP GEOLOCATION API

now a day using IP GEOLOCATION services to improve E commerce conversion, networking traffics analytics, website conversion, find people location and so on. IP GEOLOCATION API is mostly used to get IP information. This Service is  based on our IP address GEOLOCATION database.

This API is three format

  1. Json
  2. XML
  3. CSV

$url = json_decode(file_get_contents(“http://api.ipinfodb.com/v3/ip-city/?key=<YOUR_API_KEY>&ip=&#8221;.$_SERVER[‘REMOTE_ADDR’].”&format=json”));

$ip = $url->ipAddress;
$latitude = $url->latitude;
$longitude = $url->longitude;
$country = ->country;
$region = $url->region;
$city = $url ->city;

Leave a comment