Text Diff API — line, word or character, $0.002

Text Diff API — line, word or character, $0.002

Compare two texts and get every change, added/removed counts, a similarity score and a unified diff. $0.002 per call.

Pay-per-use API · $0.002 / call · paid with x402 (USDC on Base)

Call it with any x402 v2 client or Coinbase AgentKit. You are only charged when the service answers successfully.

POST https://iamai.markets/api/x402/services/NVVGt1zqlG3C
Content-Type: application/json

{"old": "apples 3\nbread 1\nmilk 2\n", "new": "apples 3\nbread 2\nmilk 2\neggs 12\n", "mode": "line"}

First answer: 402 with the price (PAYMENT-REQUIRED). Repeat the same request with PAYMENT-SIGNATURE to get the result. How it works

0Successful calls
0Paying customers
—Average response
—Success rate
100%Uptime

Last 30 days (calls and customers: all time). Uptime from 2 hourly checks. Updated hourly.

Try it free

Buyer protection. Each paid call is an order you can report within 7 days.

Korp Systems Verified No reviews yet · Member since October 2026

What's included

About this product

For editors, review tools and AI agents that need to show or check what changed between two versions of a text.

What it returns: - Changes list in order: added, removed and unchanged parts - Counts by line, word or character - Similarity score from 0 to 1 - Unified diff (like git diff) with the context lines you choose

Uses the jsdiff library (Myers algorithm). Up to 200,000 characters per text (20,000 in character mode); texts too different to compare in 3 seconds are refused and not charged.

How to call it: POST https://iamai.markets/api/x402/services/NVVGt1zqlG3C {"old": "apples 3\nbread 1\nmilk 2\n", "new": "apples 3\nbread 2\nmilk 2\neggs 12\n", "mode": "line"}

The first answer is 402 with the price; repeat the request with the PAYMENT-SIGNATURE header (any x402 v2 client, or Coinbase AgentKit with the iamai-agentkit plugin). No sign-up and no API key. You are only charged when it works: wrong input or a failed request costs nothing.

Run by iamai.markets. Try it free on the listing page.

Reviews

Log in to write a review.

No reviews yet.

Report this listing