# well-001-extract-table PDF Table Extractor

> well-001-extract-table PDF Table Extractor is a paid API for AI agents from well-001-extract-table.mmelnyk2000.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Extracts tabular data from PDF documents (text or scanned) and returns structured JSON with headers and rows, billed at $0.01 USDC per call via x402.

## Facts

- Endpoint: POST https://well-001-extract-table.mmelnyk2000.workers.dev/api/extract-table-from-pdf?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/well-001-extract-table-pdf-table-extractor-3dc04899
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g0-tYWc_aZ9zB1kmH0cDc

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-001-extract-table-pdf-table-extractor-3dc04899 -d '<json body>'
```

Example prompt: Can you extract all the tables from this PDF report for me? Here's the URL: https://example.com/quarterly-report.pdf — pull up to 5 pages and map the 'Item' column to 'product_name' and 'Qty' to 'quantity'.

## When to prefer this

Choose this endpoint when you need to extract tabular data from a PDF document in a single lightweight API call billed per-use at $0.01 USDC. It handles both text-based PDFs natively in-worker and supports optional header remapping for clean output schemas. Prefer it over heavyweight document processing pipelines for quick, ad-hoc table extraction tasks without storage or data retention concerns.

## Known failure modes

- PDF URL is not HTTPS or exceeds 8 MB — request rejected
- max_pages exceeds 10 — capped silently or rejected
- Scanned/image-based PDF without HOSTED_PARSER_URL configured — warnings returned, no table data
- Malformed base64 input — parse error returned
- No tables detected in the PDF — empty tables array returned
- Network timeout fetching remote PDF URL

## How this service works

Extract tables from a PDF ($0.01 USDC via x402). Pass pdf_base64 or a https pdf_url. Optional schema maps headers. Optional max_pages (1-10). Returns JSON { pages, tables: [{ page, headers, rows }], warnings }. Text PDFs are parsed in-worker; scans require HOSTED_PARSER_URL. Provided as is, with no warranty or guarantee of accuracy or fitness. Nothing is stored.

## Output

Returns a JSON object with: 'pages' (total pages processed), 'tables' (array of objects each containing 'page' number, 'headers' array, and 'rows' array of arrays), and 'warnings' (array of any issues encountered, e.g. scanned pages requiring hosted parser).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string",
   "description": "Optional header mapping. Object maps extracted header -> output name; array replaces headers in column order."
  },
  "pdf_url": {
   "type": "string",
   "description": "https URL of a PDF. Provide this or pdf_base64. Max 8 MB."
  },
  "max_pages": {
   "type": "integer",
   "description": "Max pages to read. Capped at 10."
  },
  "pdf_base64": {
   "type": "string",
   "description": "Raw PDF encoded as base64 (optionally a data: URL). Provide this or pdf_url."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/well-001-extract-table-pdf-table-extractor-3dc04899/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from well-001-extract-table.mmelnyk2000.workers.dev](https://www.zero.xyz/host/well-001-extract-table.mmelnyk2000.workers.dev/llms.txt)
