# PDF Text Extractor - Bulk URLs, Clean Text for AI, $1/1K (`dariandanciu/pdf-text-extractor-bulk`) Actor

Turn PDF links into clean text in bulk: full text, page count, title, author, dates and word count, as one row per document or one row per page. Made for RAG pipelines, AI agents and document search. Pay only for PDFs that were read.

- **URL**: https://apify.com/dariandanciu/pdf-text-extractor-bulk.md
- **Developed by:** [Darian Danciu](https://apify.com/dariandanciu) (community)
- **Categories:** AI, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 document or pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## PDF Text Extractor - Bulk URLs, Clean Text for AI, $1/1K

Turn **PDF links into clean text** in bulk: **full text, page count, title, author, dates and word count**, as one row per document or one row per page. Made for **RAG pipelines, AI agents and document search**.

### Why this one

- **$1 per 1,000 PDFs**, and less on paid plans. Documents over 100 pages are billed per page.
- **Bulk input.** Paste hundreds of links; each one is read on its own and a bad link never stops the run.
- **Per document or per page.** Page rows keep page numbers, so answers can cite the exact page.
- **Metadata included:** title, author, subject, keywords, creator, created and modified dates.
- **Ready for AI agents.** Clean text with no API key and no setup.
- **You only pay for PDFs that were read.** Dead links, scanned PDFs and password-protected files cost nothing.

### Input

| Field | Example |
|---|---|
| PDF links | `https://example.com/report.pdf` |
| Output | One row per document, or one row per page |
| Max pages per PDF | Only when splitting by page |

Every field is optional except **PDF links**.

### Output

One row per document. Example:

```json
{
    "source": "pdf",
    "url": "https://www.rfc-editor.org/rfc/pdfrfc/rfc2549.txt.pdf",
    "fileName": "rfc2549.txt.pdf",
    "title": null,
    "author": null,
    "pageCount": 6,
    "id": "https://www.rfc-editor.org/rfc/pdfrfc/rfc2549.txt.pdf",
    "subject": null,
    "keywords": null,
    "creator": null,
    "producer": "Aladdin Ghostscript 5.10",
    "createdAt": "2002-03-27T12:31:28.000Z",
    "modifiedAt": null,
    "sizeBytes": 7452,
    "words": 1187,
    "characters": 7688,
    "text": "Network Working Group D. Waitzman\nRequest for Comments: 2549 IronBridge Networks\nUpdates: 1149 1 April 1999\nCategory: Experimental\nIP over Avian Carriers with Quality of Service\nStatus of this Memo\nThis memo defines an Experimental Protocol for the Internet\ncommunity. It does not specify an Internet...",
    "searchQuery": "https://www.rfc-editor.org/rfc/pdfrfc/rfc2549.txt.pdf"
}
```

Each row also has `searchQuery`: the search that found it. A summary of the run (documents per search, the site's total
for each search, and any searches that failed) is saved as `RUN_SUMMARY` in the key-value store.

Export to JSON, CSV, Excel or HTML from the Output tab, or use the API.

### Use cases

- **RAG pipelines:** feed reports, manuals and papers into a vector database.
- **Document search:** make a folder of public PDFs searchable.
- **Research:** pull text from filings, papers and government reports.
- **AI agents:** give an agent a tool that reads any PDF link.

### Pricing

Pay per document. See the Pricing tab. Searches that fail are free.

### Good to know

- This Actor reads the text inside a PDF. Scanned PDFs have no text layer, so they are reported in `RUN_SUMMARY` and not charged; it does no OCR.
- Tables and multi-column layouts come back as plain text in reading order, without their grid.
- Files up to 60 MB. A document over 100 pages or 8 million characters comes back page by page, one charged row per page.
- Only public links work: nothing that needs a login.
- This Actor reads only the links you give it and keeps nothing after the run beyond your own dataset. Only process documents you are allowed to use.

### Feedback

Missing a field or a filter? Open an issue on the Issues tab.

### Related Actors

More search, seo and content scrapers by the same developer, with the same pay-per-result pricing:

| Actor | What it gets |
|---|---|
| [Pinterest Search Scraper](https://apify.com/dariandanciu/pinterest-search-scraper) | Pins, links, products and prices by keyword |
| [Google Trends Scraper](https://apify.com/dariandanciu/google-trends-scraper) | Interest over time, by region, related queries and trending searches |
| [Keyword Suggestions](https://apify.com/dariandanciu/keyword-suggestions-scraper) | Autocomplete keyword ideas from Google, YouTube, Bing and Amazon |
| [Google Play Scraper](https://apify.com/dariandanciu/google-play-scraper-all-in-one) | Google Play reviews, app details, search and developers |
| [Article Extractor](https://apify.com/dariandanciu/article-extractor-markdown) | Clean text and Markdown from any article URL |
| [Website Screenshot](https://apify.com/dariandanciu/website-screenshot) | Bulk full-page, mobile and PDF screenshots |
| [Domain Lookup](https://apify.com/dariandanciu/domain-lookup-whois-dns-ssl) | WHOIS/RDAP, DNS, SSL expiry and email security for many domains |
| [Events Scraper](https://apify.com/dariandanciu/events-scraper-eventbrite-meetup-luma) | Events from Eventbrite, Meetup and Luma in one format |
| [Telegram Channel Scraper](https://apify.com/dariandanciu/telegram-channel-scraper) | Public channel posts with views and reactions, no login |

# Actor input Schema

## `searches` (type: `array`):

One public PDF link per line.

## `maxResultsPerSearch` (type: `integer`):

Stop each PDF after this many documents.

## `splitBy` (type: `string`):

One row per PDF, or one row per page (useful for citations and chunking).

## `proxyConfiguration` (type: `object`):

Apify Proxy is recommended. If the site starts blocking, requests switch to residential proxies automatically.

## Actor input object example

```json
{
  "searches": [
    "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
  ],
  "maxResultsPerSearch": 10000,
  "splitBy": "document",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per document.

## `summary` (type: `string`):

Documents per search, and any searches that failed (not charged).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searches": [
        "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dariandanciu/pdf-text-extractor-bulk").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searches": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf"] }

# Run the Actor and wait for it to finish
run = client.actor("dariandanciu/pdf-text-extractor-bulk").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searches": [
    "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
  ]
}' |
apify call dariandanciu/pdf-text-extractor-bulk --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dariandanciu/pdf-text-extractor-bulk"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/l1ljoKGoOxtcTJE96/builds/wV8r13KlR5hAhgJ7x/openapi.json
