Use API to get the same results as Exporting User list

Is there a way to use the APIs to get the same result as if I logged in went to users and clicked export?

When I use api/3/users it needs pagination, but does not return the pagination information. Also it shows displayname and only emails for users who have allowed it.

I would like the same table as export, AccountId, Email, Last used, Active …

Thank you,


Hello Frederick, were you able to find how to pull this same data? I’m having the same question right now. Thank you for your help.