PDF to Text API: Extract Text from PDF URLs for AI and RAG avatar

PDF to Text API: Extract Text from PDF URLs for AI and RAG

Pricing

from $3.50 / 1,000 pdf processeds

Go to Apify Store
PDF to Text API: Extract Text from PDF URLs for AI and RAG

PDF to Text API: Extract Text from PDF URLs for AI and RAG

PDF to text API for AI agents and RAG: send PDF URLs, get clean text plus metadata: page count, title, dates, word count and page markers. One row per PDF, no browser, no OCR fees. Pay only for PDFs extracted; failed URLs are free.

Pricing

from $3.50 / 1,000 pdf processeds

Rating

0.0

(0)

Developer

Keel Data

Keel Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 hours ago

Last modified

Features

Limited permissions

Share

A PDF to text API for AI agents and RAG pipelines: send PDF URLs, get clean text with metadata: page count, title, subject, creation and modification dates, word count and page markers. One row per PDF, ready for LLM prompts, RAG chunking, search indexes or spreadsheets. No browser and no OCR engine, so runs are fast and cheap, and one flat price per PDF with no per-page fees.

What it returns

One row per PDF URL. The same 24 fields on every run, in the same order; missing values are null.

FieldExample (default run)Notes
url / finalUrlhttps://www.rfc-editor.org/rfc/rfc9083.pdffinalUrl after redirects
status / errorok / nullerror rows (free) say why a URL failed: HTTP 404, not a PDF, password-protected, too large
fileName / fileSizeBytesrfc9083.pdf / 524826
pageCount / pagesExtracted81 / 81pagesExtracted is lower when maxPagesPerPdf is set
emptyPages / likelyScanned0 / falselikelyScanned is true when no page has a text layer (image-only scan)
titleRFC 9083: JSON Responses for the Registration Data Access Protocol (RDAP)From the PDF metadata
subject / keywordsThis document describes JSON data structures...
creatorTool / producerxml2rfc 3.8.0 / cairo 1.16.0Software that made the file
pdfVersion1.5
createdAt / modifiedAt2021-06-11T09:35:56ZConverted to UTC ISO 8601
isEncryptedfalseFiles with an empty owner password are still read
charCount / wordCount104617 / 15999
text--- page 1 ---\nRFC 9083\nJSON Responses for...Full text with page markers
textTruncatedfalseTrue when maxCharsPerPdf cut the text
scrapedAt2026-11-22T22:31:47Z

The default run (IRS Form W-9, RFC 9083, a W3C test file) returns 3 rows: 6, 81 and 1 pages.

Use cases

  • RAG and AI agents: feed reports, filings, manuals and papers into a vector store; split on --- page N --- to keep page citations.
  • Document monitoring: schedule a run on a list of PDFs (price lists, policies, forms) and diff the text.
  • Bulk research: pull text and dates from hundreds of public PDFs into one dataset or spreadsheet.
  • Triage: likelyScanned and pageCount tell you which files need OCR before you pay for it elsewhere.

Pricing

Pay per result: $0.0035 per PDF extracted, whatever its page count. 1,000 PDFs = $3.50. URLs that fail (404, not a PDF, too large, password-protected) are listed for free and never charged. Set maxItems to cap spend.

Input

Runs with zero configuration (defaults are filled in). Main field: pdfUrls, a list of direct PDF links. Options: maxPagesPerPdf (first N pages only), pageSeparator (pageMarker, formFeed or blankLine), maxCharsPerPdf (truncate long documents to keep LLM context small), maxFileSizeMb (default 50), includeFailedUrls, respectRobotsTxt, maxConcurrency, useApifyProxy, maxItems.

For AI agents (Apify MCP)

  • Call with {"pdfUrls": ["https://example.com/report.pdf"], "maxCharsPerPdf": 20000}.
  • Output is a flat JSON array; the field list above is exhaustive and stable. Check status before reading text.
  • A run summary is saved to the key-value store record RUN_SUMMARY (PDFs extracted, failed URLs with reasons, robots.txt skips).

Limits

  • Text-layer PDFs only. Scanned image PDFs return empty text with likelyScanned: true; there is no OCR.
  • Reads only the URLs you supply; it does not crawl pages to find PDFs, and it skips URLs whose host's robots.txt disallows them (can be turned off for files you own).
  • Password-protected PDFs are reported as failed. Files above maxFileSizeMb are skipped.
  • Tables come out as plain text in reading order; no table structure.
  • The PDF Author field is not returned.

FAQ

Is it legal? It downloads only the public URLs you provide, honors robots.txt by default, and returns document text and technical metadata. You are responsible for having the right to use the documents you process. Does it need a login or proxies? No. It cannot open files behind a login. Proxy is off by default and only needed if a host rate-limits you. What if it breaks? It is health-tested every day and fixed the same day. Open an issue on the Issues tab and it is answered within 24 hours.

More from Keel Data

Tested daily; failures are fixed the same day.

If this Actor saved you time, a short review on the Store page helps other builders find it.