r/GithubCopilot • • 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:

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.

6 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/Mario0412 27d ago

Are you referring to the non-Github Copilot API? Aka M365 Copilot? Because as far as I'm aware, like OP mentioned, I also have not been able to find an API for Github Copilot's usage reporting.