Hacker News new | ask | show | jobs
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.

3 comments

Instead of jq .ip, please use https://ipinfo.io/ip

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.

Annoyingly, they no longer show your IP on their web homepage.
We are experimenting with some design choices as we try to highlight all the IP metadata we have and move towards being an "internet data" company instead of just an IP location company.

I highly recommend you check out the page: https://ipinfo.io/myip

I understand the data we have for your IP address is not front and center anymore. We have gone through several iterations of designs for our homepage, so if you have any suggestions, I will relay them to our team.

"I don’t want anyone to see our address and opening hours without also reading through our values, our mission statement, and board of directors"
Our priority is always the developer experience and I apologize for the friction you are seeing here.

The issue is that we are truly in a unique space when it comes to internet data. We have gone through several iterations on how to present the full extent of data and not just your public IP address.

If you are a regular user of our service, you know that we have a very open access approach to our data. We provide most of our data for free through our website, we have a generous API, and we have a fully accurate open access licensed database. We also have more free services to be released!

Due to the open data approach, developers appreciate us. We are not trying to create any barriers or friction here, but we are trying to find a balance. If you have any suggestions that can encourage users to explore our data while simultaneously providing everyone with a frictionless experience with our data, please let me know.

> The issue is that we are truly in a unique space when it comes to internet data.

You serve people their IP address. There’s tens of sites doing the same in this very thread.

Yes, but we also operate 1,000 servers across 400 cities in 130 countries to generate one of the most comprehensive internet measurement datasets possible and process more than 2 trillion yearly API requests.

Still, we really appreciate users and software that only use our service to get their public IP address.

Hello, AT&T.
Or, to be more helpful: please speak like a human being, not like a corporate chat bot. Would be much, much appreciated.
It's a service that shows visitors their own address and metadata about it. Seems fair to not want to provide that for free without some advertisement for the paid version or the company?
Absolutely. Actively degrading the user experience might have the opposite effect, though.
`curl https://myip.wtf/json` too is nice to use when debugging things