# Syntexa AgentShelf Word 1-gram Counter

> Syntexa AgentShelf Word 1-gram Counter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-02).

Counts word unigram (1-gram) frequencies in a given text string, returning exact word occurrence counts without network calls or LLM processing.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/ngram-word-1?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/syntexa-agentshelf-word-1-gram-counter-2f5a846a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h5HmH4XzJHid5rKJZvNsU

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 syntexa-agentshelf-word-1-gram-counter-2f5a846a -d '<json body>'
```

Example prompt: Can you count how many times each word appears in this text: 'To be or not to be that is the question whether tis nobler in the mind to suffer'?

## When to prefer this

Choose this endpoint when you need exact, deterministic word-level unigram frequency counts from a text without relying on an LLM or external network call. It is ideal for NLP preprocessing pipelines, SEO keyword audits, readability analysis, or any workflow that needs a reproducible word frequency table at low cost. Prefer the free sandbox POST /v1/sandbox/ngram-word-1 first for testing; use this paid endpoint when sandbox access is unavailable or rate-limited.

## Known failure modes

- Text exceeds 100,000 character limit — request rejected
- Empty or missing text field — validation error
- Payment of exactly $0.009 USDC not provided — HTTP 402 returned
- Malformed request body — JSON parse error

## How this service works

Call when an agent needs counts of word 1-grams. No network and no LLM. Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/ngram-word-1 first.

## Output

Returns a map or dictionary of each unique word found in the input text to its integer occurrence count (1-gram frequency table), computed locally without any network requests or LLM involvement.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "ab ab"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/syntexa-agentshelf-word-1-gram-counter-2f5a846a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
