To identify visitors location details like country, state, city, zipcode, latitude and longitude etc...
Use below webrequest
http://api.ipinfodb.com/v3/ip-city/?key=&ip=103.238.107.173&format=json
Here to get Api-Key, we have to register and get api-key
Use below webrequest
http://api.ipinfodb.com/v3/ip-city/?key=
The API returns Geographic location details in JSON format as shown below.
{
"statusCode" : "OK",
"statusMessage" : "",
"ipAddress" : "103.238.107.173",
"countryCode" : "IN",
"countryName" : "India",
"regionName" : "Gujarat",
"cityName" : "Ahmedabad",
"zipCode" : "380028",
"latitude" : "23.0333",
"longitude" : "72.6167",
"timeZone" : "+05:30"
}
Here to get Api-Key, we have to register and get api-key