{"uid":"cap_dAJEpPozjL542TvGGnyXL","slug":"profitcollector-dedupe-lines-b4cf6b56","name":"ProfitCollector Dedupe Lines","description":"Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.","url":"https://api.bakhour.ca/text/dedupe-lines","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"text":"a\\nb","unique_lines":2,"original_lines":3}},"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_Wca4MhfT104eHTiGVCvgt","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":"Removes duplicate lines from a block of text, returning only unique lines along with line count statistics.","exampleAgentPrompt":"Can you deduplicate these lines for me? I have a list of email addresses where some appear more than once — here they are: alice@example.com, bob@example.com, alice@example.com, carol@example.com, bob@example.com.","exampleUseCases":[{"title":"Cleaning duplicate entries from a contact list","prompt":"I exported a CSV of subscriber emails but there are tons of duplicates — can you pass the email column through the dedupe-lines tool and tell me how many unique addresses I actually have?"},{"title":"Deduplicating log lines for analysis","prompt":"Here are a few hundred log lines from my server — a lot of them repeat. Can you remove the duplicates so I can see each unique message just once?"},{"title":"Normalizing a scraped keyword list","prompt":"I scraped a bunch of keywords from several pages and combined them into one big list, but there are lots of repeats. Can you deduplicate them and tell me how many unique keywords I ended up with?"}],"resultDescription":"Returns a JSON object with the deduplicated text (unique lines joined by newlines), the count of unique lines, and the original total line count before deduplication.","failureModes":["Missing or empty 'text' field — likely returns an error or empty result","Very large text payloads may hit size limits or time out","Non-UTF-8 or binary content in the text field may cause parsing errors","Payment failure (402) if the x402 payment header is missing or insufficient"],"whenToPreferThis":"Choose this endpoint when you need a simple, deterministic, paid microservice to remove duplicate lines from text without setting up local processing — especially useful in automated agent workflows that already handle x402 micropayments and need a reliable, stateless deduplication step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:37:48.995Z","isFirstParty":false}