# Delx Commerce — Split Lines Utility

> Delx Commerce — Split Lines Utility is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Splits a multi-line text string into an array of individual lines and returns the count

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/split-lines?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-split-lines-utility-4df8d768
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a2VeGIOdwb3SFAh7j0Fw1

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 delx-commerce-split-lines-utility-4df8d768 -d '<json body>'
```

Example prompt: Split this block of text into individual lines for me: 'first item\nsecond item\nthird item' — just give me the array of lines and the count.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call, no-signup utility to split multi-line text into an array with a line count — especially in agent pipelines where verifiable micro-payment delivery (USDC on Base or Solana via x402) is preferred over subscription APIs. Best suited for lightweight text parsing tasks within automated workflows.

## Known failure modes

- Empty or missing 'text' field returns an error or empty array
- Extremely large text inputs may be rejected or time out
- Non-string input types in the text field may cause validation errors
- Payment failure via x402 protocol will block the request

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing: 'lines' (array of strings, one per line from the input text), 'count' (integer number of lines), and 'schema' (a version identifier string 'delx/util-split-lines/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "lines": [
   "one",
   "two",
   "three"
  ],
  "schema": "delx/util-split-lines/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-split-lines-utility-4df8d768/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
