Skip to content

Latest commit

 

History

History

IP Geolocation

IP Geolocation Database

Get location data such as zipcode, city, region, country, location, timezone etc. of IP addresses.

Our IP geolocation data is our primary data product and is considered one of the best in the industry. We operate a large scale network infrastructure consisting of hundreds of servers around the world through which we take active network measurements over the entire internet ecosystem. Through our active measurement, we produce reliable and accurate IP geolocation data. You can learn more about our network from this article:Probe network - how we make sure our data is accurate.

Database Schema & Description

[data updated as of May, 2024]

The following database schema represents the CSV and JSON database.

Field Name Example Data Type Notes
start_ip 1.253.242.0 TEXT Starting IP address of an IP address range
end_ip 1.253.242.255 TEXT Ending IP address of an IP address range
join_key 1.253.0.0 TEXT Special variable to facilitate database join operation
city Yangsan TEXT City of the IP address
region Gyeongsangnam-do TEXT Region of the IP address
country KR TEXT ISO 3166 country code of the IP address
latitude 35.34199 FLOAT Latitude value of the IP address
longitude 129.03358 FLOAT Longitude value of the IP address
postal_code 50593 TEXT Postal code or zip code of the IP address
timezone Asia/Seoul TEXT Local timezone of the IP address

join_key represents the Class C network each IP address is part of, allowing you to filter the result set significantly before joining. Learn more about join_key here.

The following database schema represents the schema of the MMDB Standard database (ip_geolocation_standard_sample.mmdb).

Field Name Example Data Type Description
city Yokohama TEXT City of the IP address range
country JP TEXT Country of the IP address range
geoname_id 1848354 INTEGER Geoname_id that corresponds to geonames.org database
lat 35.5354 FLOAT Latitude value of the location
lng 139.5263 FLOAT Longitude value of the location
postal_code 227-0052 TEXT Postal code value of the location
region Kanagawa TEXT Region of the IP address range
region_code 14 TEXT Region code associated with geonames.org database
timezone Asia/Tokyo TEXT Timezone of the location

As not all IP addresses are available in the sample MMDB database, please refer to the ip_geolocation_standard_sample_ips.txt to get the ranges that have their data available in the MMDB file.

Please refer to "How to choose the best file format for your IPinfo database?" article to select the best format possible for your use case.

The usage of the IP data downloads relies on the software or application of the data. Check out our documentation, community, and our integrations pages to find the best path forward.

API Response

IPinfo also provides a robust IP to Geolocation API service. Please visit the IPinfo Documentation portal to learn more. IP to Geolocation is our IP data available from tier to enterprise tier API access.

API Query:

$ curl ipinfo.io/$IP_ADDRESS?token=$TOKEN

Response:

{
    "ip": "77.224.89.172",
    "hostname": "static-172-89-224-77.ipcom.comunitel.net",
    "city": "Vigo",
    "region": "Galicia",
    "country": "ES",
    "loc": "42.2328,-8.7226",
    "postal": "36201",
    "timezone": "Europe/Madrid"
}

IP Geolocation API.png

Samples

Guides, Resources & Links

Links

🔗 IP Geolocation Database Page

🔗 IP Geolocation Data Downloads Documentation

🔗 IP Geolocation API Page

🔗 IP Geolocation Data Type Documentation

Articles & Guides


Interested in more?

Currently, we are limiting the sample datasets to only 100 rows. If you would like to request a larger sample or would like to get a quote on the database products, feel free to reach to us.

Follow us on Twitter and LinkedIn to learn more about IP Address data and it’s fascinating potential.

About IPinfo

Founded in 2013, IPinfo prides itself on being the most reliable, accurate, and in-depth source of IP address data available anywhere. We process terabytes of data to produce our custom IP geolocation, company, carrier, VPN detection, hosted domains, and IP type data sets. Our API handles over 40 billion requests a month for 100,000 businesses and developers.

image