Hacker News new | ask | show | jobs
by SadTrombone 1058 days ago
The /api endpoint seems to return me a 301 error from the command line.
2 comments

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.

  curl https://ip4.me/api/
works for me