IP Version 4
IP Address 3.236.50.252
Latitude 31.707035
Longitude -83.65078
Country Name United States of America
Country Code US
Time Zone -04:00
Zip Code 20146
City Name Ashburn
Region Name Virginia
Usage
The API accepts GET and POST methods and you can pass ip field as body or query param. However, If you don't pass the ip field we'll use the sender's ip address to extract the information.
Javascript
fetch('https://freeipapi.com/api/json', {
method: 'GET'
})
.then(response => response.json())
.then(data => {
console.log('Success:', data);
})
.catch((error) => {
console.error('Error:', error);
});
Javascript - Jquery
$.get( "https://freeipapi.com/api/json", function (data) {
console.log(data)
});
Curl
curl https://freeipapi.com/api/json/1.1.1.1
PHP
$req = file_get_contents('https://freeipapi.com/api/json/8.8.8.8');
$data = json_decode($req, true);
print_r($data);
Rate Limit
The rate limit is maximum 60 requests per minute for one IP address.
Database
Our databases is updating and adding new IPs everyday.