Logo
POST /api/pdf/content/read

Extract PDF Content API

Send a PDF URL and get its text back as JSON — one entry per page, each with a character count. Made for search indexes, RAG pipelines and LLM prompts.

  • Free plan
  • No credit card

Request

curl -X POST https://apdf.io/api/pdf/content/read \
  -H "Authorization: Bearer TOKEN" \
  -d file="FILE_URL"

Every page.
Its own text.

The response keeps the text split by page, in page order. Pages without any text still show up, with zero characters.

In the PDF
PDF

Portable Document Format (PDF), standardized as ISO 32000 ...

1
Extract
In the response
1 PDF
2 Portable Document Format (PDF), standardized as
3 ISO 32000 ...
"characters": 2398
page 1 · 2,398 chars page 2 · 2,900 chars page 3 · 3,344 chars
pages_total 3 · characters_total 8,642
What you get back
pages_total
Number of pages in the file
characters_total
Characters across the whole document
page
Page number, starting at 1
characters
Characters on that page
content
The page as plain text, line breaks kept

Text your code can use.

A PDF is made for reading, not for processing. Extract the text once and hand it to whatever comes next.

Search indexes

Index every page of the PDFs your users upload, so a search hit can point straight to the page it came from.

RAG and LLM prompts

Feed documents to a model page by page, and use the character counts to keep each chunk inside the context window.

Invoice and order intake

Pull the text out of supplier invoices and order PDFs, then parse the numbers and dates your workflow needs.

Archives and reviews

Keep a plain text copy next to every stored PDF, so contracts and reports stay searchable and quick to review.

Extract from anywhere.

Pull the text out wherever your PDFs arrive. One account and one monthly allowance behind every route.

Your code

One authenticated POST from any language. Copy-paste samples in cURL, Node.js, Python and more.

POST /api/pdf/content/read
Open the endpoint docs
Zapier

Pick the action in any Zap and map files from earlier steps. No code and no servers to run.

Extract PDF Text
Use it in Zapier
n8n

Add the Apdf node to any workflow, on n8n Cloud or self-hosted, and chain it with your automation.

Read PDF content
Use it in n8n
AI agents

Let Claude, ChatGPT, Gemini or your own agent run it through the MCP server, on any paid plan.

read-pdf-content
See what agents can do

1,000 text extractions
a month. Free.

Start on the free plan and move up only when your volume does — up to 1,000,000 operations a month on Business.

  • One call is one operation, however many pages.
  • Only calls that do the work are counted.
  • Hard limits, so no surprise overage charges.
Plan PDF operations / month
Hobby Free
$0 / month
1,000
Pro
$39–$99 / month
20,000 – 60,000
Business
$149–$899 / month
100,000 – 1,000,000

Extracting PDF text, answered

A scanned page is a picture of text, so there is nothing to extract and it comes back empty. Use OCR text extraction for scans: it recognizes the words first and returns the same JSON.
No. You get the plain text of each page with its line breaks, without fonts, positions or table cells. That keeps it simple to index, parse or pass to a model.
The call always returns every page. Pick the entries you need from the pages array, or cut the file down first with Extract pages.
Yes, the text is in the response. For long documents you can send async=1 to get a job ID instead, then check the job status endpoint or pass a webhook_url to have the result posted to you.
As a URL: Apdf downloads the file, up to 100 MB. In Zapier and n8n you can map the file from an earlier step instead.
After the API call

Your code made the PDF.
Then it went dark.

Opened, read, signed or ignored — you never see any of it. Send the PDFs you generate as personal links, and every open, page read, comment and signature comes back to your software as a webhook. Need it signed? Same link. Same account, same API key, one more call.

Your PDF, after sending Live
document:loaded CFO
page:read p4 · 38s
signature:signed 11:48

API · Webhook · MCP

Get the text out
with one API call.