---
title: "Export all chapters"
method: GET
path: "/api/study/{studyId}.pgn"
tags: ["Studies"]
---

# Export all chapters

`GET /api/study/{studyId}.pgn`

Download all chapters of a study in PGN format.
If authenticated, then all public, unlisted, and private study chapters are read.
If not, only public (non-unlisted) study chapters are read.

## Path parameters

- `studyId` string, required

## Query parameters

- `clocks` boolean
- `comments` boolean
- `variations` boolean
- `orientation` boolean

## Response `200`

The PGN representation of the study.

---

[API](https://skmtc.net/lichess/apis/lichess-org-api-reference.md) · [All operations](https://skmtc.net/lichess/apis/lichess-org-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lichess/lichess-org-api-reference/versions/1425db81eb3b/schema)
