# Creator Desk Line Count Utility

> Creator Desk Line Count Utility is a paid API for AI agents from creator-desk-x402-isolated.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Counts the number of lines in a given text or data value, returning the line count result.

## Facts

- Endpoint: POST https://creator-desk-x402-isolated.onrender.com/v1/utility/line-count?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/creator-desk-line-count-utility-fed8c1a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0Eq98pLaZFlMQ9uFJdaNP

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 creator-desk-line-count-utility-fed8c1a0 -d '<json body>'
```

Example prompt: Can you count how many lines are in this text block: 'Hello world
This is line two
And line three'?

## When to prefer this

Choose this endpoint when an AI agent needs a quick, paid-per-use line count computation on a text value without setting up local string processing logic. Useful in agent pipelines where metered utility calls are preferred over inline code execution, or when orchestrating tasks via x402-compatible payment infrastructure.

## Known failure modes

- Missing or null 'value' field may return an error or zero result
- Non-string value types passed without proper coercion may cause unexpected results
- Empty string input may return zero or one depending on implementation
- Payment failure via x402 protocol will block the call before execution
- Network timeout if the hosted Render.com instance is cold-starting

## How this service works

Machine-callable x402-paid utilities for autonomous agents.

## Output

Returns a JSON object containing a 'result' field with the computed line count value and an 'operation' field confirming the operation type as 'line_count'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {},
  "options": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "example",
  "operation": "line_count"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/creator-desk-line-count-utility-fed8c1a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from creator-desk-x402-isolated.onrender.com](https://www.zero.xyz/host/creator-desk-x402-isolated.onrender.com/llms.txt)
