PDF to Text API: Extract Text from PDF URLs for AI and RAG
Pricing
from $3.50 / 1,000 pdf processeds
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
13 hours ago
Last modified
Categories
Features
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.
| Field | Example (default run) | Notes |
|---|---|---|
| url / finalUrl | https://www.rfc-editor.org/rfc/rfc9083.pdf | finalUrl after redirects |
| status / error | ok / null | error rows (free) say why a URL failed: HTTP 404, not a PDF, password-protected, too large |
| fileName / fileSizeBytes | rfc9083.pdf / 524826 | |
| pageCount / pagesExtracted | 81 / 81 | pagesExtracted is lower when maxPagesPerPdf is set |
| emptyPages / likelyScanned | 0 / false | likelyScanned is true when no page has a text layer (image-only scan) |
| title | RFC 9083: JSON Responses for the Registration Data Access Protocol (RDAP) | From the PDF metadata |
| subject / keywords | This document describes JSON data structures... | |
| creatorTool / producer | xml2rfc 3.8.0 / cairo 1.16.0 | Software that made the file |
| pdfVersion | 1.5 | |
| createdAt / modifiedAt | 2021-06-11T09:35:56Z | Converted to UTC ISO 8601 |
| isEncrypted | false | Files with an empty owner password are still read |
| charCount / wordCount | 104617 / 15999 | |
| text | --- page 1 ---\nRFC 9083\nJSON Responses for... | Full text with page markers |
| textTruncated | false | True when maxCharsPerPdf cut the text |
| scrapedAt | 2026-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:
likelyScannedandpageCounttell 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
statusbefore readingtext. - 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
maxFileSizeMbare 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.
- Greenhouse Jobs API: Lever and Ashby Job Board Scraper
- Remote Jobs Aggregator: Himalayas, Jobicy, Arbeitnow, Remote OK
- Shopify Products JSON Scraper: Full Store Catalog
- Website Tech Stack Detector: CMS, Analytics, Hosting, Pixels
If this Actor saved you time, a short review on the Store page helps other builders find it.