{"uid":"cap_tXw95zMElBMKUB2sI1Vr-","slug":"machine-shop-compare-text-7185866d","name":"Machine Shop – Compare Text","description":"Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.","url":"https://api.pay-forge.online/v1/compare-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","title":"A","maxLength":50000,"description":"First text. The combined length of a and b is limited."},"b":{"type":"string","title":"B","maxLength":50000,"description":"Second text. The combined length of a and b is limited."}}},"responseSchema":{"type":"json","example":{"words_a":3,"words_b":4,"similarity":0.5}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NTjGk02Ij4BOucmOheT41","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes word counts and similarity score between two text snippets","exampleAgentPrompt":"Compare these two paragraphs and tell me how similar they are — here's the original: 'The quick brown fox jumps over the lazy dog.' And here's the revised version: 'A fast brown fox leaped over a sleepy dog.'","exampleUseCases":[{"title":"Document snapshot diff check","prompt":"I have two versions of our terms of service — the one from last month and the new draft. Can you compare them and give me a similarity score so I know how much changed?"},{"title":"Plagiarism or duplication detection","prompt":"Check how similar these two student essay excerpts are: 'Machine learning enables computers to learn from data.' versus 'Computers can learn from data using machine learning techniques.' Give me a similarity score."},{"title":"API response regression testing","prompt":"I'm running a regression test — here's the old API response text and the new one. Compare them and tell me the word counts for each plus how similar they are."}],"resultDescription":"Returns a JSON object containing the word count for text A (words_a), the word count for text B (words_b), and a floating-point similarity score between 0 and 1 indicating how similar the two texts are.","failureModes":["Combined length of a and b exceeds the 50000-character-per-field limit, resulting in a rejection error","Either a or b field is missing from the request body","Input is not valid JSON, causing a parse error","Payment of 0.004 USDC is not included or fails x402 verification, resulting in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, numeric similarity score and word counts for two text snippets — ideal for regression checks, document diff summaries, duplication detection, and change quantification. It does not perform live web search, scheduled monitoring, or third-party purchasing, so avoid it for real-time or external data needs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:40:48.113Z","isFirstParty":false,"canonicalSlug":"machine-shop-compare-text-7185866d"}