Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you want JSON output, then there is httpbin.

  curl https://httpbin.org/ip
returns

  {
      "origin" : "192.168.0.1"
  }
It also supports getting the user agent [0] and headers [1], among other things.

[0] https://httpbin.org/user-agent [1] https://httpbin.org/headers



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: