> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://docs.butterix.com/llms.txt
> - v0: https://docs.butterix.com/v0/llms.txt

> For the MDX source of any page, append .mdx to the page URL.
> For a complete documentation index, see https://docs.butterix.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.butterix.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.butterix.com/_biti/feedback/agent.

# 导出 Markdown

`GET /sites/{site}/export/markdown`

线上版本的 Markdown 压缩包：每页一个文件，带图片（合计 50 MB 以内，超出的保留线上地址），页面之间是相对链接。每个成员同时导出一个，十分钟内最多 10 次，整个组织最多 30 次。下载太慢会断开。

Base URL: https://api.butterix.com/v1

Authentication: bearer token in Authorization header or API key in cookie `biti_session`

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `site` | string | yes | 站点 slug 或 id |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `variant` | string | no | 语言与版本，取自可导出的内容里的 `key`，省略时用默认语言与默认版本 |
| `part` | string | no | 标签页或分组的 `id`，省略时导出全部 |

## Example request

```bash
curl https://api.butterix.com/v1/sites/acme-payments/export/markdown \
     -H "Authorization: Bearer <token>"
```

## Responses

### 200

压缩包

Content type: `application/zip`

Type: file

### Example response (200)

```json
"<file>"
```
