|
|
|
|
|
by freedomben
476 days ago
|
|
I've been using ipinfo.io now for several years and have been very pleased with them. You can `curl https://ipinfo.io/` and get a JSON blob back with info on your current IP. If you pass an IP explicitly you can get info back on it, for example `curl https://ipinfo.io/104.26.7.98`. Easy to combine with jq also for use in scripts: `curl https://ipinfo.io/104.26.7.98 | jq -r '.ip'` For personal use it's free, and they have reasonable pricing for large volume. No affiliation on my part, just a happy user. |
|
This API endpoint has its dedicated stack and infrastructure to support unlimited lookups.
Also, for IPv6 connection use: https://v6.ipinfo.io/ip
PS: I am the DevRel of IPinfo.