It sounds like you’re not yet aware of Service Accounts and Service Account Tokens that come with the Enterprise plan that offer more ubiquitous access easily:
You can see the API docs for gathering activity info generally, and also:
Re user last activity date, I don’t think that’s available from the API but is in the Admin Console: