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"
const data = new FormData();
data.append('file', 'FILE_URL');
fetch('https://apdf.io/api/pdf/metadata/read', {
headers: {'Authorization': 'Bearer TOKEN'},
method: 'POST',
body: data
})
.then(response => response.json())
.then(json => console.log(json));
use GuzzleHttp\Client;
$client = new Client();
$response = $client->post(
'https://apdf.io/api/pdf/metadata/read', [
'headers' => [
'Authorization' => 'Bearer TOKEN'
],
'form_params' => [
'file' => 'FILE_URL'
]
]);
$body = $response->getBody();
echo json_encode($body->getContents());
require 'rest-client'
response = RestClient.post(
'https://apdf.io/api/pdf/metadata/read',
{
'file' => 'FILE_URL'
},
{
Authorization: "Bearer TOKEN"
}
)
puts response.body
import requests
response = requests.post(
'https://apdf.io/api/pdf/metadata/read',
headers = {
'Authorization': 'Bearer TOKEN'
},
data = {
'file': 'FILE_URL'
}
)
print(response.text)
import (
"fmt"
"github.com/go-resty/resty/v2"
)
func main() {
client := resty.New()
data := map[string]string{
"file": "FILE_URL"
}
resp, _ := client.R().
SetFormData(data).
SetHeader("Authorization", "Bearer TOKEN").
Post("https://apdf.io/api/pdf/metadata/read")
fmt.Println(resp.String())
}
import okhttp3.*;
class Pdf {
public static void main(String[] args) throws Exception {
OkHttpClient client = new OkHttpClient();
FormBody formBody = new FormBody.Builder()
.add("file", "FILE_URL")
.build();
Request request = new Request.Builder()
.url("https://apdf.io/api/pdf/metadata/read")
.addHeader("Authorization", "Bearer TOKEN")
.post(formBody)
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
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.
- 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.
One authenticated POST from any language. Copy-paste samples in cURL, Node.js, Python and more.
POST /api/pdf/metadata/read
Pick the action in any Zap and map files from earlier steps. No code and no servers to run.
Get PDF Metadata
Add the Apdf node to any workflow, on n8n Cloud or self-hosted, and chain it with your automation.
Read PDF metadata
Let Claude, ChatGPT, Gemini or your own agent run it through the MCP server, on any paid plan.
read-pdf-metadata
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.
PDF file info, answered
PDF metadata tutorials
Extract PDF Metadata for Document Management with Java
Read PDF metadata including page count, file size, author, and encryption status using Java. Build smarter document catalogs, enable advanced filtering, and detect protected files automatically for your document management system.
Extract PDF Content into Markdown Notes with an Agent
Stop pasting PDFs into chat windows: the agent pulls clean, page-numbered text over MCP and writes the vault-ready note itself — front matter, the headline stat with its page citation, and a section map. Weeks later, search-pdf-content retrieves the exact quote without re-reading anything.
Extract PDF Text for RAG Pipelines & LLMs with Python
This tutorial explains how to extract clean text from PDFs for RAG pipelines using the Apdf API in Python. It demonstrates replacing messy local libraries with an API that returns structured JSON, allowing developers to easily feed high-quality document data into OpenAI or vector databases.
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.
API · Webhook · MCP