{"uid":"cap_rhj5_foZHFhUlPq0LNxed","slug":"vextorium-text-diff-bb2aadc1","name":"Vextorium Text Diff","description":"244 pay-per-call data APIs for AI agents: official statistics and economy (ECB, Fed, Eurostat, World Bank, SEC, BOE, INE), crypto prices and sentiment, Spanish public data, compliance (sanctions, VAT, IBAN, LEI), science, weather, web and developer tools and local AI text tools. Pay in USDC via x402.","url":"https://api.vextorium.com/v1/text-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["lines","words"],"type":"string"},"context":{"type":"integer","description":"Context lines in the unified diff (0-10)"},"modified":{"type":"string"},"original":{"type":"string"}}},"responseSchema":{"type":"json","example":{"mode":"lines","added":2,"changes":[{"type":"cambiado","after":"Price: 12 EUR","before":"Price: 10 EUR","new_position":1,"original_position":1},{"type":"cambiado","after":"Warranty: 2 years","before":"Warranty: 1 year","new_position":3,"original_position":3}],"removed":2,"identical":false,"similar_pct":33.33,"unified_diff":"--- original\n+++ modificado\n@@ -1,3 +1,3 @@\n-Price: 10 EUR\n+Price: 12 EUR\n Delivery: 3 days\n-Warranty: 1 year\n+Warranty: 2 years","modified_elements":3,"original_elements":3}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mWA9ExJm0o1ZYJITZFCS9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two text strings line-by-line or word-by-word, returning similarity percentage, added/removed counts, positional change list, and a unified diff.","exampleAgentPrompt":"Compare these two versions of our service agreement line by line — tell me the similarity percentage, what was added or removed, and show me a unified diff with 3 lines of context.","exampleUseCases":[{"title":"Contract version audit","prompt":"I have two versions of a vendor contract — the original and the revised one they sent back. Compare them line by line and tell me the similarity percentage, what lines were added or removed, and give me a unified diff so I can see exactly what changed."},{"title":"Prompt template regression check","prompt":"We updated our LLM system prompt yesterday. Compare the old and new versions word by word and show me everything that changed — positions, what was added, what was removed, and how similar they still are overall."},{"title":"Scraped page change detection","prompt":"Here are two snapshots of a competitor's pricing page scraped a week apart. Diff them by lines with 2 lines of context in the unified diff, and tell me what percentage of the content changed."}],"resultDescription":"A JSON object containing: mode used (lines/words), whether texts are identical, similarity percentage (0-100), counts of original and modified elements, number of added and removed elements, a list of changes each with type (added/removed/modified), before/after text, and original/new positions, plus a unified diff string.","failureModes":["Missing required 'original' or 'modified' fields returns a validation error","Invalid mode value (not 'lines' or 'words') causes a schema rejection","Context value outside 0-10 range may be rejected or clamped","Very large texts may time out or exceed payload limits","Empty strings for both inputs return identical=true with 100% similarity"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable diff output including positional change metadata and similarity scoring — not just a raw diff. Ideal for agents that need to programmatically process what changed (e.g. flag contract modifications, track prompt drift, monitor config changes) rather than just display a diff to humans.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:13:04.396Z","isFirstParty":false,"canonicalSlug":"vextorium-text-diff-bb2aadc1"}