# ONE Engine Text Token Line Counter

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

Counts the number of lines in a given text string, returning a token-level line breakdown via a pay-per-call API on Base using x402.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-token/lines/t3?utm_source=zero.xyz
- Price: $0.001/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-token-line-counter-cd6c9c98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WmyTq1cfvsccE7V9DW1Vq

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-token-line-counter-cd6c9c98 -d '<json body>'
```

Example prompt: Count the number of lines in this block of text for me: 'Line one\nLine two\nLine three\nLine four' — I need to know how many lines it contains.

## When to prefer this

Choose this endpoint when you need a cheap, fast, pay-per-call line-counting or line-tokenization operation on arbitrary text up to 50,000 characters, especially in an autonomous agent pipeline on Base that already handles x402 micropayments. Ideal for high-volume text processing workflows where per-call cost control matters.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected
- Empty text field — may return zero lines or error
- Malformed JSON body — 400 bad request
- x402 payment failure — 402 Payment Required if USDC not sent correctly
- Network timeout on Cloudflare Worker edge

## How this service works

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

## Output

Returns a JSON object containing the line-level token breakdown of the submitted text, including the number of lines and their individual content or token representations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "Text up to 50000 characters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-text-token-line-counter-cd6c9c98/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)
