> 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.

# 导出 AI 提问记录

`GET /sites/{site}/questions.csv`

条件与提问记录相同，最多导出 10000 条。

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 |
|---|---|---|---|
| `days` | integer | no | 最近多少天，默认不限 |
| `before` | integer | no | 只要早于这个时间（Unix 毫秒）的 |
| `outcome` | string | no | 结果，多个用逗号分隔 |
| `rating` | enum | no | 读者的评价；`none` 为没有评价的 Allowed: `up`, `down`, `none`. |
| `sources` | enum | no | `none` 只返回没有引用任何来源的 Allowed: `none`. |
| `page` | string | no | 提问时所在的页面 |

## Example request

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

## Responses

### 200

CSV 文件

Content type: `text/csv`

Type: string

### Example response (200)

```json
"string"
```
