Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] IPinfo IP to Country database for visitor location. #170

Open
abdullahdevrel opened this issue Oct 11, 2024 · 2 comments

Comments

@abdullahdevrel
Copy link

I am requesting to add support for IPinfo's IP to Country database to the project. The database has the following features:

  • It is updated daily, with zero compromise to accuracy. There is no range clustering, and the database provides full accuracy.
  • The data granularity reaches individual IP level.
  • The database comes in MMDB database format.
  • It is licensed under CC-BY-SA 4.0, permitting commercial usage.
  • The data is tabular and unnested, making it very easy to use. The dataset includes both IPv4 and IPv6 in a single file.

Database schema

Field Name Example Data Type Description
start_ip 1.0.16.0 TEXT Starting IP address of an IP address range
end_ip 1.0.31.255 TEXT Ending IP address of an IP address range
country JP TEXT ISO 3166 country code of the location
country_name Japan TEXT Name of the country
continent AS TEXT Continent code of the country
continent_name Asia TEXT Name of the continent

Documentation: https://ipinfo.io/developers/ip-to-country-database

The database can be downloaded simply by accessing the storage URI with an access token.

curl -L https://ipinfo.io/data/free/country.mmdb?token=<YOUR_TOKEN> -o country_asn.mmdb

Let me know what you think. Thanks!


Advantages over existing solutions:

  • Full accuracy and uncompromising reliability.
  • Licensed under a generous CC-BY-SA 4.0 that allows distribution of the database.
  • Location accuracy granularity reaches the individual IP level.
  • Ease of long-term development.
@ruslandoga
Copy link
Contributor

ruslandoga commented Oct 11, 2024

👋 @abdullahdevrel

I don’t think it would work since they don’t seem to provide geoname ids. Ah, it’s country-level only, no city data. I’ll explore making locus more configurable vie env vars tomorrow. Thank you for the suggestion!

@abdullahdevrel
Copy link
Author

@ruslandoga

Thank you for considering the request. Ping me if you need any help or anything. I have been procrastinating making the request because I know city level data might be important for Plausible. But I discovered that GeoLite city returns null for a ton of IP ranges. Essentially, this makes even their city level data a country level data 😅

So, if you are using country level data, why not use the best from our database? We also have an IP to Country ISP (ASN) database for free as well. The promise is the same for it as well: high accuracy and zero compromise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants