PDF to Text API for LLM & RAG – page by page – $1.50/1k avatar

PDF to Text API for LLM & RAG – page by page – $1.50/1k

Pricing

$1.50 / 1,000 extracted pdf

Go to Apify Store
PDF to Text API for LLM & RAG – page by page – $1.50/1k

PDF to Text API for LLM & RAG – page by page – $1.50/1k

Extract the text of public PDFs by URL for LLMs and RAG: full text plus text per page, title, author, dates, page and word counts. Text PDFs (no OCR). Fast HTTP, no browser. Works with AI agents via Apify MCP. $1.50 per 1,000 PDFs, no start fee; failed files are free.

Pricing

$1.50 / 1,000 extracted pdf

Rating

0.0

(0)

Developer

Henry Crawl

Henry Crawl

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 hours ago

Last modified

Features

Limited permissions

Share

PDF to Text API for LLM & RAG

Give it PDF links and get the text of every PDF back as JSON. You get the full text, the text of each page (so an LLM can cite page numbers), and the title, author, creation date, page count and word count. Built for AI agents, RAG pipelines and anyone who needs the words inside PDFs without running a parser.

  • $1.50 per 1,000 PDFs, any number of pages, and no start fee.
  • Error rows are free. You pay nothing for broken links, non-PDF pages, files that are too large, password-protected PDFs, or scanned PDFs with no text layer.
  • Fast plain HTTP with no browser. In our test on 1 Dec 2026, 51 PDFs (1-100 pages each, median 7) took 90-129 s in two runs at the default 2 GB memory (217 s at 1 GB); download speed of the hosts varies.

What you get per PDF

FieldMeaning
url, finalUrlThe link you gave and the address after redirects
textFull text of the PDF (pages separated by a blank line), cut at 2.5 MB of UTF-8 text (about 2.5 million English characters)
pages[]page, wordCount and text for each page, up to 2.5 MB of text in total (turn off with includePages: false)
title, author, subject, creator, producerDocument metadata when the file has it (often empty in LaTeX papers)
createdAt, modifiedAtDates from the PDF metadata (converted to UTC when the PDF states a time zone)
pageCount, pagesExtracted, emptyPages, wordCount, charCountSize of the document and how much text was found (word and character counts cover all extracted pages, even when text is cut)
encrypted, truncatedtruncated is true when maxPagesPerPdf or the size limit cut the text
fileSizeBytesSize of the downloaded file
type, status, errorresult/OK for extracted PDFs; error rows carry a code (see below)

Error codes (free): BAD_URL, DOWNLOAD_FAILED (with the HTTP status), TIMEOUT, NOT_PDF, TOO_LARGE, ENCRYPTED, PARSE_ERROR, OUTPUT_TOO_LARGE, INTERNAL_ERROR, NO_INPUT, and NO_TEXT (a scanned or image-only PDF; OCR is not included). Hosts that answer 429/5xx or time out are retried once.

Real output (IRS Form W-9, shortened)

{
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"finalUrl": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"fileSizeBytes": 140815,
"title": "Form W-9 (Rev. March 2024)",
"author": "SE:W:CAR:MP",
"subject": "Request for Taxpayer Identification Number and Certification",
"creator": "Designer 6.5",
"producer": "Designer 6.5",
"createdAt": "2024-03-06T08:18:13",
"modifiedAt": "2024-03-06T08:18:13",
"pageCount": 6,
"pagesExtracted": 6,
"emptyPages": 0,
"wordCount": 6279,
"charCount": 37694,
"encrypted": false,
"truncated": false,
"text": "Form W-9\n(Rev. March 2024)\nRequest for Taxpayer\nIdentification Number and Certification\nDepartment of the Treasury\nInternal Revenue Service Go to www.irs.gov/FormW9 for instructions and the latest information.\nGive form …",
"pages": [
{
"page": 1,
"wordCount": 933,
"text": "Form W-9\n(Rev. March 2024)\nRequest for Taxpayer\nIdentification Number and Certification\nDepartment of the Treasury\nInter …"
},
{
"page": 2,
"wordCount": 1349,
"text": "Form W-9 (Rev. 3-2024) Page 2\nmust obtain your correct taxpayer identification number (TIN), which\nmay be your social se …"
}
],
"type": "result",
"status": "OK",
"scrapedAt": "2026-12-01T01:22:59.051454+00:00"
}

Input

{
"urls": [
"https://arxiv.org/pdf/1706.03762",
"https://arxiv.org/pdf/2005.11401",
"https://arxiv.org/pdf/1810.04805"
],
"includePages": true,
"maxResults": 100
}
OptionDefaultNotes
urls—Direct links to PDF files. Duplicates are removed. A single link in url also works. If no link is given you get a free NO_INPUT row, except for a completely empty input, which runs the 11-PDF demo (charged as usual).
includePagestrueAdds the per-page list. Turn it off for a smaller output.
maxPagesPerPdf2000Reads at most this many pages (1-5000) of each file. You pay per PDF, not per page.
maxFileSizeMb50Larger files are skipped and return a free TOO_LARGE row (limit 1-100).
maxResults100Stops after this many successfully extracted (charged) PDFs.

Pricing

Pay per event: $0.0015 per extracted PDF ($1.50 per 1,000), with no start fee. Error rows are not charged. Your Apify spending limit for a run is respected: the actor stops before going over it.

Use with AI agents (MCP)

Add the Apify MCP server with this actor as a tool:

https://mcp.apify.com/?tools=henrycrawl/pdf-to-text

Your agent can then call it with a list of PDF URLs and read the text, citing pages from pages[].page. It works in Claude, Cursor, ChatGPT connectors and any MCP client, and you can also call it through the Apify API from n8n, Make or Zapier.

Limits and notes

  • Only text PDFs are supported. Scanned pages return NO_TEXT and you are not charged.
  • Layout is read as plain text: tables come out as lines of text, and multi-column pages may mix columns.
  • Only publicly reachable links work. The actor does not log in or get past paywalls or bot checks.
  • You are responsible for having the right to process the documents you send.

Questions or a PDF that extracts badly? Open an issue on this actor's page and we usually reply within 24 hours.