# PDF Page Numbers API

> PDF Page Numbers stamps a page number on every page of a PDF, uploaded or fetched from a URL, and returns a download link to the numbered file. Choose the corner or edge and the font size. Paid plans can also set a label format such as Page 3 of 12, the starting number, and skip a cover page.

**Endpoint:** `POST https://api.apiverve.com/v1/pdfpagenumbers`  
**Category:** Documents  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/pdfpagenumbers

## Overview

Numbers are drawn in Helvetica as real PDF text, so the rest of the document is untouched. Rotated pages are handled, so the number sits in the chosen corner the right way up as the page is displayed. Each call accepts one PDF of up to 10 MB and 300 pages.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/pdfpagenumbers" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "pdf=@document.pdf" \
  -F "position=bottom-center" \
  -F "fontSize=10" \
  -F "format=Page {page} of {total}" \
  -F "startAt=1" \
  -F "skipFirst=false"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `pdf` | string | No | The PDF file to number (up to 10 MB and 300 pages), or a public PDF URL |
| `position` | string | No | Where to place the number. default bottom-center. One of: bottom-center, bottom-right, bottom-left, top-center, top-right, top-left |
| `fontSize` | number | No | Font size in points, from 6 to 36. default 10. range 6-36 |
| `format` | string | No | Label template containing {page}, and optionally {total}, such as Page {page} of {total}. Premium field |
| `startAt` | integer | No | Number for the first numbered page. range 0-100000. Premium field |
| `skipFirst` | boolean | No | Leave the first page (a cover) unnumbered. Premium field |

## Response fields

- `pdfName` — string · File name of the numbered PDF
- `pageCount` — number · Pages in the PDF
- `numberedPages` — number · Pages that received a number
- `position` — string · Where the numbers were placed
- `format` — string · The label template used
- `startAt` — number · The number given to the first numbered page
- `lastLabel` — string · The label on the last page, such as Page 12 of 12
- `size` — number · Size of the numbered PDF in bytes
- `expires` — number · When the download link expires (Unix time in milliseconds)
- `downloadURL` — string · Signed link to download the numbered PDF, valid for 2 days

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "pdfName": "5c9f95f9-9719-47c3-a923-be3bc1f1dc91.pdf",
    "pageCount": 2,
    "numberedPages": 2,
    "position": "bottom-center",
    "format": "Page {page} of {total}",
    "startAt": 1,
    "lastLabel": "Page 2 of 2",
    "size": 6218,
    "expires": 1792230037933,
    "downloadURL": "https://storage.googleapis.com/apiverve/APIData/pdfpagenumbers/5c9f95f9-9719-47c3-a923-be3bc1f1dc91.pdf?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1792230037&Signature=a2sCOtSuSIIEWobe8wq5iHcCdqlJMXhrHE9ewxXsf7qrNBK3NHtxrQYk%2Fn1Jpr08aQBVtJclbKX6CFqRigV2IL4suv%2F%2B8WF9LRX%2BhY%2Frhvkw9RfdydlsvALhpPxnxv547eShgBIsuwvEOPFry%2F1J%2FCvt3X%2BT8Iwpz9EtJJVKH8C3u8u26%2FlNjj7XcRCqx6hcVIWvkJEVuZfMQUjlcbtF4IOwvITwlIQW9ChPzMIlXdXu2amBIy9PinQoKsdVopBfTre4W%2BTH6%2BgynWlvnJAHmxM6mWdfLQxTjCyFzdT4ZmJuq%2BRM36d41N62KxiTGyP1cs0YJECt36nI3a7FTzUOrA%3D%3D"
  }
}
```

## Use cases

- **Generated Reports** — Number the pages of reports and exports produced by other tools that leave them unnumbered.
- **Legal and Compliance** — Add Page X of Y labels to contracts and filings before they are signed or submitted.
- **Merged Documents** — Number a document after merging several PDFs so the combined file reads as one.
- **Print and Publishing** — Paginate manuscripts, handouts and booklets, skipping the cover page.

## More

- Full reference: https://docs.apiverve.com/ref/pdfpagenumbers
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
