$ man extract-tables
/extract-tables(1)
PRICE / CALL
$0.10
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
uncategorized
STATUS
● live
NAME
extract-tables — extract tables from pdf / table extractor / pdf to csv / spreadsheet from pdf
synonym alias of pdf-extract-tables — reuses the canonical handler.
SYNOPSIS
POST https://x402.org/v1/extract-tables
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Extract tables from PDF / table extractor / PDF to CSV / spreadsheet from PDF. Detects and extracts every table from a PDF document. Returns structured JSON or CSV per table. 30 pages max via Datalab Marker.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| pdf_url | string | Public URL of a PDF file (http or https). Must be directly fetchable, not behind auth or a viewer redirect. Max 30 pages. | required |
| page_range | string | Optional 1-indexed page filter applied after extraction. Accepts ranges, single pages, or comma-lists: '1-5', '3', '1,3,5'. Default: all pages. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| source_url | string | URL of the source PDF that was processed for table extraction. |
| page_count | string | Number of pages in the PDF that were scanned for tables (max 30). |
| tables | string | Array of extracted tables, each with structured rows and columns in JSON or CSV form. |
| source | string | Upstream extraction provider used, typically Datalab Marker. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/extract-tables \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the extract-tables tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- mediakitpdftable-extractionpdf-to-csvdata-extractiontablespdf-tables
- methods
- POST
- cluster
- mediakit
- price
- $0.10 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| mp4-to-mp3 | MP4 → MP3 audio extractor. | $0.10 |
| pdf-extract-tables | PDF table extractor / table from PDF / scanned-table parsing / financial-table OCR / multi-page table consolidator / Datalab Marker tables. | $0.10 |
| pdf-to-jpg | PDF to JPG / PNG / WEBP image converter. | $0.10 |
| speaker-diarize | Speaker diarization / who-said-what transcription. | $0.10 |
| transcribe | Video / audio transcription via Whisper v3. | $0.10 |
| upscale-image | AI image upscaler / super-resolution / image enlarger. | $0.10 |
| video-summarize | Video summarizer / podcast summarizer / lecture notes generator. | $0.10 |
| video-to-audio | Video → audio extractor / video to audio converter. | $0.10 |
SEE ALSO