PlainRows

PDF to Markdown API & Converter: PDF to Text for AI Agents, RAG

PDF to markdown converter and MCP tool for AI agents and RAG: give PDF URLs, get clean Markdown with headings, page texts, title, author and word count. Text-layer PDFs only, no OCR. Pay $0.003 per PDF converted (up to 30 pages), $0.0001 per extra page, plus a small start fee per run.

Try it on Apify   Actor status

Typical uses

Pricing

Pay per use, no subscription, no monthly fee. The price depends on your Apify plan. Apify's free plan includes $5 of usage every month.

You pay perFree planStarterScaleBusiness
PDF converted
One PDF downloaded and converted to Markdown from its text layer, up to 30 pages included. Scanned PDFs without text, unreadable or password-protected files, files over 50 MB, non-PDFs and URLs that fail (404, timeout) are free.
$0.003$0.003$0.003$0.003
Extra page
Each converted page beyond the 30 included in a PDF (only when maxPagesPerPdf is above 30 and the PDF is longer).
$0.0001$0.0001$0.0001$0.0001
Actor Start
Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event).
$0.002$0.002$0.002$0.002

Run it from your code

Get an API token in the Apify Console (Settings → Integrations), then:

curl -X POST \
  "https://api.apify.com/v2/acts/plainrows~pdf-to-markdown/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "urls": [
    "https://arxiv.org/pdf/1706.03762",
    "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
  ]
}'
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("plainrows/pdf-to-markdown").call(run_input={'urls': ['https://arxiv.org/pdf/1706.03762',
          'https://www.irs.gov/pub/irs-pdf/fw9.pdf']})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row)

Use it in automations and AI agents

Full documentation, input options and output fields: https://apify.com/plainrows/pdf-to-markdown