Any way to get user's last IP and IP when registered via API?

In an effort to create a nice visual of where on the planet our users are from, I wanted to extract the last IP address (and the IP address the user had when he first registered) for our users via API.

However, in the /users/username.json this data is not available.
I can see it under users in the admin UI, but naturally that scales poorly :slight_smile:

Any way to do this via an API request?

Thanks!

1 Like

This endpoint should have what you need: http://localhost:3000/admin/users/2.json

  "ip_address": "192.168.0.1",
  "registration_ip_address": "192.168.0.1",
6 Likes