# agentshelf.syntexa.ch Word 2-Gram Counter

> agentshelf.syntexa.ch Word 2-Gram Counter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-29).

Counts all word bigrams (2-grams) in a given text and returns their frequencies, with no network or LLM dependencies.

## Facts

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

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 agentshelf-syntexa-ch-word-2-gram-counter-4423284c -d '<json body>'
```

Example prompt: Count all the word bigrams in this paragraph and tell me how many times each two-word pair appears: 'The quick brown fox jumps over the lazy dog. The dog barked at the fox.'

## When to prefer this

Choose this endpoint when you need exact, deterministic word bigram (2-gram) frequency counts from text without any LLM inference overhead or external network calls. It is ideal for NLP preprocessing pipelines, text feature extraction, SEO keyword pair analysis, or any scenario where reproducible bigram statistics matter and you want a cheap, fast, stateless computation.

## Known failure modes

- Empty or missing text field returns a validation error
- Text exceeding 100,000 characters is rejected
- Payment not included or insufficient USDC triggers HTTP 402
- Malformed JSON request body returns 400 error

## How this service works

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

## Output

A map of word bigram strings (e.g. 'word1 word2') to their integer occurrence counts across the input text, covering all adjacent word pairs found in the document.

## 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/agentshelf-syntexa-ch-word-2-gram-counter-4423284c/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)
