Open Source · MIT License

Score Your API Docs
Before Developers Do

Upload your OpenAPI or Swagger spec and get a 0-100 developer experience score with specific, prioritized fixes in under 10 seconds.

$ api-clarity analyze stripe-openapi.yaml

DX Score: 51/100 (D)
[████████████████████░░░░░░░░░░░░░░░░░░░░] 51%

Structural: 29/40
Authentication: 8/20
Code Samples: 0/15 ← add x-code-samples
Error Handling: 7/15
Rate Limiting: 7/10

Fintech Compliance: 88%

Industry average: 67/100
Top priority fix: Add x-code-samples to endpoints (+15p)

5 Categories. 100 Points.

Every score maps to a specific fix in your spec file.

40 points

Structural Analysis

Endpoint descriptions, response examples, error codes, parameter documentation. The foundation every tool builds on.

20 points

Authentication

Security schemes, auth flow clarity, credential acquisition guide, token refresh documentation.

15 points

Code Samples

Python, Node.js, and cURL examples embedded in the spec via x-code-samples.

15 points

Error Handling

Error coverage including default responses, consistent error format, troubleshooting guidance per endpoint.

10 points

Rate Limiting

Rate limit documentation, specific numbers, retry strategy, and response headers.

Bonus

Fintech Compliance

PCI DSS, SOC 2, GDPR/CCPA, transport security, idempotency, webhook security. Scored separately from the base 100.

Tested Against Real APIs

These scores reflect what is in the OpenAPI spec file, not the documentation portal.

Read the full analysis

API Score Grade Endpoints
Stripe 51/100 D 587
GitHub 45/100 F 1,079
Twilio 36/100 F 197
Petstore (reference) 74/100 B 4

Three Ways to Run It

1

Self-host locally

Clone the repo, run ./start.sh, and open the web interface at localhost:3008. Full analysis, PDF export, no data leaves your machine.

2

CLI for CI pipelines

Run python -m app.cli analyze spec.yaml --json and set a score threshold in your CI config. Fail the build when documentation quality drops.

3

API for programmatic scoring

POST your spec to /api/v1/analyze/upload and get a structured JSON report back. Integrate into your existing tooling.

# Quick start
git clone https://github.com/clarifyintel/api-clarity
cd api-clarity
./start.sh

# CLI
cd backend && source .venv/bin/activate
python -m app.cli analyze your-spec.yaml

Know your score before launch.

API-Clarity is free and open source. MIT licensed.

GitHub DX Checklist