# ProfitCollector Dedupe Lines

> ProfitCollector Dedupe Lines is a paid API for AI agents from api.bakhour.ca, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Removes duplicate lines from a block of text, returning only unique lines along with line count statistics.

## Facts

- Endpoint: POST https://api.bakhour.ca/text/dedupe-lines
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/profitcollector-dedupe-lines-b4cf6b56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dAJEpPozjL542TvGGnyXL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability profitcollector-dedupe-lines-b4cf6b56 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "a\\nb",
  "unique_lines": 2,
  "original_lines": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/profitcollector-dedupe-lines-b4cf6b56/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bakhour.ca](https://www.zero.xyz/host/api.bakhour.ca/llms.txt)
