# AgentShelf Lines Longest

> AgentShelf Lines Longest is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-23).

Returns only the longest line(s) from a block of text, filtering out all shorter lines

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/lines-longest?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-lines-longest-5b1f1b0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_buuVn_wSjBEkzQijwPOcU

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 agentshelf-lines-longest-5b1f1b0c -d '<json body>'
```

Example prompt: Can you find the longest line in this text and return just that line: 'apple
banana split sundae with toppings
kiwi'?

## When to prefer this

Use this endpoint when you need a simple, stateless, no-network operation to extract the longest line(s) from a block of text. It is ideal for text normalization pipelines, log analysis, data cleaning tasks, or code auditing where identifying the maximum-length line is the goal. Prefer the free sandbox endpoint at POST /v1/sandbox/lines-longest first to avoid the $0.006 USDC charge; use this paid endpoint when the sandbox is unavailable or rate-limited.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Input text exceeding 100,000 characters is rejected
- Payment not provided or insufficient USDC results in HTTP 402 response
- Malformed JSON body returns a 400 error

## How this service works

Call when an agent needs lines of text transformed with longest. No network. Exact $0.006 USDC. Prefer unpaid POST /v1/sandbox/lines-longest first.

## Output

The endpoint returns the line or lines from the input text that have the maximum character length, effectively filtering the input down to only its longest line(s). Shorter lines are discarded.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "b\na\n"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-lines-longest-5b1f1b0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
