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.
Typical uses
- RAG and knowledge bases: feed research papers, manuals, reports and documentation into a vector store as Markdown, page by page.
- AI agents (MCP): let an agent read a PDF it found on the web in one tool call.
- Summaries and extraction: give an LLM the Markdown of contracts, filings, datasheets or whitepapers.
- Search and archiving: index the full text of public PDFs with their page count and word count.
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 per | Free plan | Starter | Scale | Business |
|---|---|---|---|---|
| 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
- n8n, Make, Zapier: use the official Apify integration and pick the Actor
plainrows/pdf-to-markdown. - MCP (Claude, Cursor, other AI agents):
https://mcp.apify.com?tools=plainrows/pdf-to-markdown
Full documentation, input options and output fields: https://apify.com/plainrows/pdf-to-markdown