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

[New Feature] Add IP2Location.io API in gipquery.c #996

Open
ip2location opened this issue Dec 29, 2023 · 8 comments
Open

[New Feature] Add IP2Location.io API in gipquery.c #996

ip2location opened this issue Dec 29, 2023 · 8 comments

Comments

@ip2location
Copy link

ip2location commented Dec 29, 2023

I would like to suggest adding IP2Location.io API to gipquery.c.

(a) get user IP address - https://ip2location.io/ip
(b) get IP geolocation by IP address - https://api.ip2location.io/?ip=[IP]

@lantis1008
Copy link
Contributor

Hi, thanks for reaching out!
Can you please confirm if these APIs are free to consume?

@ip2location
Copy link
Author

Yes, both APIs are free to use.

For the IP geolocation API, there is a limit of 500 queries per IP address per day.

@lantis1008
Copy link
Contributor

Thanks! I'll look into this, I'm in the process of doing a large update anyway.

@obsy
Copy link
Contributor

obsy commented Dec 29, 2023

..."message":"Limit to 500 queries per day. Sign up for a Free plan at https://www.ip2location.io to get 30K queries per month."}

@ip2location
Copy link
Author

@obsy The keyless/tokenless 500 credits should be sufficient in most use case.

@lantis1008
Copy link
Contributor

Hi @ip2location

(a) get user IP address - https://api.ip2location.io/ip

Is this expected to work? I get the following message every time

root@Gargoyle:~# ewget https://api.ip2location.io/ip
{"error":{"error_code":10000,"error_message":"Invalid API key or insufficient credit."}}

The geolocation api seems to work fine.

@ip2location
Copy link
Author

Sorry, the correction endpoint should be as following:

(a) get user IP address - https://ip2location.io/ip

@lantis1008
Copy link
Contributor

Thanks for letting us know about your service, I've added it in to our new development branch with commit 6749b46.
This issue will automatically close when we bring that in to master, but if you'd like to close it yourself feel free.
👍

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

3 participants