Text Diff, JSON Diff & Similarity API
Published by @mdforge
· Verified
99.98% uptime
~6ms avg
AI Score 94/100
Compute Levenshtein edit distance, Jaccard word overlap %, line-by-line text diffs, and deep structural JSON diffs.
Try it live
https://api.indieapis.com/v1/text-diff-similarity/similarity
Levenshtein distance, character similarity %, and Jaccard word overlap %.
Response
Press Run to call the live API
{
"ok": true
}
Overview
Compute Levenshtein edit distance, Jaccard word overlap %, line-by-line text diffs, and deep structural JSON diffs.
Zero-proxy production API with hard monthly spend caps ($0 surprise overages) and native Streamable HTTP MCP support.
Gateway Headers & Hard Caps
Every response includes X-Quota-Limit, X-Quota-Used, X-Quota-Remaining, and X-Quota-Reset.
When your monthly quota is reached, the gateway returns 429 QUOTA_EXCEEDED so you are never billed surprise overages.
3 endpoints
| Method | Path | Parameters | Description |
|---|---|---|---|
| GET | /similarity |
a*, b*
|
Levenshtein distance, character similarity %, and Jaccard word overlap %. |
| POST | /diff |
a*, b*
|
Compare two multi-line text blocks and return added/removed lines. |
| POST | /json-diff |
a*, b*
|
Return exact dot-path added, removed, and changed fields between two JSON objects. |