# ONE Engine Text Line Count

> ONE Engine Text Line Count is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.0009/call, status unknown (last checked 2026-10-02).

Counts the number of lines in a given text string and returns the line count as an integer.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/text/line-count?utm_source=zero.xyz
- Price: $0.0009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-text-line-count-5716effa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_njAheYPhybibzqlFGnreV

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 one-engine-text-line-count-5716effa -d '<json body>'
```

Example prompt: How many lines are in this text: 'Hello world
This is line two
And this is line three'?

## When to prefer this

Choose this endpoint when you need a cheap, fast, pay-per-call line counting utility without setting up local text processing, especially in autonomous agent workflows using x402 micropayments on Base where spinning up custom code is not desirable.

## Known failure modes

- Empty or missing 'text' field may return an error or a line count of 0
- Very large text payloads may be rejected or time out
- Non-string input types for 'text' may cause a validation error
- Network issues with the Cloudflare Worker may result in 5xx errors

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns a JSON object with a single field 'lines' containing an integer representing the total number of lines in the provided text string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lines": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-text-line-count-5716effa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
