# SiteCheck Text Chunker

> SiteCheck Text Chunker is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-16).

Splits a text string into overlapping token-bounded chunks at paragraph, sentence, and word boundaries

## Facts

- Endpoint: POST https://api.sitecheck-api.workers.dev/api/text/chunk?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-text-chunker-50e192a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H5FwgWn__6DRim4gkRXkw

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 sitecheck-text-chunker-50e192a5 -d '<json body>'
```

Example prompt: Chunk this article text into segments of at most 500 tokens each, with an overlap of 50 tokens between neighbouring chunks, so I can embed them for a RAG pipeline.

## When to prefer this

Choose this endpoint when you need server-side, pure-code text chunking that respects paragraph, sentence, and word boundaries without any ML model overhead. Ideal for RAG pipelines, embedding batch preparation, and LLM context-window splitting where you want deterministic, reproducible chunking with configurable token size and overlap, at a very low per-call cost ($0.001).

## Known failure modes

- Text exceeds 1 MB limit — request rejected
- maxTokens outside 20–8000 range — validation error
- overlap value >= maxTokens — validation error
- Empty or missing text field — error response
- Malformed JSON body — 400 bad request

## How this service works

Split a long text into chunks for retrieval (RAG): split on paragraphs, then sentences, then words, each chunk within maxTokens (default 500) with the overlap you ask for (default 50 tokens). Each chunk has its index, text, start and end character offsets and an estimated token count (characters divided by 4, a rough rule for English). Up to 1 MB and 2,000 chunks.

## Output

A JSON object containing the total chunk count, an array of chunk objects (each with index, start offset, end offset, text, and estimated token count), the overlap and maxTokens settings used, a description of the boundary strategy (paragraph, sentence, word), a token estimation method note, and a timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "The text, up to 1 MB (JSON body field)"
  },
  "overlap": {
   "type": "string",
   "description": "Tokens shared by neighbouring chunks, 0 up to maxTokens minus 1, default 50"
  },
  "maxTokens": {
   "type": "string",
   "description": "Largest chunk in estimated tokens, 20 to 8000, default 500"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "chunks": [
   {
    "end": 58,
    "text": "Alpha beta gamma delta. Epsilon zeta eta theta iota kappa.",
    "index": 0,
    "start": 0,
    "estimatedTokens": 15
   },
   {
    "end": 91,
    "text": "Epsilon zeta eta theta iota kappa.\n\nLambda mu nu xi omicron pi rho.",
    "index": 1,
    "start": 24,
    "estimatedTokens": 17
   }
  ],
  "source": "Computed here (pure code): paragraph, sentence and word boundaries",
  "overlap": 5,
  "checkedAt": "2026-10-15T13:48:02.048Z",
  "maxTokens": 20,
  "tokenEstimate": "characters / 4"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-text-chunker-50e192a5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
