We are closing down three legacy Copilot metrics APIs as part of our transition to newer, more comprehensive usage metrics endpoints. Support for these APIs will be limited, and no new features will be developed.

  • The User-level Feature Engagement Metrics API and Direct Data Access API will sunset on March 2nd, 2026.
  • The Copilot Metrics API will sunset on April 2nd, 2026.

We strongly recommend transitioning any existing workflows to the latest Copilot usage metrics endpoints to avoid disruption.

What do these APIs do?

These APIs provide visibility into adoption and usage of GitHub Copilot features:

Why?

We have released a new set of Copilot usage metrics APIs that provide significantly more depth and flexibility. By consolidating to our latest APIs, we are able to:

  • Provide a single, unified source of truth for Copilot metrics.
  • Deliver more granular and valuable insights, including IDE agents, models, languages, lines of code, and fine-grained permissions.
  • Reduce support overhead and streamline the product experience.

We recommend transitioning to the latest Copilot usage metrics APIs, which provide comprehensive usage data at the enterprise, organization, and user levels.

These endpoints return aggregated metrics with expanded IDE telemetry, including:

  • Edit modes and agent usage.
  • Suggested versus accepted lines of code.
  • Language and model breakdowns.
  • Additional usage dimensions not available in the legacy APIs.

The new APIs are currently in public preview and will be generally available in the near future.