# web-extract/chunk — Web Page Chunked Text Extractor

> web-extract/chunk — Web Page Chunked Text Extractor is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Fetches a web page by URL and returns its text content split into token-limited chunks with configurable overlap, suitable for LLM processing.

## Facts

- Endpoint: POST https://api.firstmention.uk/s/web-extract/chunk?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-extract-chunk-web-page-chunked-text-extractor-c04572be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Jz6p1MRrEaAGHJBhiNJj1

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 web-extract-chunk-web-page-chunked-text-extractor-c04572be -d '<json body>'
```

Example prompt: Can you fetch the article at https://example.com/article and split the text into chunks of at most 1000 tokens each, with a 100-token overlap between chunks?

## When to prefer this

Choose this endpoint when you need to ingest web page text into an LLM pipeline that has context-window limits, such as RAG indexing, semantic search, or multi-chunk summarization. It is preferable over raw scraping tools when you specifically need tokenized, overlapping text segments ready for embedding models. Use when the downstream consumer is a vector store, embedding API, or chunked summarizer — not when you need structured data extraction or full-page HTML.

## Known failure modes

- URL is unreachable or returns a non-200 status — ok:false with error message
- URL points to a non-text resource (PDF, image, binary) — may return empty or garbled chunks
- max_tokens below 50 or above 8000 — validation error
- overlap value exceeds 500 — validation error
- Page behind authentication or bot protection — content not extractable
- Very short pages may return a single chunk or zero chunks

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns a JSON object with an 'ok' boolean, a 'count' of chunks, and an array of 'chunks' each containing the text string, its sequential index, and its token length. Chunks respect the max_tokens ceiling and overlap windows specified in the request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri"
  },
  "overlap": {
   "type": "integer",
   "maximum": 500,
   "minimum": 0
  },
  "max_tokens": {
   "type": "integer",
   "maximum": 8000,
   "minimum": 50
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "count": 1,
  "chunks": [
   {
    "text": "...",
    "index": 0,
    "tokens": 412
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-extract-chunk-web-page-chunked-text-extractor-c04572be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
