The most feature-packed API for measuring AI's ROI on your codebase.
One authenticated endpoint returns any of 110+ engineering segments — sliced by AI cohort, provider, committer, team, or repo.
$ curl -G https://www.gitclear.com/api/v1/reports \ -H "Authorization: Bearer $GITCLEAR_TOKEN" \ --data-urlencode "segment_by=delta_from_llms" \ --data-urlencode "aggregate_by=ai_cohort" \ --data-urlencode "days_ago=90" { "segment_em": "delta_from_llms", "unit": "Diff Delta", "aggregated_by": "ai_cohort", "series_segments": { "AI-forward": 184203, "Balanced": 96110, "AI-light": 41288 } }
Every category of developer & AI metric, in one API.
Where other tools ship a handful of DORA charts, GitClear exposes the full measurement surface — each segment queryable, filterable, and cross-cut by how much of the work AI actually produced.
Twelve endpoint families — read your data, and write back the context that makes it meaningful.
Pull chart data for any segment, then push in releases, defects, AI usage, and time-off so ROI is measured against what actually shipped.
AI Usage
Capture lines, suggestions, accepts, and cost from any custom AI provider.
API Tokens
Token status, connected LLM tokens, and user provisioning across providers.
Code Introspection
Walk the per-line version history of any line — AI-authored flag included.
Critical Defects
Record when a defect occurs and when a fix ships, for failure-rate math.
Data Audits
Inspect the raw commits, PRs, and issues substantiating every chart.
Developers
List committers, log time off, and set per-developer processing status.
Imports
Queue new repos and track import progress from pending to complete.
Releases
Mark deploys and resolved issues to power Lead Time and MTTR.
Reports
The core endpoint: JSON chart data for any of the 110+ segments.
Segment Introspection
Discover a segment's schema, units, and aggregation options at runtime.
Surveys
Create sentiment surveys and pull structured results for DevEx signals.
Teams
Create, list, and manage teams and their repos programmatically.
Depth other analytics APIs don't reach.
Feature count is only half of it. The other half is that every number can be attributed to the code — and to the AI — that produced it.
AI cohort segmentation
Group developers into AI-forward, balanced, and AI-light cohorts, then compare churn, velocity, PRs, and story points between them — the direct read on whether AI is paying off.
Diff Delta, not line counts
A weighted measure of durable code change that filters out churn, copy/paste, and boilerplate — so AI output is scored on the work that lasts, not the lines that get reverted next week.
Per-line code archaeology
The Code Introspection endpoint returns any line's full change history — who touched it, whether an LLM authored it, and how it evolved — ready for review tooling and audits.
Introspectable by design
Query any segment's units, direction, and aggregation options at runtime with Segment Introspection — build dashboards that adapt as GitClear adds metrics, with nothing hard-coded.
Measure what AI is really doing to your codebase.
Generate a token in the API Dashboard and pull your first segment in a single curl.