# LIN Desk Dedupe Lines

> LIN Desk Dedupe Lines is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Removes duplicate lines from input text, returning only unique lines in order

## Facts

- Endpoint: GET https://lin-desk-x402.lindesk.workers.dev/v1/texttools/dedupe_lines?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lin-desk-dedupe-lines-c36988fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lZ-qz2mcGa7vT7Aci5gEy

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 lin-desk-dedupe-lines-c36988fd
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "dedupe_lines",
  "meta": {
   "chars_in": 10,
   "chars_out": 5,
   "elapsed_ms": 0
  },
  "result": "a\nb\nc"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lin-desk-dedupe-lines-c36988fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
