GitHub Copilot Metrics API: Integration Guide for Platform Teams
Integrate the GitHub Copilot Metrics API — auth, acceptance rates, baselines, and wiring Copilot analytics into your AI spend dashboard. Start free.

GitHub Copilot is usually the first AI line item on an engineering budget — and the first tool finance assumes is “seat-based and predictable.” It isn’t. Copilot Business and Enterprise expose a Usage Metrics API that platform teams can poll for acceptance rates, active users, and language breakdowns. This guide shows how to integrate it cleanly and feed a unified dashboard next to Cursor analytics and OpenAI org usage.
What the Copilot Metrics API gives you
GitHub documents the Copilot usage metrics surface for organizations and enterprises. Typical dimensions:
| Dimension | Leadership question |
|---|---|
| Active users vs seats | Are we paying for idle licenses? |
| Suggestions vs acceptances | Is Copilot helping or ignored? |
| Acceptance rate | Quality of context / training need? |
| Language / IDE breakdown | Where to focus enablement? |
| Per-user activity | Champions vs teams needing coaching |
Copilot metrics are not dollar-precise in the same way OpenAI’s Costs API is — seat economics dominate. Pair usage with your GitHub billing export or internal seat inventory for ROI.
Prerequisites
- GitHub Copilot Business or Enterprise for the org you’re measuring
- Organization owner or role with access to Copilot metrics / billing APIs
- GitHub PAT or GitHub App with appropriate scopes (see current GitHub docs for
copilot/manage_billing:enterpriserequirements — scopes evolve)
ForgeMeter asks for a personal access token with org access plus your organization slug at connect time.
Step 1: Create credentials
- Create a fine-grained or classic PAT under an org admin service account (not a human engineer’s daily driver).
- Grant minimum scopes required for Copilot metrics endpoints.
- Store as
GITHUB_COPILOT_TOKENin secrets manager. - Document rotation in your API key policy.
Why a service account: When Alice leaves the company, your cron job shouldn’t break.
Step 2: Identify your organization slug
Copilot metrics are org-scoped. The slug is https://github.com/{slug} — not always identical to your company name (acme-corp vs acme).
ForgeMeter’s connect modal collects this explicitly for the Copilot integration.
Step 3: Fetch a baseline window
Pull at least 14 days before setting alerts:
Metrics to snapshot daily:
- active_users
- suggestions, acceptances
- acceptance_rate (derived)
- breakdown by language (optional)
Normalize to the same schema as other providers:
| field | example |
|---|---|
provider | github_copilot |
email | dev@company.com (when API exposes login) |
event_type | suggestion | acceptance |
metadata | { "language": "typescript" } |
recorded_at | 2026-07-08T00:00:00Z |
Seat cost allocation: many teams use flat $19–$39/seat/month prorated daily per active user when exact per-request cost isn’t available.
Step 4: Interpret acceptance rate honestly
Good org-wide acceptance rate depends on work type:
| Context | Typical range | Notes |
|---|---|---|
| Greenfield CRUD | 25–40% | High suggestion volume |
| Large legacy refactors | 10–25% | Developers cherry-pick |
| Test generation enablement | Spike after training | Compare week-over-week |
A drop after Copilot policy changes often means context limits, not “lazy developers.”
Use acceptance rate to drive enablement, not punishment. Pair with Copilot cost analytics narrative for CFOs.
Step 5: Copilot + Cursor overlap
The expensive pattern: Copilot seat + Cursor subscription + OpenAI project keys for the same developer.
Platform checklist:
- List developers active in Copilot metrics last 30 days
- List developers active in Cursor analytics last 30 days
- Intersect — dual-tool users are overlap candidates
- Document team defaults (Cursor vs Copilot comparison — expanded guide coming)
ForgeMeter’s Optimize playbook flags multi-provider overlap when both integrations sync.
Step 6: Schedule sync
Copilot usage changes daily. Options:
| Method | Frequency |
|---|---|
| Manual CSV from GitHub UI | Ad hoc — doesn’t scale |
| Cron + Metrics API | Daily (ForgeMeter: 06:00 UTC) |
| Event-driven | Rare for Copilot — polling is fine |
Align sync timezone with finance month-close (UTC vs US).
Alerts worth configuring
| Alert | Condition |
|---|---|
| Inactive seat | Licensed but 0 activity 30 days |
| Acceptance collapse | Team rate −10pp week-over-week |
| Adoption stall | Active users flat while headcount grows |
| Overlap spike | % dual Cursor+Copilot users rises |
Security review sound bites
- Read-only GitHub API access
- No source code exfiltration — usage aggregates only
- Token scoped to org Copilot metrics, not repo contents
- Aligns with vendor security questionnaire themes
Build vs buy
| Build | Buy (ForgeMeter / StackSpend) |
|---|---|
| Single Copilot chart in Grafana | Cross-tool Overview + Optimize |
| You maintain API drift | Product tracks GitHub API changes |
| Free except engineer time | Faster time to exec report |
How ForgeMeter helps
On Integrations, connect GitHub Copilot with org slug + PAT. ForgeMeter validates against the live API, syncs usage events, and shows Copilot alongside Cursor and OpenAI on Overview.
Sign up free · Audit report · Demo
Related: GitHub Copilot cost analytics · Best AI analytics tools 2026
Frequently asked questions
What is the GitHub Copilot Metrics API?+
It is GitHub's official Usage Metrics API for Copilot Business and Enterprise. Platform teams poll it for active users, acceptance rates, and language breakdowns to feed engineering dashboards.
How do I authenticate to the Copilot Metrics API?+
Use a GitHub App or fine-grained token with organization Copilot metrics permissions. Avoid personal tokens that cannot read org-level metrics.
How do I combine Copilot metrics with Cursor spend?+
Sync both APIs on a schedule into a shared schema. ForgeMeter connects Copilot Metrics and Cursor Admin APIs so platform teams ship one dashboard instead of maintaining separate ETL jobs.
Related reading
GitHub Copilot Metrics & Cost Analytics for Engineering Leaders
Measure Copilot adoption, acceptance rates, and usage with GitHub's metrics API ? then connect it to your AI spend story next to Cursor. Free audit available.
Jun 15, 2026 · 3 min read
Copilot vs Cursor in 2026: A Comparison for Engineering Leaders
When to standardize on GitHub Copilot, Cursor, or both — cost, adoption metrics, security, and how to avoid paying twice for the same developer.
Jul 10, 2026 · 3 min read
Best AI Engineering Analytics Tools in 2026
Compare ForgeMeter, Jellyfish, StackSpend, Langfuse, Helicone, and open-source options for tracking Cursor, Copilot, and API spend across engineering teams.
Jul 8, 2026 · 6 min read
Want a baseline before you optimize? Run a free AI engineering audit · Start free.
See your team's AI spend in one dashboard
ForgeMeter unifies Cursor, Copilot, and Claude usage — budget alerts, per-developer analytics, and executive reports. Start free, or run a no-commitment audit first.
Missing a tool or feature?
Prefer a walkthrough? View the live demo.