Logo
POST /api/pdf/metadata/read

PDF File Info API

Send a PDF URL and get its file info back as JSON — page count, page size, title, dates, PDF version and whether the file is encrypted.

  • Free plan
  • No credit card

Request

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

Look inside.
Without opening it.

Your app gets the answers without parsing the PDF itself. Text fields the file leaves empty come back as null.

example.pdf example
4 pages 216 KB PDF 1.4 Not encrypted
title "Example"
creator "apdf.io"
producer "Apdf/API"
created "Tue Jul 1 07:24:47 2024 CEST"
modified "Tue Jul 1 07:24:47 2024 CEST"
pages 4
encrypted false
page_size "595.92 x 841.92 pts (A4)"
file_size 221441
pdf_version "1.4"
The fields in the response
title
The document title, if one is set
creator
The app the document was made in
producer
The tool that wrote the PDF
created
When the file was created
modified
When it was last changed
pages
The number of pages
page_size
Width and height in points, e.g. A4
file_size
The size of the file in bytes
pdf_version
The PDF version the file declares
encrypted
Whether the file is encrypted

Know before you process.

Check every incoming PDF with one call, and let your code decide what happens to it next.

Check uploads

Turn away uploads that are encrypted, too long or the wrong page size before they reach the rest of your pipeline.

Page-based pricing

Count the pages of a print, scan or translation job up front, and show the price before the customer checks out.

Searchable archives

Store title, dates and page count next to every file in your archive, so users can sort and filter without opening one.

Pick the next step

See whether a file is encrypted before you process it, and send it through the unlock step first when it needs one.

Inspect from anywhere.

Read the file info right where 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/metadata/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.

Get PDF Metadata
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 metadata
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-metadata
See what agents can do

1,000 file checks
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

PDF file info, answered

No. The response covers title, creator and producer, but not author, subject or keywords.
Yes, you get encrypted: true and the file size. If the file asks for a password before it opens, the other fields come back as null or 0, so take the password off with the PDF Password API first.
As text, the way the PDF tools print them, for example Tue Jul 1 07:24:47 2024 CEST, time zone included. Parse them on your side if you need a timestamp.
page_size describes the first page. A document that mixes sizes, like a portrait report with landscape appendices, is not broken down page by page.
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

Know what is inside
every PDF you get.