For automated monitoring purposes (personal monitoring infrastructure) it would be helpful to have an API to fetch current searches and total AI cost for the active billing period in JSON or XML.
The API would allow integrating with external monitoring software and:
- track and store long-term historic data on your own infrastructure
- configure alerts for AI cost
I don't trust parsing HTML as the DOM structure could potentially change over time. To even retrieve this page the external software needs to store a privileged token that has full read-write account access, which is a security nightmare.
To increase account security I propose that such a monitoring API endpoint should have its own access token that is only allowed to query this specific endpoint.