{"uid":"cap_8MVKqnBRM3tGdcpSF74je","slug":"manylives-me-text-diff-fc78ff40","name":"manylives.me Text Diff","description":"Line-by-line difference between two texts (up to 3,000 lines each): added, removed and unchanged lines in order, with counts.","url":"https://manylives.me/paid/text/diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","examples":["alpha\nbeta\ngamma"],"description":"original text (required)"},"b":{"type":"string","examples":["alpha\nbeta two\ngamma"],"description":"changed text (required)"}}},"responseSchema":{"type":"json","example":{"diff":[{"op":"=","line":"same"},{"op":"-","line":"old"},{"op":"+","line":"new"}],"added":1,"removed":1,"unchanged":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kNGMxWj18u4k-CFFljsGb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a line-by-line difference between two texts, returning added, removed, and unchanged lines with operation labels and summary counts.","exampleAgentPrompt":"Show me the line-by-line diff between these two texts — the original starts with 'alpha\\nbeta\\ngamma' and the updated version is 'alpha\\nbeta two\\ngamma' — and tell me how many lines were added, removed, and stayed the same.","exampleUseCases":[{"title":"Config file change review","prompt":"I have two versions of my nginx.conf — the old one and the new one I'm about to deploy. Can you show me a line-by-line diff so I can see exactly what changed, including counts of added and removed lines?"},{"title":"Document revision tracking","prompt":"Here's the original draft of my article and the revised version my editor sent back. Can you diff them line by line and tell me which lines were added, which were removed, and how many stayed the same?"},{"title":"Code snippet comparison","prompt":"Compare these two versions of my Python function and give me a line-by-line breakdown of what changed — I need to see the exact lines that were added or deleted and a summary count of each."}],"resultDescription":"A JSON object with a 'diff' array where each element has an 'op' field ('=' for unchanged, '+' for added, '-' for removed) and a 'line' field with the text content, plus top-level integer counts: 'added', 'removed', and 'unchanged'.","failureModes":["Input text exceeds 3,000 lines — request rejected or truncated","Missing required field 'a' or 'b' — validation error returned","Non-string input for text fields — schema validation failure","Payment not included or insufficient — 402 Payment Required response","Network timeout on very large inputs near the line limit"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable line-by-line diff with explicit operation labels and summary counts, especially within agentic workflows that need to process or display changes programmatically. Prefer it over shell-based diff tools when you need a JSON API response without spawning subprocesses, and over full patch/unified-diff formats when you need clean, enumerable line operations with counts rather than hunk headers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:40:44.831Z","isFirstParty":false,"canonicalSlug":"manylives-me-text-diff-fc78ff40"}