Free IP geolocation API

Success   This API is designed for UNLIMITED FREE requests
Unlimited daily requests for remote IP address using your apps.

API request:

1. The input link contains the IP address as input variable:
https://ip2.app/info.php?ip=3.230.152.133

API response in JSON format:

2. Example of API response in JSON format:
{"code":"US","country":"United States","region":"Virginia","city":"Ashburn","time_zone":"America\/New_York","asn":"Amazon.com, Inc.","pc":"20149","lat":"39.0481","long":"-77.4728","acc":"1000"}

PHP sample code:

3. Click to copy this code for usage in PHP scripts:
$ip = $_SERVER['REMOTE_ADDR'];
$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;