Text Diff API
Compare two text strings or files and get a diff. Supports line/word/char diff, unified format, HTML output. Pure algorithm, zero external deps.
Quick Start
# Health check
curl https://api.lazy-mac.com/diff-text-api/health
# API info
curl https://api.lazy-mac.com/diff-text-api
Endpoints
{'path': '/diff', 'method': 'POST', 'description': 'Line-by-line text diff'}{'path': '/diff/word', 'method': 'POST', 'description': 'Word-level diff'}{'path': '/diff/html', 'method': 'POST', 'description': 'HTML diff output'}{'path': '/health', 'method': 'GET', 'description': 'Health check'}
Pricing
| Plan | Price | Features |
|---|---|---|
| Free | $0/mo | 100 req/day, core endpoints |
| Pro | $Free / $5/mo | Unlimited, all endpoints, MCP |
MCP Integration
This API supports the Model Context Protocol (JSON-RPC 2.0):
curl -X POST https://api.lazy-mac.com/diff-text-api/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
Get Your API Key
Get started on Gumroad — free tier available.
Top comments (0)