---
title: "Export Text"
method: GET
path: "/api/texts/{text_id}/export"
tags: ["texts", "exports"]
---

# Export Text

`GET /api/texts/{text_id}/export`

## Request

- Base URL: `https://fojin.app` (the document declares no server; this is the origin it was published from)
- URL: `https://fojin.app/api/texts/{text_id}/export`
- Auth: none declared

Export one sutra as a downloadable document (TXT / HTML / DOCX / EPUB).

将单部经典导出为可下载文档（纯文本 / 网页 / Word / EPUB 电子书）。
``juan`` 省略时导出全经，否则仅导出该卷。

## Path parameters

- `text_id` integer, required

## Query parameters

- `format` string: 导出格式：txt / html / docx / epub
- `juan` integer, nullable: 仅导出该卷；省略则导出全经

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform.md) · [All operations](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/revisions/969714238c61?raw)
