Dig into your API's past. Analyze the full git history of any OpenAPI spec, score stability over time, identify the endpoints that break most often, and get actionable recommendations — all from a single API call.
One endpoint. Complete historical context.
Fetches every commit that touched your spec file over a configurable lookback window (default: 90 days) and diffs consecutive versions.
Computes a 0–100 stability score and an A–F grade based on your breaking change rate. Tracks whether your API is improving or degrading over time.
Identifies the specific endpoints that have been broken most frequently, ranked by breaking change count and classified as stable, unstable, or volatile.
Aggregates breaking change types across all commits — endpoint removals, field removals, type changes — so you can see which patterns recur most.
Compares the first and second halves of the analysis window to determine whether your API stability is improving, degrading, or stable.
Every report ends with a plain-English recommendation tailored to your stability grade and hotspot patterns, so you know exactly what to fix first.
Every report includes a letter grade so you can benchmark at a glance.
Two endpoints. No configuration required.
/api/v1/archeology/analyze
Fetches the commit history from GitHub and returns a full archeology report. Reports are also cached in the database for retrieval via the GET endpoint.
{
"repo": "owner/repo", // required — GitHub repo in owner/repo format
"spec_path": "api/openapi.yaml", // required — path to the OpenAPI spec file
"lookback_days": 90 // optional — default 90, max 365
}
X-GitHub-Token: ghp_your_token_here // Recommended for private repos or high-volume use
/api/v1/archeology/report
Returns the most recent cached report for a given repo and spec path. Useful for dashboards and CI integrations that want to read results without re-running the analysis.
GET /api/v1/archeology/report?repo=owner/repo&spec_path=api/openapi.yaml
Get your first archeology report in under a minute.
Install the GitHub App to your organization or repository. No configuration file needed for the Archeology API.
Install on GitHub →Call the analyze endpoint with your repo and spec path. Replace YOUR_API_KEY with your CodeRifts API key.
curl -X POST https://app.coderifts.com/api/v1/archeology/analyze \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "repo": "your-org/your-repo", "spec_path": "api/openapi.yaml", "lookback_days": 90 }'
Once analyzed, fetch the cached report at any time without re-running the full GitHub scan.
curl "https://app.coderifts.com/api/v1/archeology/report?repo=your-org/your-repo&spec_path=api/openapi.yaml" \
-H "Authorization: Bearer YOUR_API_KEY"
API Archeology fits naturally into your existing workflows.
Add stability grades to your internal developer portal. Surface the APIs with the worst track records before teams build new integrations against them.
Use the stability score as an objective metric in your API review process. Require a minimum grade before promoting an API to production.
After a breaking change causes an outage, use the timeline to understand the pattern and the recommendation to prevent recurrence.
Run archeology analysis as part of your release pipeline. Fail the build if the stability grade drops below your threshold.
Install CodeRifts on GitHub and get your API's full stability history in seconds. No configuration file required.
Install on GitHub →