PDF File Info API
Start building for free today – no credit card required.
Retrieve detailed PDF file information effortlessly with our API. Access metadata like name, author, version, file size, number of pages, and more. Perfect for analyzing, organizing, or managing your PDF documents programmatically.
Claude, ChatGPT, Cursor or your own agent can call
read-pdf-metadata directly.
Benefits of our PDF File Info API
Quickly access essential metadata for your PDFs with our PDF File Info API.
Retrieve details such as file name, author, version, file size, and page
count, giving you valuable insights into your documents. This feature
simplifies file organization and analysis, providing all the necessary
information at your fingertips and integrating smoothly into
your existing systems.
Read our API documentation to learn how to get PDF file infos.
Multi-language Code Example
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());
}
}
No-Code PDF File Info Reading
Integrate our PDF API with Zapier Webhooks to automate your PDF file info reading workflows effortlessly. Whether you're managing document libraries or tracking file details, you can trigger PDF file info reading from hundreds of apps supported by Zapier. Automatically retrieve metadata such as author, version, file size, and page count, streamlining your document management and reducing manual checks.
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, re-read, dropped on page 4 — you never see any of it. Share the PDFs you generate through Apdf recipient links, and every signal becomes something you can act on: ping Slack, update the CRM, let an agent follow up. Same account, same API token, one more call.
API · Webhook · MCP