# Text Trim, Dedup, Match & Sort Pipeline

> Text Trim, Dedup, Match & Sort Pipeline is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-27).

Processes an array of records through four sequential steps: trim text fields, remove duplicate rows, match text in a column, and sort numbers descending.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-cap-f9fc4f903694de7b729f?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-trim-dedup-match-sort-pipeline-e7ce6f70
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gldWCK3L1Z4d_-MR2Rewg

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 text-trim-dedup-match-sort-pipeline-e7ce6f70 -d '<json body>'
```

Example prompt: I have a list of customer records with a 'text' field and a 'value' field — can you trim the text fields, remove duplicates, keep only rows where the text matches 'Useful example', and then sort by value descending?

## When to prefer this

Choose this endpoint when you need a chained, multi-step data cleaning pipeline (trim → dedup → text match → numeric sort) on up to 300 flat records in a single call, without needing any external data lookup. Ideal for lightweight ETL preprocessing tasks where records are already in hand and you want row counts at each transformation step.

## Known failure modes

- Empty records array (minItems:1 violated) returns validation error
- Records array exceeds 300 items (maxItems exceeded) returns error
- Field name doesn't match pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ returns validation error
- Query string empty or exceeds 100 characters returns validation error
- No rows match the query text — returns empty result set with zero matching rows
- Records with missing or null target field may not match or sort correctly

## How this service works

Trim text fields → Remove duplicate rows → Match text in a column → Sort numbers descending: Process customer-supplied records: Trim text fields → Remove duplicate rows → Match text in a column → Sort numbers descending. Returns the processed output and row counts per step. No external data lookup. 0.01 USDC includes up to 300 flat records.

## Output

Returns the processed output records after all four pipeline steps (trim, dedup, match, sort descending), along with row counts at each step showing how many records remained after each transformation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "field": {
   "type": "string",
   "default": "value",
   "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,39}$",
   "maxLength": 40
  },
  "query": {
   "type": "string",
   "default": "useful",
   "maxLength": 100,
   "minLength": 1
  },
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "maxProperties": 30,
    "additionalProperties": {
     "type": [
      "string",
      "number",
      "boolean",
      "null"
     ]
    }
   },
   "default": [
    {
     "text": " Useful example ",
     "value": 10
    },
    {
     "text": "Useful example",
     "value": 20
    },
    {
     "text": "Other row",
     "value": 5
    }
   ],
   "maxItems": 300,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-trim-dedup-match-sort-pipeline-e7ce6f70/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
