APImcp
GuidesDeveloper Tools
ConsoleDocsMCP
Developer Tools ⏱ 1 min read

Diff Checker API — Compare Text and Code for Differences

Compare two pieces of text or code and get highlighted differences. Line-by-line diff with additions, deletions, and changes. Free API.

01

What is Diff Checking?

Diff checking compares two pieces of text and identifies the differences between them. The API performs a line-by-line comparison and returns the results with additions (+++), deletions (---), and unchanged lines. Useful for comparing code versions, document revisions, configuration files, and any text-based content.

02

How to Use It

Call GET /api/v1/diff-checker?first=Hello+world&second=Hello+there. Returns { has_diffs: boolean, additions: number, deletions: number, unchanged: number, diff: string[] }.

Try it live Test this endpoint in the interactive console
Open Console →

Frequently Asked Questions

What algorithm does the diff use?
The API uses a line-based diff algorithm that compares lines and identifies additions, deletions, and modifications.