PDF Page Count API — Count Pages in a PDF Document
Get the page count and metadata of any PDF document. Upload via multipart POST. Free API.
What is PDF Page Counting?
PDF page counting reads a PDF document and returns the total number of pages along with metadata including PDF version, file size, title, author, and whether the PDF is encrypted or linearized.
How to Use It
POST to /api/v1/pdf-page-count with a multipart/form-data file upload. Returns { pages: number, version: string, file_size: number, title: string | null, author: string | null, encrypted: boolean }.
Try it live
Test this endpoint in the interactive console
Open Console →
Frequently Asked Questions
What is the maximum file size?
The free tier supports PDF files up to 10MB. Larger files may require an API key for higher limits.