# getpdfinfo: Get PDF Info – Page Count and Metadata

> getpdfinfo (Get PDF Info – Page Count and Metadata) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/getpdfinfo, 1 credit per call. It works as a ready-made module in Make or as a plain HTTP call.

Returns the number of pages, the size and rotation of every page and the metadata (title, author, subject, keywords, creator, producer, dates) of a PDF, and whether it is encrypted.

- Group: Files & PDF
- Endpoint: `POST https://api.1001fx.com/files/getpdfinfo`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 1 credit per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/getpdfinfo

## Parameters

- `file` (file, optional) – File: The PDF. Either file or fileUrl.
- `fileUrl` (string, optional) – File URL: Public URL of the PDF. Either file or fileUrl.

## Example: Get PDF Info – Page Count and Metadata

```bash
curl -X POST 'https://api.1001fx.com/files/getpdfinfo' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'
```
