Automatically check processing unit and requests quota

Is it possible to automatically query the remaining processing unit and requests quota for an account? I’ve been looking through the API documentation, but I can’t figure it out…
I assumed there would be something similar to the quota query system for VHR data:

Kind regards
Sam

Each of the process API requests contains information about the remaining processing units: