MCP + API · kestrel/pdf-to-excel-tables

PDF to Excel - Tables, XLSX Downloads & PDF转Excel

Extract tables from digital PDF URLs into Excel spreadsheets and XLSX downloads. One row per page with tables: cells, table count, page number, strategy and download URL. Choose ruled lines or text alignment. Free empty pages and ID/hash exclusions. PDF转Excel。 Scanned-table OCR is unsupported.

Open Actor Download MCP config

Connect this tool

Add this URL as a remote MCP server in your client, then sign in to Apify. For a client-specific setup, use Apify's configurator.

https://mcp.apify.com?tools=call-actor,fetch-actor-details,kestrel/pdf-to-excel-tables
Generic MCP client configuration
{
  "mcpServers": {
    "kestrel-pdf-to-excel-tables": {
      "url": "https://mcp.apify.com?tools=call-actor,fetch-actor-details,kestrel/pdf-to-excel-tables"
    }
  }
}

Understand the output before you run

Declared dataset fields and row types · Output locations and dataset links

Use the declared dataset schema for item fields; the output schema describes where results are stored. Optional fields may be null or absent. If an integration shows a sampled schema without an optional field, check this declaration, the Actor instructions and actual returned rows before concluding that the field is unsupported.

Inspect 14 declared output fields
FieldTypeMeaning
pageunspecifiedpage
total_pagesunspecifiedtotal pages
source_urlstringsource url
extractionunspecifiedextraction
tablesunspecifiedtables
table_countunspecifiedtable count
table_strategyunspecifiedtable strategy
idstringid
content_hashstringcontent hash
fetched_atstringfetched at
download_urlunspecifieddownload url
artifact_keyunspecifiedartifact key
artifact_bytesunspecifiedartifact bytes
artifact_sha256unspecifiedartifact sha256

Start with a small sample

Use call-actor with the JSON below. The $0.25 run ceiling is separate from the Actor input and may stop the sample early. Change the target to match your request. This input validates against build 1.0.6; it is not a promise that the source has matching rows today.

{
  "actor": "kestrel/pdf-to-excel-tables",
  "input": {
    "documentUrls": [
      "https://raw.githubusercontent.com/jsvine/pdfplumber/stable/examples/pdfs/background-checks.pdf"
    ],
    "startPage": 1,
    "maxPagesPerDocument": 3,
    "tableStrategy": "lines",
    "maxResults": 3
  },
  "callOptions": {
    "maxTotalChargeUsd": 0.25,
    "timeout": 300
  },
  "waitSecs": 30
}

After completion, use get-dataset-items with storages.datasets.default.id. If still running, poll get-actor-run using the returned runId. Check status rows and errors before treating an empty dataset as no matches.

Call from Python, JavaScript or REST

Python SDK 3 example · JavaScript SDK 2 example · curl + jq example. Each uses this same small input, reads APIFY_TOKEN from your environment, sets a five-minute run timeout and exports all dataset row types as JSON Lines. The $0.25 run ceiling is separate from the Actor input and may stop the sample early. Inspect the run and source status before treating results as complete. Installation and usage.

Pricing and limits

Current listed event prices in USD. Some Actors charge for successful source checks even when no output rows match. The event descriptions below define those differences.

EventUSD eachWhat is charged
result$0.02One delivered PDF page with tables: $20 per 1,000 rows. Row keys page, total_pages, source_url, extraction, tables, table_count, table_strategy. No start fee; compute and network included. Nested data and any documented file included. Empty extractions, duplicates, exclusions and failures without delivered rows are free. Invalid-syntax email, DNS NXDOMAIN and RDAP not-found diagnostic rows are billed where applicable. Stops at maxTotalChargeUsd (run option, not input); partial failures retain delivered row charges.

Contracts for agents

Public contract checked 2026-11-11. Active build: 1.0.6. Refresh live details before a large or recurring run.