Get accurate IP address geolocation data with country, city, timezone, currency, and ISP information. Support for both IPv4 and IPv6 addresses.
{
"ip": "1.1.1.1",
"country_code": "AU",
"country_name": "Australia",
"city": "Sydney",
"latitude": -33.8688,
"longitude": 151.2093,
"timezone": "Australia/Sydney",
"currency": "AUD",
"connection": {
"isp": "Cloudflare Inc"
}
}
Real-world applications of IP geolocation data
Automatically display content in the user's language and currency based on their location. Improve user experience with localized pricing and regional content.
Detect suspicious login attempts and transactions from unusual locations. Implement geo-blocking and access controls to protect your platform.
Understand your audience demographics with geographic analytics. Track visitor locations and generate detailed regional reports.
Deliver location-specific ads and promotions. Increase conversion rates with geographically relevant marketing campaigns.
Enforce geographic restrictions and comply with regional regulations like GDPR. Implement geo-fencing for content distribution.
Automatically detect user timezones for scheduling and time-based features. Display times in the user's local timezone.
Simple integration with your favorite programming language
curl "https://api.ipbase.com/v2/info?apikey=YOUR_API_KEY&ip=1.1.1.1"
const response = await fetch(
'https://api.ipbase.com/v2/info?apikey=YOUR_API_KEY'
);
const data = await response.json();
console.log(data.data);
import requests
response = requests.get(
'https://api.ipbase.com/v2/info',
params={'apikey': 'YOUR_API_KEY'}
)
data = response.json()
print(data['data'])
$response = file_get_contents(
'https://api.ipbase.com/v2/info?apikey=YOUR_API_KEY'
);
$data = json_decode($response, true);
print_r($data['data']);
Use IPBase with your favorite tools and platforms