# ONE Engine Character Count

> ONE Engine Character 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 total number of characters in a given text string and returns the count as a JSON integer.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/text/character-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-character-count-88977fcd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R5j8CpoL_muiMPKvd9agp

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-character-count-88977fcd -d '<json body>'
```

Example prompt: How many characters are in this text: 'Hello, world! This is my draft message.'?

## When to prefer this

Choose this endpoint when you need a cheap, fast, deterministic character count with no local computation — ideal for autonomous agents running in environments where string length functions are unavailable or when you need a pay-per-call metered utility via x402 on Base. Prefer it over manual computation when integrating into an agent pipeline that already handles x402 micropayments.

## Known failure modes

- Missing or empty 'text' field in request body may return an error or zero count
- Payment failure via x402 protocol results in a 402 response before the computation is performed
- Extremely large text strings may be rejected or time out due to Cloudflare Workers payload limits
- Malformed JSON request body returns a parsing error

## How this service works

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

## Output

A JSON object containing a single field 'characters' with an integer value representing the total character count of the submitted text string, e.g. {"characters": 42}.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "characters": 7
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-character-count-88977fcd/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)
