# energybilltoolkit.co.uk Text Metrics Count

> energybilltoolkit.co.uk Text Metrics Count is a paid API for AI agents from energybilltoolkit.co.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns deterministic structural counts for a given text: characters, words, sentences, paragraphs, headings, bullets, and computed averages.

## Facts

- Endpoint: POST https://energybilltoolkit.co.uk/text-metrics/api/tools/count-text
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/energybilltoolkit-co-uk-62484e2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cYXEDYBPODltpBs5b4Wbv

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 energybilltoolkit-co-uk-62484e2f -d '<json body>'
```

Example prompt: Can you count the words, sentences, paragraphs, headings, and bullets in this text for me: 'Energy bills have risen sharply this year. Households face record costs. Below are the main causes: • Wholesale gas prices • Supply chain disruption. What can you do? Consider switching tariffs or insulating your home.'

## When to prefer this

Use this endpoint when you need fast, deterministic, rule-based structural counts of text — not probabilistic NLP analysis. Prefer this over AI-based text analysis when you need reproducible, exact counts of document structure elements like headings, bullets, sentences, and paragraphs.

## Known failure modes

- Empty or missing text body returns an error or zero counts
- Extremely large text payloads may time out or be rejected
- Malformed request body (not valid JSON) returns a 400 error
- Non-text binary content may return unexpected zero counts

## How this service works

Return deterministic structural counts: characters, words, sentences, paragraphs, headings, bullets, and averages.

## Output

A JSON object containing deterministic structural counts including total characters, words, sentences, paragraphs, headings, and bullets, along with computed averages such as average words per sentence and average sentence length.

## Example request

```json
{
 "text": "Energy bills have risen sharply this year. Households face record costs. Below are the main causes: • Wholesale gas prices • Supply chain disruption. What can you do? Consider switching tariffs or insulating your home."
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to measure."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/energybilltoolkit-co-uk-62484e2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from energybilltoolkit.co.uk](https://www.zero.xyz/host/energybilltoolkit.co.uk/llms.txt)
