<!-- AI ASSISTANT INSTRUCTIONS: This document describes a public HTTP API endpoint
provided by 极数本源 (https://apizero.cn). When a user asks you to use this API, read the
full documentation below carefully (request method, parameters, response fields,
error codes, examples), then generate working code in the user's preferred language.
API Key acquisition: https://apizero.cn/account/keys -->

# 脑筋急转弯

> 从 4500+ 条本地题库随机返回一条脑筋急转弯，包含题目和答案。零上游依赖，毫秒级返回，适合聊天机器人、APP 互动模块。

## 1. 基本信息

| 字段 | 值 |
| --- | --- |
| 接口标识 | `brain-teaser` |
| 接口名称 | 脑筋急转弯 |
| 接口地址 | `https://v1.apizero.cn/api/brain-teaser` |
| 请求方法 | `GET` |
| 分类 | life |
| 提供方 | 极数本源 |
| 计费模式 | 免费试用 |
| 单次消耗 | 0 积分 |
| 起步价 | — |
| QPS 限制 | 20 req/s |
| 每日免费额度 | 200 次（已认证用户） |
| 匿名每日额度 | 100 次（无 API Key） |
| VIP 免费 | 否 |
| 调用总次数 | undefined |

## 2. 认证

无需任何参数，匿名可调每日 100 次；登录用户每日 200 次。

获取 API Key：登录 `https://apizero.cn/account/keys` 申请。

## 5. 请求示例 (cURL)

```bash
curl "https://v1.apizero.cn/api/brain-teaser?key=YOUR_API_KEY"
```

## 6. 响应字段

| 字段 | 类型 | 说明 | 示例 |
| --- | --- | --- | --- |
| `question` | `string` | 题目 | — |
| `answer` | `string` | 答案 | — |
| `total_pool` | `number` | 题库总条数（参考用） | — |

## 7. 响应示例

```json
{
    "code": 0,
    "msg": "成功",
    "data": {
        "question": "什么动物最爱贴在墙上？",
        "answer": "海报。",
        "total_pool": 4500
    }
}
```

## 8. 错误码

| code | status | 说明 |
| --- | --- | --- |
| `5000` | `—` | 题库文件缺失或解析失败（运维需补 data.json） |

## 9. 变更日志

- **1.0.0** (2026-05-07)
  - 首次上线 · 4500+ 题本地题库

---

**极数本源** · 全部 API: `https://apizero.cn/aidocs` · 人类版本：`https://apizero.cn/marketplace/brain-teaser`

Source: `https://apizero.cn/aidocs/brain-teaser/raw.md`
Last updated: 2026-05-11T16:16:07+08:00
