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] Integrate IPinfo's free IP to Country Database #3663

Open
abdullahdevrel opened this issue Jan 8, 2025 · 3 comments
Open

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.
  • 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

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

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

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.mmdb

Let me know what you think. Thanks!

@bretg
Copy link
Collaborator

bretg commented Jan 8, 2025

@abdullahdevrel - you're welcome to open a Pull Request with support for this geo-lookup system. The core team would be happy to review your code, but we're very unlikely to actually build this feature until a major publisher demands it.

Out of curiosity, does it support IPv6?

@abdullahdevrel
Copy link
Author

Hey @bretg thanks for the review. I think it would be challenging to do a PR at this moment. If you switch our IP database, you have an alternative with our database as it is more accurate and updated daily.

Out of curiosity, does it support IPv6?

Of course. The IPv6 and IPv4 addresses are contained within this single database.

@bretg
Copy link
Collaborator

bretg commented Jan 9, 2025

Thanks @abdullahdevrel - I'll leave this issue open for a few months to see if any community member expresses interest in doing the work.

@bretg bretg moved this from Triage to Ready for Dev in Prebid Server Prioritization Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for Dev
Development

No branches or pull requests

2 participants