--- title: REST API endpoints for Copilot metrics shortTitle: Copilot metrics intro: Use the REST API to view Copilot metrics. versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖 fpt: '*' ghec: '*' topics: - API autogenerated: rest allowTitleToDifferFromFilename: true redirect_from: - /rest/copilot/copilot-usage --- You can use these endpoints to get a breakdown of aggregated metrics for various {% data variables.product.prodname_copilot %} features. The API includes: * Data for the last 28 days * Numbers of active users and engaged users * Breakdowns by language and IDE * The option to view metrics for an enterprise, organization, or team For help getting started, see [AUTOTITLE](/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/analyzing-usage-over-time-with-the-copilot-metrics-api). {% data reusables.copilot.metrics-api-ghecom %}