Y
Hacker News
new
|
ask
|
show
|
jobs
by
zokier
1055 days ago
ip4.me and ip6.me have /api endpoint for programmatic access
2 comments
SadTrombone
1055 days ago
The /api endpoint seems to return me a 301 error from the command line.
link
ComputerGuru
1055 days ago
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.
link
jffry
1055 days ago
curl https://ip4.me/api/
works for me
link
pepa65
1054 days ago
There, /ip is better.
link