API /analytics/ai-code/commits Data Not Matching Cursor Analytics V2 Chart

We are using the GET /analytics/ai-code/commits endpoint with startDate=7d&endDate=now and aggregating by commitTs to build same below Cursor AI chart. However, data is not matching between API response data and UI chart.

For example, Nov 26, the API sum for Cursor AI is 10,889 but the Analytics V2 UI shows 29,443 for “Cursor AI” on the same date with the same filters (same for Others and Total Lines)

Could you please confirm:

  1. Does the Analytics V2 UI use the same ai-code/commits data source?

  2. Does the UI apply additional filters or normalization not reflected in the API (e.g., repo/branch filters, file-type exclusions, size thresholds, primary-branch logic, timezone differences)?

  3. What is the recommended aggregation logic for API fields to match the Analytics V2 “Cursor AI” chart exactly?

Many Thanks!

Closing this as there’s a duplicate here: API /analytics/ai-code/commits Data Not Matching Cursor Analytics V2 UI Chart