{"uid":"cap_bORGj0ydYIGmJQxFa9dkB","slug":"one-engine-text-line-deduplicator-00b687ef","name":"ONE Engine Text Line Deduplicator","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/text/deduplicate-lines?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"text":"a\nb\nc","lines":3}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0011","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.0011/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1nfG9kiEnco_VrzFt2cF2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0011","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes duplicate lines from a block of text, returning unique lines and a line count.","exampleAgentPrompt":"Remove all duplicate lines from this text and give me only the unique ones: 'apple\nbanana\napple\ncherry\nbanana\nmango'","exampleUseCases":[{"title":"Deduplicating scraped URL lists","prompt":"I scraped a bunch of URLs from multiple pages and now I have tons of duplicates — can you deduplicate these lines so I only have unique URLs? Here's the full list: 'https://example.com/a\nhttps://example.com/b\nhttps://example.com/a\nhttps://example.com/c'"},{"title":"Cleaning agent log output","prompt":"My agent generated a log with a lot of repeated lines. Can you clean it up and remove all the duplicate lines from this output? Here it is: 'ERROR: timeout\nINFO: retrying\nERROR: timeout\nINFO: success\nERROR: timeout'"},{"title":"Deduplicating keyword lists for SEO","prompt":"I have a keyword list that got merged from several sources and has lots of repeats. Please deduplicate these lines and tell me how many unique keywords I have: 'seo tools\nkeyword research\nseo tools\ncontent marketing\nkeyword research\nbacklink analysis'"}],"resultDescription":"A JSON object containing the deduplicated text (unique lines only, newline-separated) as the 'text' field, and a 'lines' integer indicating how many unique lines remain after deduplication.","failureModes":["Missing 'text' field in request body returns an error","Empty string input may return empty text with 0 lines","Very large text blocks may hit payload size limits","Payment failure via x402 protocol blocks the request","Malformed JSON body returns a parse error"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, pay-per-call solution to deduplicate newline-separated text without spinning up your own logic. Ideal for autonomous agents on Base using x402 micropayments that need lightweight text-cleaning as a single atomic operation at $0.0011 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:24.955Z","isFirstParty":false,"canonicalSlug":"one-engine-text-line-deduplicator-00b687ef"}