PDF RAG Extractor - Markdown and chunks for PDFs avatar

PDF RAG Extractor - Markdown and chunks for PDFs

Pricing

from $2.10 / 1,000 processed pdfs

Go to Apify Store
PDF RAG Extractor - Markdown and chunks for PDFs

PDF RAG Extractor - Markdown and chunks for PDFs

Extract Markdown and RAG chunks from PDF URLs you provide. Includes the document URL, page text and chunk text. Public PDF files, with a per-document charge and a per-page charge. The prefilled sample is the quick default run. Results as JSON, CSV or Excel. Access through API or MCP.

Pricing

from $2.10 / 1,000 processed pdfs

Rating

0.0

(0)

Developer

Muhammet Mustafa Dincer

Muhammet Mustafa Dincer

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

21 days ago

Last modified

Features

Limited permissions

Share

🤖 What does the PDF RAG extractor do?

A PDF RAG extractor reads Markdown and RAG chunks from PDF URLs you provide. It can collect:

  • Markdown and RAG chunks from PDF URLs you provide
  • the document URL, page text and chunk text
  • A saved baseline when the source compares the next run
  • JSON, CSV or Excel from the dataset
  • The same run through the Apify API or MCP

💡 Why use the PDF RAG extractor?

People use a PDF RAG extractor when the same public page would otherwise be checked by hand.

  • Watch a change. The Actor keeps a baseline and writes the next difference.
  • Feed a sheet. The dataset opens as JSON, CSV or Excel.
  • Call it from code. The Apify API runs the same input.
  • Hand it to an agent. Apify MCP can call the Actor with that input.
  • Stay on the sample. The prefilled input is the short, cheap run.

🚀 How do you run the PDF RAG extractor?

  1. Open this Actor and click Try for free.
  2. Keep the prefilled sample, or set the prefilled fields.
  3. Leave the other fields on their defaults unless you need a narrower run.
  4. Click Run.
  5. Open the Dataset tab and download JSON, CSV or Excel.

Sample input from the prefilled schema:

{
"urls": [
"https://arxiv.org/pdf/1706.03762",
"https://css4.pub/2015/textbook/somatosensory.pdf"
],
"mode": "both",
"chunkSize": 512,
"chunkOverlap": 64,
"startPage": 1,
"maxPages": 0,
"includeMarkdown": true,
"includePages": false,
"maxDocuments": 100,
"maxFileSizeMb": 100,
"maxChunksPerDocument": 2000,
"requestsPerSecond": 2,
"proxyConfiguration": {
"useApifyProxy": false
}
}

⚠️ What limits does this Actor have?

The input schema is the limit. Defaults and prefills are unchanged by this copy update.

  • urls: at most 100 items.
  • chunkSize: maximum 4096, minimum 64.
  • chunkOverlap: maximum 2048, minimum 0.
  • startPage: maximum 2000, minimum 1.
  • maxPages: maximum 2000, minimum 0.
  • maxDocuments: maximum 100, minimum 1.
  • maxFileSizeMb: maximum 100, minimum 1.
  • maxChunksPerDocument: maximum 2000, minimum 10.
  • requestsPerSecond: maximum 10, minimum 0.2.
  • Actor Start is priced in the table. The other events are billed only when the source charges them and the charge is accepted.
  • A spending limit that cannot pay for the next event stops that event. The source does not invent a result to replace it.

💳 How much does the PDF RAG extractor cost?

The table is the live pay-per-event price list (pricingInfos) for this Actor. It is not a guessed price.

EventWhat the price list calls itFreeBronzeSilverGoldPlatinumDiamond
apify-actor-startActor Start$0.001$0.001$0.001$0.001$0.001$0.001
pdf-processedProcessed PDF$0.003$0.0027$0.0024$0.0021$0.0021$0.0021
page-processedProcessed page$0.00008$0.000072$0.000064$0.000056$0.000056$0.000056

One Free-plan run that bills one pdf-processed plus Actor Start is $0.001 + $0.003 = $0.004. 1,000 pdf-processed events on the Free plan are $3.00, before Actor Start. These figures use only the live prices in the table.

apify-actor-start is in the live price list. Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). The source names pdf-processed and charges it with Actor.charge when that event happens. One PDF that was downloaded, parsed and had text extracted. Scanned PDFs without a text layer, failed downloads, password-protected and corrupt files are not charged. The source names page-processed and charges it with Actor.charge when that event happens. One page of text extracted. Charged per page read, so a long document costs more than a one-page letter, and pages outside your page range are never charged. Chunk size does not change the price.

📝 What input does this Actor take?

Required fields are marked. Defaults and prefills are the quick run; this text does not change them.

FieldRequiredWhat it means
urls (PDF URLs)NoDirect links to PDF files, one per line. Up to 100 per run. The link must return the file itself ...
datasetId (Read PDF links from a dataset)NoOptional. Pick an Apify dataset whose items contain PDF links. The Actor looks for pdfUrl</...
mode (What to return)NoDocument and chunks writes one document row plus its chunk rows. Chunks only skips ...
chunkSize (Chunk size (tokens))NoToken budget per chunk, counted with the cl100k_base tokenizer that OpenAI embedding and chat mod...
chunkOverlap (Chunk overlap (tokens))NoHow much text from the end of one chunk is repeated at the start of the next, so an answer that s...
startPage (First page)NoStart reading at this page (1-based). Useful when the first pages are a cover and a table of cont...
maxPages (Maximum pages per PDF)NoStop after this many pages. 0 means the whole document. A 400-page manual you need t...
includeMarkdown (Include Markdown)NoAdd the markdown field to the document row: headings, paragraphs and lists rebuilt f...
includePages (Include per-page text)NoAdd a pages array with the text of every page. Off by default because the Markdown f...
maxDocuments (Maximum PDFs per run)NoUpper bound on how many PDF links are processed in one run, applied after the list and the datase...
maxFileSizeMb (Maximum file size (MB))NoSkip a PDF larger than this instead of downloading it. Larger files are usually scans or image-he...
maxChunksPerDocument (Maximum chunks per PDF)NoSafety cap on chunk rows for one document. A very small chunk size on a very long document would ...
requestsPerSecond (Requests per second)NoHow fast PDFs are downloaded. 2 is a polite default; lower it to 1 when all files come from one s...
proxyConfiguration (Proxy configuration)NoOptional. The Actor downloads public PDF links directly, which works for most sites; use Apify Pr...

📊 What output does this Actor return?

The dataset schema names every stored field.

FieldWhat the schema says
recordTypeRow kind: document (one per PDF, always written) or chunk (one per to...
urlThe PDF link exactly as it was requested. Stable between runs, so it ...
finalUrlDocument rows only: the URL after redirects. Differs from url when th...
statusDocument rows only: processed (text was extracted and charged), empty...
failureReasonDocument rows only, when status is not processed: invalid_url, not_pd...
messageDocument rows only: a sentence that explains a failure or an empty do...
pageCountPages in the PDF, including pages outside the requested range.
pagesExtractedPages actually read and charged for.
pageStartFirst page in this row: the first extracted page on a document row, t...
pageEndLast page in this row. Together with pageStart this is the citation f...
charCountCharacters of extracted text in this row.
wordCountWords in the extracted text (document rows only).
tokenCountTokens in the Markdown (document) or in text (chunk), counted with th...
chunkCountHow many chunk rows this document produced. Zero in document mode.
hasTextLayerFalse when the PDF is a scan with no text at all. The document is the...
titleTitle from the PDF metadata, not from the first line of text.
authorAuthor from the PDF metadata.
subjectSubject from the PDF metadata.
keywordsKeywords from the PDF metadata, as one string.
creatorProgram that created the source document.
producerProgram that produced the PDF file.
creationDateCreation date from the PDF metadata, normalised to ISO 8601. Null whe...
modDateModification date from the PDF metadata, normalised to ISO 8601.
fileSizeBytesSize of the downloaded file.
contentTypeContent-Type header the server sent.
markdownDocument rows only: the whole document as Markdown with headings, par...
pagesDocument rows only, when Include per-page text is on: one object per ...
durationMsDownload plus parse time for this document.
fetchedAtWhen the document row was written, in ISO 8601.
documentTitleChunk rows only: the document title from the PDF metadata, so a chunk...
chunkIndexChunk rows only: position of the chunk in its document, starting at 0.
textChunk rows only: the chunk text, which is what an embedding model sho...
headingsChunk rows only: the nearest heading and any headings inside the chun...
isPartialChunk rows only: true when a paragraph had to be cut on a sentence or...

One record from assets/sample-run-data.json shipped with this Actor, shortened where a string is long.

{
"chunkIndex": 0,
"pageStart": 1,
"pageEnd": 1,
"tokenCount": 163,
"headings": [
"Attention Is All You Need",
"Abstract"
],
"isPartial": false,
"text": "Provided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works.\n\n# Att..."
}

🔌 How do you call this Actor from the API?

Call mmdincer/pdf-rag-extractor with the Apify API. The body is the input schema. MCP clients on Apify use the same input. Make and Zapier can start the Actor through Apify's integration. The input is the same JSON.

from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("mmdincer/pdf-rag-extractor").call(run_input={"urls": ["https://arxiv.org/pdf/1706.03762", "https://css4.pub/2015/textbook/somatosensory.pdf"], "mode": "both", "chunkSize": 512, "chunkOverlap": 64, "startPage": 1, "maxPages": 0, "includeMarkdown": true, "includePages": false, "maxDocuments": 100, "maxFileSizeMb": 100, "maxChunksPerDocument": 2000, "requestsPerSecond": 2, "proxyConfiguration": {"useApifyProxy": false}})
items = client.dataset(run["defaultDatasetId"]).list_items().items
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: "<APIFY_TOKEN>" });
const run = await client.actor("mmdincer/pdf-rag-extractor").call({"urls": ["https://arxiv.org/pdf/1706.03762", "https://css4.pub/2015/textbook/somatosensory.pdf"], "mode": "both", "chunkSize": 512, "chunkOverlap": 64, "startPage": 1, "maxPages": 0, "includeMarkdown": true, "includePages": false, "maxDocuments": 100, "maxFileSizeMb": 100, "maxChunksPerDocument": 2000, "requestsPerSecond": 2, "proxyConfiguration": {"useApifyProxy": false}});
const { items } = await client.dataset(run.defaultDatasetId).listItems();

❓ What else should you know?

Does the PDF RAG extractor need a login?

The sample run uses the public source and the prefilled input. A field that asks for your own key is optional unless the input schema marks it required.

What does the PDF RAG extractor charge for?

The primary event in the live price list is pdf-processed (Processed PDF). Actor Start is separate. An event the source does not call is not billed by the source.

Can this Actor run on a schedule?

Yes. Save the input and schedule it. The next run compares against the baseline when the source stores one.

Where do the results go?

Results land in the run dataset. Download JSON, CSV or Excel, or read them with the API.

You are responsible for the source terms and for privacy law that applies to you, including the GDPR if you handle personal data. This Actor stores the public fields described above. This Actor is not affiliated with this extractor.

Not affiliated with this extractor. Source license: Apache-2.0. Not affiliated with the PDF host.

Other public Actors from mmdincer in this group:

Download the dataset as JSON, CSV or Excel when the run finishes.

The same input can be saved and started again tomorrow.

A status row explains a page that was skipped or blocked.

Defaults and prefills stay the short sample, so the first run stays small.

The dataset schema is the list of columns in the download.

An empty optional filter leaves that filter unused.

The run page shows the log beside the dataset.

You can copy the input JSON into the API example above.

Keep the sample input when you only want to confirm the run.

Keep the sample input when you only want to confirm the run.

Keep the sample input when you only want to confirm the run.

Keep the sample input when you only want to confirm the run.

Keep the sample input when you only want to confirm the run.

Keep the sample input when you only want to confirm the run.

Keep the sample input when you only want to confirm the run.

Keep the sample input when you only want to confirm the run.

Keep the sample input when you only want to confirm the run.

Keep the sample input when you only want to confirm the run.