GitHub Copilot Usage Metrics #187618
Replies: 2 comments 2 replies
-
|
The “report-*.json” behind
|
Beta Was this translation helpful? Give feedback.
-
|
Hello I completely understand the frustration with the new API structure; the transition can definitely be a bit confusing at first. The main reason you're running into this issue is that the new system returns the data in NDJSON (Newline-Delimited JSON) format instead of a standard JSON object or array. This means that inside To seamlessly integrate this data back into your Power BI report, you can follow these steps:
I hope these steps make migrating your report much easier. If this helped you, please mark it as the answer |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hello Helpers, I have an existing Power BI report that source the CoPilot usage metrics from the GitHub Enterprise APIs. This is the source URL:
https://api.github.com/enterprises/<enterprise_name>/copilot/metrics
This report was actually grab from Akash here -- https://github.com/orgs/community/discussions/141071
Thank You Akash @Akash1134
I understand from GitHub recently that the Enterprise CoPilot Usage metrics above, would be sunset on 4/2/2026. The new metrics should be sourced from a new site new API according to this doc -- https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-usage-metrics
Which reference the API URL -- https://api.github.com//enterprises/{enterprise}/copilot/metrics/reports/enterprise-28-day/latest
This is really a big pain as the format is completely different. I need to make new codes, and worse still the doc does NOT show what schema format is the "report-1" and "report-2".
Anyone has tried to get the new report and data ? I truly wish some new PBI report like @Akash1134 is handy again. Thank you guys.
"{
"download_links": [
"https://example.com/copilot-usage-report-1.json",
"https://example.com/copilot-usage-report-2.json"
],
"report_start_day": "2025-07-01",
"report_end_day": "2025-07-28"
}"
Beta Was this translation helpful? Give feedback.
All reactions