Back to blog
GitHub CopilotCopilot metrics APIGitHub Copilot metrics APIplatform teamsAI analytics

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.

ForgeMeter Team··5 min read
GitHub Copilot Metrics API: Integration Guide for Platform Teams

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:

DimensionLeadership question
Active users vs seatsAre we paying for idle licenses?
Suggestions vs acceptancesIs Copilot helping or ignored?
Acceptance rateQuality of context / training need?
Language / IDE breakdownWhere to focus enablement?
Per-user activityChampions 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:enterprise requirements — scopes evolve)

ForgeMeter asks for a personal access token with org access plus your organization slug at connect time.

Step 1: Create credentials

  1. Create a fine-grained or classic PAT under an org admin service account (not a human engineer’s daily driver).
  2. Grant minimum scopes required for Copilot metrics endpoints.
  3. Store as GITHUB_COPILOT_TOKEN in secrets manager.
  4. 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:

fieldexample
providergithub_copilot
emaildev@company.com (when API exposes login)
event_typesuggestion | acceptance
metadata{ "language": "typescript" }
recorded_at2026-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:

ContextTypical rangeNotes
Greenfield CRUD25–40%High suggestion volume
Large legacy refactors10–25%Developers cherry-pick
Test generation enablementSpike after trainingCompare 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:

  1. List developers active in Copilot metrics last 30 days
  2. List developers active in Cursor analytics last 30 days
  3. Intersect — dual-tool users are overlap candidates
  4. 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:

MethodFrequency
Manual CSV from GitHub UIAd hoc — doesn’t scale
Cron + Metrics APIDaily (ForgeMeter: 06:00 UTC)
Event-drivenRare for Copilot — polling is fine

Align sync timezone with finance month-close (UTC vs US).

Alerts worth configuring

AlertCondition
Inactive seatLicensed but 0 activity 30 days
Acceptance collapseTeam rate −10pp week-over-week
Adoption stallActive 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

BuildBuy (ForgeMeter / StackSpend)
Single Copilot chart in GrafanaCross-tool Overview + Optimize
You maintain API driftProduct tracks GitHub API changes
Free except engineer timeFaster 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

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.