# well-010-docx-to-text

> well-010-docx-to-text 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 HTTPS URL or base64-encoded content

## Facts

- Endpoint: POST https://well-010-docx-to-text.rainmaker-wells.workers.dev/api/docx-to-text?utm_source=zero.xyz
- 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/well-010-docx-to-text-e96a114d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CEpu6J4sSqmSgnRsFRMyX

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

Example prompt: Can you extract all the text and tables from this Word document at https://example.com/report.docx and give me the content as plain text?

## When to prefer this

Use this endpoint when you need to extract raw text and table data from Word .docx files hosted at a public HTTPS URL or available as base64. It is ideal for document ingestion pipelines, contract review, report parsing, and any workflow where Word document content needs to be converted to machine-readable text. It does not store any data, making it suitable for sensitive documents. Prefer this over PDF extractors when your source files are .docx format; note it does not support legacy .doc binary format.

## Known failure modes

- HTTP or non-HTTPS URLs are rejected with an error
- Private IPs and localhost URLs are blocked for security
- Files larger than 10 MB are rejected
- Processing timeout after ~15 seconds for very large or complex documents
- Old binary .doc format files are not supported — only .docx
- More than 5 redirects causes failure
- Malformed or corrupt .docx files may fail to parse
- Inaccessible or password-protected documents return an 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 }. Provided as is, with no warranty or guarantee of accuracy or fitness. Nothing is stored.

## Output

Returns a JSON object containing: the filename ('file'), the original URL, the final resolved URL after redirects, type field set to 'docx', the full extracted plain text with [table N] placeholders where tables appeared, an array of tables each containing their rows as structured data, and any warnings encountered during processing (e.g. unsupported features).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "https URL of a .docx file. http/file/data/localhost/private IPs rejected."
  },
  "filename": {
   "type": "string",
   "description": "Optional file name echoed back as `file`."
  },
  "docx_base64": {
   "type": "string",
   "description": "Alternative to url: the .docx file bytes, base64-encoded (max 10 MB)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/well-010-docx-to-text-e96a114d/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)
