{"uid":"cap_lZ-qz2mcGa7vT7Aci5gEy","slug":"lin-desk-dedupe-lines-c36988fd","name":"LIN Desk Dedupe Lines","description":"Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.","url":"https://lin-desk-x402.lindesk.workers.dev/v1/texttools/dedupe_lines?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Input text; max 100 KiB"},"strip":{"enum":["true","false"],"type":"string"},"ignore_empty":{"enum":["true","false"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"op":{"type":"string"},"meta":{"type":"object","properties":{"chars_in":{"type":"integer"},"chars_out":{"type":"integer"},"elapsed_ms":{"type":"integer"}}},"result":{}}}}}}},"responseSchema":{"type":"json","example":{"op":"dedupe_lines","meta":{"chars_in":10,"chars_out":5,"elapsed_ms":0},"result":"a\nb\nc"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OpMNd2Ivxqy7KvIajuGMU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 input text, returning only unique lines in order","exampleAgentPrompt":"I have this block of text with a lot of repeated lines — can you deduplicate it and give me back only the unique lines, stripping any whitespace?","exampleUseCases":[{"title":"Clean scraped web content before LLM ingestion","prompt":"I just scraped a webpage and the output has tons of repeated navigation lines and footer text. Can you remove all the duplicate lines so I have clean, unique content to feed into my LLM pipeline?"},{"title":"Deduplicate log file entries","prompt":"Here's a chunk of server log output — there are a lot of repeated error lines cluttering it up. Can you deduplicate the lines and return only the unique ones so I can analyze what's actually happening?"},{"title":"Normalize a keyword or tag list","prompt":"I have a list of tags or keywords where many entries repeat — can you remove all the duplicate lines and return only unique entries, ignoring any blank lines?"}],"resultDescription":"A JSON object with op='dedupe_lines', a meta block containing chars_in, chars_out, and elapsed_ms, and a result field containing the deduplicated text with duplicate lines removed (one unique line per original unique line, order preserved).","failureModes":["Input text exceeds 100 KiB limit — request rejected","Missing required 'input' query parameter — 400 error","Payment not fulfilled via x402 — 402 Payment Required response","Invalid value for 'strip' or 'ignore_empty' enum parameters — validation error"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.001 USDC), no-signup line-level deduplication on plain text up to 100 KiB — especially useful in LLM preprocessing pipelines where repeated lines inflate context windows. Prefer it over custom code when running in a pay-per-call agent environment on Base via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:44:10.972Z","isFirstParty":false,"canonicalSlug":"lin-desk-dedupe-lines-c36988fd"}