IP Address Data API
This IP Address Geolocation REST API allows you to pinpoint your website user's and visitor's location, determining accurately IP geolocation data such as country, state, city, and postal code, as well as delivering detailed information about Carrier, ISP, ASN, Network, Company, IP Type, Hosting Data, and more.
Quickstart Guide: Get Started in 3 Steps
Step 1: Get Free API Key
To use the JSON/XML API, you will be required to get a free API access key by signing up using the link below. Just follow the on-screen instructions until reaching the account dashboard to retrieve your API key.
Generate API KeyCreate an account for ipapi.com
Step 2: Start Using The Free IP Address API
You can now start making API requests to the ipapi service to get geolocation data for any IP address and accurately locate your website visitors within milliseconds.
Example API Request
https://api.ipapi.com/api/78.145.112.151
? access_key = YOUR_ACCESS_KEY
Example API Response
{
"ip": "78.145.112.151",
"type": "ipv4",
"continent_code": "EU",
"continent_name": "Europe",
"country_code": "GB",
"country_name": "United Kingdom",
"region_code": "ENG",
"region_name": "England",
"city": "Earls Court",
"zip": "SW10",
"latitude": 51.4833,
"longitude": -0.1833,
"location": {
"geoname_id": 2650549,
"capital": "London",
"languages": [{
"code": "en",
"name": "English",
"native": "English"
}],
"country_flag": "http://assets.ipapi.com/flags/gb.svg",
"country_flag_emoji": "🇬🇧",
"country_flag_emoji_unicode": "U+1F1EC U+1F1E7",
"calling_code": "44",
"is_eu": true
},
"time_zone": {
"id": "Europe/London",
"current_time": "2018-10-19T20:26:03+01:00",
"gmt_offset": 3600,
"code": "BST",
"is_daylight_saving": true
},
"currency": {
"code": "GBP",
"name": "British Pound Sterling",
"plural": "British pounds sterling",
"symbol": "£",
"symbol_native": "£"
},
"connection": {
"asn": 13285,
"isp": "TalkTalk"
}
}
|