{"uid":"cap_d8eWIbscYMfQHsO88kWue","slug":"manylives-text-diff-b2867541","name":"ManyLives Text Diff","description":"Pay-per-call tools for people building AI agents: live web search and page contents, point-in-time crypto market data and news for backtests (no lookahead), verifiable track records of 1,000 crypto strategies locked on the Base network, company profiles, quick AI and batch prices. Ask us to turn a public website into a JSON endpoint. Pay per call, no account, free trial.","url":"https://api.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_H7_Euq8TwTzGTTWT2MTiw","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 diff between two text strings, returning added, removed, and unchanged lines with operation labels","exampleAgentPrompt":"Compare these two versions of my config file and show me which lines were added, removed, or unchanged — original is 'alpha\nbeta\ngamma' and the new version is 'alpha\nbeta two\ngamma'.","exampleUseCases":[{"title":"Config file change detection","prompt":"I have two versions of a config file — the original and a modified one. Can you diff them line by line and tell me exactly which lines were added, removed, or stayed the same?"},{"title":"Code review diff summary","prompt":"Here's the original function docstring and here's the updated one after review. Diff them and tell me how many lines changed so I can summarize the edits."},{"title":"Content revision tracking","prompt":"I have the old draft and the new draft of this paragraph. Compare them line by line and show me what was added and what was removed."}],"resultDescription":"A JSON object containing 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 summary counts: 'added' (integer), 'removed' (integer), and 'unchanged' (integer)","failureModes":["Missing 'a' or 'b' field returns a validation error","Very large inputs may hit payload size limits","Non-string values for 'a' or 'b' cause schema validation failure","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a structured, machine-readable line-by-line diff between two text strings — especially useful for agents that need to programmatically process change sets, count mutations, or summarize document edits without relying on a local diff library. Prefer it over general-purpose LLM text comparison when you need deterministic, structured output with exact line operation labels.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:42:19.147Z","isFirstParty":false,"canonicalSlug":"manylives-text-diff-b2867541"}