---
title: Extract PDF Metadata API
slug: extract-pdf-metadata
url: https://apyhub.com/sarvasoft/service/extract-pdf-metadata
provider: SARVASOFT OPC PRIVATE LIMITED
categories: [Ingestion Kit, Document Intelligence Kit]
tags: [pdf-metadata, document-properties, pdf-extraction, document-intelligence]
auth: api_key
version: 2.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Extract PDF Metadata API

Extract PDF metadata API: send a PDF by URL or base64 and get its title, author, producer and creation dates back as JSON. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/sarvasoft/extract-pdf-metadata/pdf/extract/metadata` | What it does Reads the document properties of a PDF sent by public URL or as Base64, and returns th… | 10 |

## Endpoint reference

### Extract metadata and document properties from a PDF

`POST https://api.eu.apyhub.com/sarvasoft/extract-pdf-metadata/pdf/extract/metadata` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `pdf_url` | body | string (uri) | no | Public URL of the PDF. Must be http or https. Provide exactly one of pdf_url or pdf_base64. Example: `https://assets.apyhub.com/samples/sample.pdf`. |
| `pdf_base64` | body | string | no | Base64-encoded PDF. The whole request body must be under 5 MB. Provide exactly one of pdf_url or pdf_base64. Example: `JVBERi0xLjQKJeLjz9MK...`. |

#### Quickstart

Read the document properties of a public PDF.

```bash
curl -X POST "https://api.eu.apyhub.com/sarvasoft/extract-pdf-metadata/pdf/extract/metadata" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"pdf_url":"https://assets.apyhub.com/samples/sample.pdf"}'
```

#### What you'll get back

Returns a JSON object with a `metadata` object holding the properties stored in the PDF.

```json
{
  "metadata": {
    "Title": "Invoice 1042",
    "Author": "SarvaPDF",
    "Producer": "Skia/PDF"
  }
}
```

## About

## What it does
The Extract PDF Metadata API reads the document properties stored inside a PDF and returns them as JSON. Send a PDF as a public `pdf_url` or a `pdf_base64` string, and get back a `metadata` object with fields such as `Title`, `Author`, `Subject`, `Keywords`, `Creator`, `Producer`, `CreationDate` and `ModDate`.

Send exactly one input per request. `pdf_url` must be a public http or https link. `pdf_base64` carries the file inline, and the whole request body must stay under 5 MB. The API returns only the fields the PDF contains, each as a string. A PDF with no title has no `Title` key.

Teams use the Extract PDF Metadata API to label files before indexing, check which tool produced a document, flag PDFs with a missing title or author, and record creation dates for audit trails.

It reads document properties only. It does not return page text, and password-protected PDFs return a `422` error.

To get the page text as well, pair it with the [Extract PDF Content API](https://apyhub.com/sarvasoft/service/extract-pdf-content). For photos and scans, the [Extract Image Metadata API](https://apyhub.com/apyhub/service/extract-image-metadata) reads EXIF data in the same way.

AI agents can call it through ApyHub MCP.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/sarvasoft/service/extract-pdf-metadata
