IP Geolocation API provides real-time and accurate geolocation, network, abuse, and security information for any IPv4 or IPv6 address.
Authorization
You can make authorized requests to our API by passing API key
as a query parameter. To get your API key, login to our billing
dashboard and get your API key! If your API key has been
compromised, you can change it by clicking on reset button in
billing dashboard.
Important References
- For details on request limits and handling rate limiting, refer here
- For a complete overview of API credit consumption and usage, refer here
Fields Description
Fields
Details
Data Type
Example
ip
IP address being analyzed
string
8.8.8.8
location
Geolocation information derived from IP address
continent_code
Continent code
string
NA
continent_name
Continent name
string
North America
country_code2
2-letter ISO country code
string
US
country_code3
3-letter ISO country code
string
USA
country_name
Country name
string
United States
country_name_official
Official country name
string
United States of America
country_capital
Capital city of the country
string
Washington, D.C.
state_prov
State or province name
string
California
state_code
State or province code
string
US-CA
district
District or region
string
Santa Clara
city
City name
string
Mountain View
locality
Local area or locality
string
Mountain View
accuracy_radius
Accuracy radius of geolocation data
string
zipcode
Postal/ZIP code
string
94043-1351
latitude
Geographic latitude
string
37.42240
longitude
Geographic longitude
string
-122.08421
is_eu
Indicates whether the location is in the EU
boolean
false
geoname_id
GeoNames identifier
string
6301403
country_emoji
Country flag emoji
string
🇺🇸
country_metadata
Additional country-level metadata
calling_code
International calling code
string
+1
tld
Top-level domain of the country
string
.us
languages
List of spoken languages in the country
string
en-US
network
Network-related information for the IP
asn
Autonomous System Number details
as_number
AS number identifier
string
AS15169
organization
Organization owning the ASN
string
Google LLC
country
Country of ASN registration
string
US
asn_name
ASN name
string
GOOGLE
type
Type of ASN (e.g., BUSINESS)
string
BUSINESS
domain
Associated domain
string
about.google
date_allocated
ASN allocation date
string (YYYY-MM-DD)
allocation_status
ASN allocation status
string
assigned
num_of_ipv4_routes
Number of IPv4 routes
string
967
num_of_ipv6_routes
Number of IPv6 routes
string
104
rir
Regional Internet Registry
string
ARIN
connection_type
Type of network connection
string
company
Company owning the IP/network
name
Company name
string
Google LLC
type
Company type
string
domain
Company domain
string
currency
Local currency information based on IP location
code
Currency code
string
USD
name
Currency name
string
US Dollar
symbol
Currency symbol
string
$