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: Using IPinfo IP to Country ASN database #13

Open
abdullahdevrel opened this issue Nov 16, 2024 · 3 comments
Open

Feature request: Using IPinfo IP to Country ASN database #13

abdullahdevrel opened this issue Nov 16, 2024 · 3 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 includes country and ASN information in the same database.
  • 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.
  • Available file formats include: CSV, MMDB, JSON
  • 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
asn AS2519 TEXT Autonomous System Number
as_name ARTERIA Networks Corporation TEXT Name of the AS (Autonomous System) organization
as_domain arteria-net.com TEXT Official domain or website of the AS organization

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

Samples are available here: https://github.com/ipinfo/sample-database/tree/main/IP%20to%20Country%20ASN

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

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

Let me know what you think. Thanks!

@sapics
Copy link
Owner

sapics commented Nov 17, 2024

Thanks for requests and detailed description for schema!

Currently we are planning to change repository and maintainer as #5 which is created in typescript and better build system.
Therefore, I would like to unchange current program before working in the new repository, because this issue needs many changes to program.

By the way, country means where the asn organization's country or real position of ip-address user?

@abdullahdevrel
Copy link
Author

@sapics My apologies for the late response! No worries. This is merely a feature request nothing more.

By the way, country means where the asn organization's country or real position of ip-address user?

The latter. In the free IP to Country ASN database, we include the user's country IP geolocation.

This is a really good point as we have an ASN database where the country of the ASN is listed.

@sapics
Copy link
Owner

sapics commented Nov 27, 2024

Thank you for letting us know!

When the new build system is created, we plan to create new package which is compatible with the asn database!

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