r/GithubCopilot • u/Cloud--Man • 27d ago
Help/Doubt ❓ Is there an official API to programmatically retrieve Copilot Business AI Credits usage and monthly limit?
Hi everyone. I use GitHub Copilot Business with a seat managed by my enterprise. In VS Code, the “Monthly limit” panel shows AI Credit usage—for example, 935 / 5,000 AI credits—and the date the limit resets.
I’d like to display those same live values in a small native macOS app. I’m specifically interested in the “Monthly limit” for AI Credits, not premium requests, model usage, or context-window usage.
I checked the official documentation:
- Monitoring your GitHub AI Credits usage describes viewing usage in VS Code and Copilot settings.
- The Copilot usage metrics API documents enterprise usage reports, but it does not appear to provide the current limit, usage amount, and reset date shown in that UI.
I haven’t tried undocumented endpoints or inspected network traffic. I attempted a preliminary macOS Accessibility check of the UI, but macOS denied the required permission. No data was read, and I didn’t change any settings.
Is there an official API or supported interface for retrieving these fields? If you’ve found a way to access them, what source and Copilot license type did you use (Business, Enterprise, or Individual)? I’m especially interested in whether it works with an enterprise-managed Business seat.
View all comments
Show parent comment
1
u/Smettbobezwinger 27d ago
There is a endpoint for getting the reports as ZIP.