GitHub Copilot Usage Metrics API Enhances User Pull Request Insights
GitHub's Copilot usage metrics API now includes detailed per-user pull request activity, improving data granularity for enterprises and organizations.

Introduction to Enhanced Copilot Usage Metrics
GitHub has expanded its Copilot usage metrics API to include detailed pull request activity at the user level for enterprises and organizations. This update introduces new data fields that track how many pull requests each user created, reviewed, and merged, along with how much of this work involved Copilot cloud agent and Copilot code review. Previously, pull request metrics were only available in aggregate reports, limiting the ability to analyze individual user contributions.
The new user-level reports are available in both 1-day and 28-day formats, aligning with existing Copilot usage metrics. This enhancement enables more granular insights into developer workflows and Copilot’s impact on code collaboration activities. By attributing pull request actions to individual users, organizations can better understand how Copilot assists developers in their daily tasks.
This update represents a significant step forward in providing actionable data for enterprise owners, organization owners, billing managers, and custom role holders with appropriate permissions. It supports more precise monitoring of Copilot usage and pull request throughput, facilitating data-driven decisions for team management and productivity optimization.
Detailed Pull Request Metrics and Their Significance
The API now reports several specific pull request metrics per user, including total pull requests created, reviewed, and merged on a given day. It distinguishes pull requests created or merged by the Copilot cloud agent from those initiated directly by the user. Similarly, it tracks pull requests reviewed by Copilot code review, providing a comprehensive view of AI-assisted development activities.
These metrics include total_created, total_created_by_copilot, total_reviewed, total_reviewed_by_copilot, total_merged, total_merged_created_by_copilot, and total_merged_reviewed_by_copilot. Each metric offers insights into different aspects of pull request workflows, enabling teams to evaluate both human and AI contributions to code development and review processes.
By breaking down pull request activity at the user level, organizations can identify patterns of collaboration and Copilot usage. This granularity supports performance analysis, workload balancing, and targeted training or support for developers. It also helps quantify the tangible benefits of AI assistance in software development pipelines.
Access and Scope Considerations for Data Consumers
Access to these enhanced user-level pull request metrics is restricted to enterprise owners, billing managers, organization owners, and users with custom roles that include permissions to view Copilot metrics. Additionally, the Copilot usage metrics policy must be enabled to retrieve this data. This ensures that sensitive usage data is protected and only accessible to authorized personnel.
The scope of the data is limited to users who actively used Copilot on the reported days. Users without Copilot activity do not appear in the reports, and pull requests from bot accounts other than the Copilot cloud agent are not attributed to individual users. This design choice maintains data accuracy by focusing on genuine user interactions with Copilot.
It is important to note that user-level totals may be lower than aggregate enterprise or organization totals due to these attribution rules. Moreover, pull request reviews count once per reviewer, so the sum of total_reviewed across users can exceed aggregate counts. These nuances should be considered when interpreting the data to avoid misrepresentation.
Implications for Data Engineering and API Integration
The addition of user-level pull request activity requires data engineers and API consumers to update their data ingestion and processing pipelines to accommodate new fields and nested objects such as the pull_requests object. Systems must be designed to handle both the 1-day and 28-day report formats consistently, ensuring accurate time-based analyses.
API clients should implement logic to distinguish between pull requests created or merged by users directly and those assisted by Copilot cloud agent or code review. This differentiation is critical for generating meaningful usage reports and understanding AI’s role in development workflows. Data models may need to be extended to capture these new dimensions effectively.
Enterprises integrating this data should also consider access control mechanisms aligned with GitHub’s permission model. Ensuring that only authorized users can query or view sensitive usage metrics is essential for compliance and security. Additionally, data visualization and reporting tools should be updated to reflect the richer dataset, enabling stakeholders to derive actionable insights.
Practical Use Cases and Benefits for Organizations
Organizations can leverage the enhanced Copilot usage metrics API to benchmark individual and team productivity by analyzing pull request throughput and Copilot-assisted contributions. This data supports performance reviews, resource allocation, and identifying high-impact users or teams benefiting most from AI assistance.
The granularity of data also facilitates identifying bottlenecks or inefficiencies in code review and merging processes. By tracking how Copilot contributes to these stages, organizations can optimize workflows and prioritize automation or training initiatives where AI assistance has the greatest effect.
Furthermore, billing managers can use this data to allocate costs more accurately based on actual Copilot usage tied to pull request activities. This transparency helps justify investments in AI tools and supports budgeting decisions aligned with usage patterns.
Next Steps for Developers and Data Professionals
Developers and data engineers should review the updated REST API endpoints for Copilot usage metrics to understand the new data schema and integrate the user-level pull request activity fields into their existing analytics platforms. Familiarity with the new pull_requests object structure is essential for accurate data extraction and transformation.
Teams should update their access controls and permissions to ensure compliance with GitHub’s requirements for viewing Copilot metrics. This includes verifying that the Copilot usage metrics policy is enabled and that users querying the API have the necessary roles and permissions.
Finally, organizations should consider how to incorporate these new metrics into their developer productivity dashboards and reporting tools. Establishing baseline metrics and monitoring changes over time will help quantify the impact of Copilot on development workflows and guide future adoption strategies.
Sources and verification
Researched and drafted with AI assistance from the primary sources cited below. Every factual statement is checked automatically against a verbatim passage in its source before publication. No interviews or quotations are fabricated. Read our editorial standards.


