{"uid":"cap_PoKXiiiFLdKQoJUMedVt4","slug":"tablegrab-file-upload-table-extractor-x402-19f7c8f7","name":"TableGrab – File Upload Table Extractor (x402)","description":"Three x402-paid data APIs on one host. PricePlain: Posted US hospital prices (CMS price-transparency files), cleaned: Twin Cities, MN first. Cash and payer-negotiated rates per CPT/DRG code with canonical insurer names, provenance (source file URL + date) and data-quality flags. Posted prices, not quotes. TableGrab: public URL or file -> typed JSON tables / Markdown. City Table Clean: Socrata/CKAN city CSV cleaner with a per-change log.","url":"https://priceplain.onrender.com/v1/extract/upload?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"HTML, CSV, XLSX or text-based PDF, max 5 MiB"},"mode":{"enum":["tables","markdown","auto"],"type":"string","default":"auto"},"clean":{"type":"boolean","default":true},"max_tables":{"type":"integer","default":20}}},"responseSchema":{"type":"json","example":{"source":{"url":"https://en.wikipedia.org/wiki/List_of_United_States_cities_by_population"},"tables":[{"rows":[{"city":"New York","state":"New York","c_2024_estimate":8478072}],"index":0,"n_cols":3,"n_rows":1,"source":{"type":"html","table_index":3},"caption":null,"columns":[{"key":"city","type":"text","header":"City"},{"key":"state","type":"text","header":"State"},{"key":"c_2024_estimate","type":"integer","header":"2024 estimate"}],"context":"List of United States cities by population","headers":["City","State","2024 estimate"],"truncated":false}],"mode_used":"tables","input_type":"html","tables_found":9}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_U9VBQ6MR3zR5yLAabpqlA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts an uploaded HTML, CSV, XLSX, or PDF file and returns clean, typed JSON tables or Markdown, with inferred column types and structured row objects.","exampleAgentPrompt":"I have an HTML file with several tables in it — can you upload it and give me back clean JSON with typed columns for each table, extracting up to 20 tables?","exampleUseCases":[{"title":"Extract hospital price table from PDF","prompt":"I've got a PDF of a hospital's CMS price transparency file — can you upload it and extract all the pricing tables as structured JSON with typed columns so I can compare procedure costs?"},{"title":"Convert city data CSV to typed JSON","prompt":"Here's a CSV I downloaded from a city open-data portal — upload it and return the data as clean typed JSON tables with proper column type inference and headers."},{"title":"Parse Wikipedia HTML table into rows","prompt":"I saved a Wikipedia page as an HTML file — can you extract all the tables from it and return them as structured JSON row objects with inferred column types, up to 20 tables?"}],"resultDescription":"Returns a JSON object containing the detected input type, mode used, number of tables found, and an array of table objects each with: typed column definitions (key, type, header), row objects, row/column counts, source metadata, caption, context string, and a truncated flag.","failureModes":["File exceeds 5 MiB limit — request rejected","Unsupported file format — only HTML, CSV, XLSX, and text-based PDFs are accepted","Scanned/image-based PDFs return no tables as text is not extractable","No tables found in the document — empty tables array returned","Payment not completed via x402 — 402 response returned before processing","Malformed file or corrupt upload — parsing error returned"],"whenToPreferThis":"Choose this endpoint when you have a local file (HTML, CSV, XLSX, or text PDF) you want to upload directly rather than providing a public URL. It is ideal when the source document is not publicly accessible on the web, when you need typed JSON with inferred column types rather than raw text, and when you want clean structured row objects ready for downstream processing. For public URLs, the sibling URL-based TableGrab endpoint may be more convenient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:31:48.192Z","isFirstParty":false,"canonicalSlug":"tablegrab-file-upload-table-extractor-x402-19f7c8f7"}