Free IP geolocation API
API request:
1. The input link contains the IP address as input variable:API response in JSON format:
2. Example of API response in JSON format:PHP sample code:
3. Click to copy this code for usage in PHP scripts:$details = json_decode(file_get_contents("https://ip2.app/info.php?ip=".$ip));
$code=$details->code;
$country=$details->country;
$region=$details->region;
$city=$details->city;
$asn=$details->asn;