PDF Table Extractor & PDF to JSON API: text, tables, metadata avatar

PDF Table Extractor & PDF to JSON API: text, tables, metadata

Pricing

from $0.50 / 1,000 pages

Go to Apify Store
PDF Table Extractor & PDF to JSON API: text, tables, metadata

PDF Table Extractor & PDF to JSON API: text, tables, metadata

PDF table extractor and text parser: tables as JSON rows with a header guess, per-page markdown text in reading order, title, author and dates, from 1-20 public PDF URLs or a base64 file. Processed in memory, never stored. $0.0005 per page with text; scanned pages are flagged and free.

Pricing

from $0.50 / 1,000 pages

Rating

0.0

(0)

Developer

Bosco Labs

Bosco Labs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

PDF to JSON API: text, tables and metadata from a PDF URL

Turn any public PDF link (annual report, invoice, government notice, price list) into clean JSON: text per page in reading order (markdown headings and tables), tables as rows with a header guess, and title, author and dates. Built for AI agents that meet a PDF mid-task and for anyone who needs PDF data in a pipeline. Pricing: $0.50 per 1,000 pages ($0.0005 per page with text), no start fee. Failed files and scanned pages without text are free.

Give 1 to 20 PDF URLs (or one file as base64). A 20-page PDF typically takes 3-10 seconds. Files are processed in memory and never stored; their content is never logged.

What you get

One row per PDF, written as soon as that PDF is done (so rows can arrive in a different order than your input; input_index says which input it is). Real output for pages 1-2 of the SEC's Form 10-K instructions (page text shortened here):

{
"schema_version": "1",
"input_index": 0,
"url": "https://www.sec.gov/files/form10-k.pdf",
"final_url": "https://www.sec.gov/files/form10-k.pdf",
"file_size_bytes": 549322,
"page_count": 19,
"pages_processed": 2,
"pages_charged": 2,
"title": "Form 10-K",
"author": "U.S. Securities and Exchange Commission",
"subject": "Annual Report Pursuant to Section 13 or 15(d) of the Securities Exchange Act of 1934",
"creator": "Acrobat PDFMaker 24 for Word",
"producer": "Adobe PDF Library 24.1.163",
"creation_date": "2024-05-12T10:49:53-04:00",
"modification_date": "2026-09-10T12:50:48-04:00",
"pages": [
{
"page": 1,
"text": "UNITED STATES\nSECURITIES AND EXCHANGE COMMISSION\nWashington, D.C. 20549\n\nOMB APPROVAL\nOMB Number: 3235-0063\n..."
},
{
"page": 2,
"text": "(2) Particular attention is directed to Regulation 12B which contains general requirements\n..."
}
],
"tables": [],
"warnings": [],
"error": null,
"source_url": "https://www.sec.gov/files/form10-k.pdf",
"retrieved_at": "2026-11-05T22:41:04+00:00"
}

A table, as found on page 14 of the IRS's Publication 15-T (wage bracket table, first two rows):

{
"page": 14,
"header": ["At least", "than", null, null, "The Tentative Withholding Amount is:", null, null],
"rows": [
["$0", "$155", "$0", "$0", "$0 $0", "$0", "$0"],
["$155", "$165", "$0", "$0", "$0 $0", "$0", "$1"]
],
"n_cols": 7
}
FieldMeaning
input_indexPosition in your input, 0-based (urls[input_index]; pdfBase64 comes after the URLs)
url, final_url, source_urlThe link you gave, where it ended after redirects, and the source to cite
file_size_bytes, page_countSize of the file and its total pages
pages_processed, pages_chargedPages read in this run, and pages you paid for (pages with text)
title, author, subject, creator, producerFrom the PDF's document info; null when not set
creation_date, modification_dateISO 8601 with the file's UTC offset
pages{page, text} per page read; text is null for pages without a text layer
tables{page, header, rows, n_cols}; header is the first row when it looks like one, else null; empty cells are null
warningsScanned pages, pages left out by maxPages, page numbers past the end
errorWhy a file failed (not charged); null on success

Input

{ "urls": ["https://www.sec.gov/files/form10-k.pdf"], "pages": "1-5,10", "extract": ["text", "tables"] }
FieldMeaning
urls1-20 public http(s) PDF links, up to 50 MB each
pdfBase64Or the file itself, base64 (Apify limits run input to a few MB, so use URLs for big files)
pagese.g. "1-5,10"; empty = all pages
extractAny of text, tables, metadata; default all three
maxPagesMost pages read per PDF, default 50 (caps the cost per PDF)
outputFormatmarkdown (default: ## headings, | tables |) or text (plain, tab-separated table rows)
timeoutSecsMost seconds of parsing per PDF, 5-600, default 120

Use with AI agents (MCP)

Agents can call this Actor as a tool through the Apify MCP server. Add this server URL to your MCP client (Claude, Cursor, VS Code, ...):

https://mcp.apify.com?tools=bosco_labs/pdf-to-data

It loads this Actor as a tool, plus the tools that read its results (get-actor-run, get-dataset-items). The hosted server signs you in with OAuth, or accepts your Apify token as Authorization: Bearer <APIFY_TOKEN>. On the default server (https://mcp.apify.com), agents can also find this Actor with search-actors and run it with call-actor.

Example prompt:

The agent passes:

{"urls": ["https://www.irs.gov/pub/irs-pdf/p15t.pdf"], "pages": "14", "extract": ["tables"]}

Output for agents: one JSON row per PDF with schema_version, source_url and a page number on every page and table, so the agent can cite where a value came from. Errors come back as a row with an error text, never as a crashed run.

Cost: $0.0005 per page with text, billed to the Apify account the MCP server is signed in with. Ask for the pages you need (pages) to keep answers small and cheap.

FAQ

Scanned PDFs? Pages that are only an image (scans, photos) have no text layer. They come back with text: null and a warning, and are not charged. OCR is not supported.

How good is table detection? Tables are found from aligned text: three or more lines in a row with two or more separate columns. Clean column layouts (price lists, statements, rate tables) work well. Limits: cells that wrap over several lines come out as extra rows; columns closer than about two characters merge into one cell; ruled tables are read from their text, not their lines; a table next to running text can pick up that text as a column. The page text always has everything, in reading order.

Which PDFs are refused? Links that are not http(s), hosts that resolve to private, local or cloud-metadata addresses (also after redirects), files over 50 MB, responses that are not a PDF (e.g. a login page), password-protected and broken files. Each gives a row with an error and costs nothing.

What does a metadata-only run cost? One page per PDF (extract: ["metadata"]).

Are my files stored? No. Each PDF is downloaded into memory, parsed and dropped. Only the extracted data goes to your dataset; nothing from the document is logged.

Size limits? 50 MB per file, up to 500 pages per PDF per run (maxPages, default 50), and about 8 MB of output per PDF. A warning tells you which pages to ask for next.

Very complex or hostile PDFs? Each PDF is parsed in its own process with a time limit (timeoutSecs, default 120 s) and a memory limit. Pages are read until 3/4 of that time, then the rest gets a warning. A PDF that is still stuck at the limit (for example one page that inflates to tens of MB of drawing commands) is stopped and returns an error row ("PDF too complex"), costs nothing, and the other PDFs in the run are delivered as usual.

Speed? Measured locally: 19 text pages in 2 s, 20 pages of the EU GDPR in 5 s, 50 pages of IRS Publication 15 in 10-20 s (parsing time, download excluded).