Catalog/text-dedupe-lines

Text

Dedupe lines API

Removes duplicate lines preserving first-seen order, optionally case-insensitive and/or trimming whitespace, reporting how many were removed. Answers 'how do I remove duplicate lines?', 'how many duplicates are in this list?'.

Price$0.01per request
MethodPOST
Route/v1/text/dedupe-lines
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
textdedupelinesuniqueduplicatesfilterlistcleanup
API URLhttps://x402.hexl.dev/v1/text/dedupe-lines
Integration docs
Example request
{
  "text": "a\nb\na\nc\nb"
}
Example response
{
  "result": "a\nb\nc",
  "uniqueCount": 3,
  "removed": 2
}
Input schema
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "examples": [
        "a\nb\na\nc\nb"
      ]
    },
    "caseInsensitive": {
      "type": "boolean"
    },
    "trim": {
      "type": "boolean"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}