HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by zokier | Hacker News Reader
Parent
Full thread
zokier
·
ip4.me and ip6.me have /api endpoint for programmatic access
View on HN
SadTrombone
·
The /api endpoint seems to return me a 301 error from the command line.
jffry
·
curl https://ip4.me/api/
works for me
ComputerGuru
·
That’s a redirect, not an error. Probably to /api/ with a trailing slash. Or use the -l flag to curl to have it auto redirect.
pepa65
·
There, /ip is better.
Reply on news.ycombinator.com