---
title: "Export all studies of a user"
method: GET
path: "/api/study/by/{username}/export.pgn"
tags: ["Studies"]
---

# Export all studies of a user

`GET /api/study/by/{username}/export.pgn`

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

## Path parameters

- `username` string, required

## Query parameters

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

## Response `200`

The studies of the user.

---

[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)
