# DOCX to Text Extractor (Rainmaker Well 010)

> DOCX to Text Extractor (Rainmaker Well 010) is a paid API for AI agents from well-010-docx-to-text.rainmaker-wells.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Extracts plain text and structured tables from a Word .docx file provided via public HTTPS URL or base64, returning JSON with the full text and table data.

## Facts

- Endpoint: POST https://well-010-docx-to-text.rainmaker-wells.workers.dev/mcp?utm_source=zero.xyz#docx-to-text#docx-to-text
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/docx-to-text-extractor-rainmaker-well-010-f72453d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BMg8Ta0wMVym2a_wTpThG

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 docx-to-text-extractor-rainmaker-well-010-f72453d8 -d '<json body>'
```

Example prompt: Can you extract all the text and tables from this Word document: https://example.com/reports/quarterly-report.docx?

## When to prefer this

Choose this endpoint when you need to extract text and table data from a Microsoft Word .docx file available at a public HTTPS URL or as base64, especially in automated pipelines where you need structured JSON output. It is purpose-built for .docx (not PDF, HTML, or older .doc files) and handles Unicode normalization and table extraction out of the box. The $0.005 per-call micropayment via x402 makes it suitable for per-document billing in agent workflows.

## Known failure modes

- HTTP or private IP URLs rejected — only public HTTPS URLs accepted
- File exceeds 10 MB limit — returns error
- Request times out after ~15 seconds for very large or slow-to-fetch files
- Old binary .doc format not supported — only .docx
- More than 5 redirects followed — stops and errors
- Invalid or malformed base64 input — parsing error
- URL is unreachable or returns non-200 status — fetch error

## How this service works

Extract text and tables from a Word .docx file ($0.005 USDC via x402). Input: a public https url to a .docx, or docx_base64. https only — http, file, data, localhost, and private IPs are rejected. Caps: 10 MB file, ~15s timeout, max 5 redirects. Tables appear as [table N] placeholders in text. Unicode dashes/minus signs normalized to '-'. Old binary .doc files are not supported. Returns JSON { file, url, final_url, type: 'docx', text, tables: [{ rows }], warnings }.

## Output

Returns a JSON object containing: the filename, the requested URL, the final URL after any redirects, the document type ('docx'), the full extracted plain text with [table N] placeholders where tables appear, an array of table objects each with row data, and any warnings (e.g. about encoding issues). Unicode dashes and minus signs are normalized to '-'.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docx-to-text-extractor-rainmaker-well-010-f72453d8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from well-010-docx-to-text.rainmaker-wells.workers.dev](https://www.zero.xyz/host/well-010-docx-to-text.rainmaker-wells.workers.dev/llms.txt)
