{"uid":"cap_Ku6x3clMaVynBOJmvgoqe","slug":"well-001-extract-table-pdf-table-extractor-40a7eaff","name":"well-001-extract-table PDF Table Extractor","description":"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.","url":"https://well-001-extract-table.rainmaker-wells.workers.dev/api/extract-table-from-pdf?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bQ_hBZYLvx1QwmCfuTB63","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured tables from a PDF file (by URL or base64) and returns JSON with headers, rows, and page metadata","exampleAgentPrompt":"Can you extract the tables from this PDF report and give me the data as structured JSON? Here's the URL: https://example.com/quarterly-report.pdf — check up to 5 pages and map the 'Revenue' column to 'revenue_usd'.","exampleUseCases":[{"title":"Financial report table extraction","prompt":"Pull all the tables from this annual report PDF at https://example.com/annual-report.pdf and give me the data as structured rows and columns — check up to 10 pages."},{"title":"Invoice line items parsing","prompt":"I have a PDF invoice encoded in base64 — can you extract the line items table from it so I can see each product, quantity, and price as structured JSON?"},{"title":"Research paper data extraction","prompt":"Extract any data tables from this academic paper at https://journals.example.com/study.pdf, up to 3 pages, and map the column 'Participant Count' to 'n' in the output."}],"resultDescription":"Returns a JSON object with: 'pages' (number of pages processed), 'tables' (array of objects each containing 'page' number, 'headers' array, and 'rows' array of arrays), and 'warnings' (array of any parsing issues encountered). No data is stored server-side.","failureModes":["PDF URL is not HTTPS or exceeds 8 MB — request rejected","Scanned/image-only PDF without hosted parser URL configured — tables cannot be extracted","max_pages exceeds 10 — capped at 10","Malformed base64 input — parse error returned","Payment of $0.01 USDC not completed via x402 — 402 Payment Required response","PDF has no machine-readable tables — empty tables array with warnings"],"whenToPreferThis":"Choose this endpoint when you need to extract structured tabular data (rows and columns) from a PDF document, especially financial reports, invoices, research papers, or any PDF containing machine-readable tables. It supports both URL-based and base64-encoded PDFs, costs only $0.01 USDC per call, and returns clean JSON with optional header remapping. Best for text-based PDFs; scanned documents require an external hosted parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:38:15.037Z","isFirstParty":false,"canonicalSlug":"well-001-extract-table-pdf-table-extractor-40a7eaff"}