---
title: Rotate PDF Pages API
slug: rotate-pdf-pages-api
url: https://apyhub.com/freedailypro/service/rotate-pdf-pages-api
provider: FreeDailyPro
tags: [rotate, pdf]
auth: api_key
version: v1
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Rotate PDF Pages API

Rotate one or more PDF pages by 90, 180, or 270 degrees with a simple API. Send a PDF and a page-to-degrees map, get the rotated PDF back.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/rotate-pdf-pages-api/rotate` | What it does Rotates one or more pages in an uploaded PDF according to the page-to-degrees mapping… | 10 |

## Endpoint reference

### Rotate PDF pages

`POST https://api.eu.apyhub.com/freedailypro/rotate-pdf-pages-api/rotate` · 10 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | The PDF. Up to 20 MB. |
| `rotations` | body | string | yes | JSON object: 1-based page number to degrees, for example {"1":90,"2":180} |

#### Quickstart

Rotate selected pages in a PDF by uploading the file and a page-to-degrees mapping.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/rotate-pdf-pages-api/rotate" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/file.pdf" \
  -F "rotations={\"1\":90,\"2\":180}"
```

#### What you'll get back

Returns a binary file response (`string` with `format: binary`), which is the rotated PDF document.

## About

## What it does
PDF Page Rotator lets you rotate one or more pages in a PDF and download the updated file. Send the PDF as binary data, plus a `rotations` JSON object that maps 1-based page numbers to degrees such as `90`, `180`, or `270`.

Use it when a scan was saved sideways, when a few pages were imported with the wrong orientation, or when you need to normalize documents before sharing or archiving them. You control exactly which pages are changed, so a single request can fix an entire file or just the pages that need adjustment.

The input is a PDF file up to 20 MB and a rotation map in the request body. The response is the rotated PDF as a binary file, ready to store, forward, or send into the next step of your document workflow.

If your application handles uploads, document cleanup, or PDF preparation, PDF Page Rotator gives you a simple transformation step without requiring a desktop PDF editor.

## 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/freedailypro/service/rotate-pdf-pages-api
