答案之书
提供随机获取中英文答案功能,答案涵盖人生、情感、事业等多方面指引。
项目用途
支持以下内容:
- 随机答案:返回中文
chinese与英文english答案。 - 多种场景:适合情感问答、决策指引、事业选择等多种场景。
基本信息
| 项目项 | 内容 |
|---|---|
| 基础域名 | https://chart.12sign.top |
| 内容类型 | application/json |
| 请求方式 | POST |
| 答案数量 | 2168 条(4种type) |
对外 API
答案之书 API
| 项目 | 内容 | 说明 |
|---|---|---|
| 接口地址 | https://chart.12sign.top/answerbook |
随机获取一个答案。 |
| 请求方式 | POST |
需要传入 type 参数。 |
请求体示例:
{
"type": "web"
}
type 可选值:
| type 值 | 答案数量 | 说明 |
|---|---|---|
web |
1120 | 网络收集的答案(默认) |
The Book of Answers |
350 | The Book of Answers 经典版 |
The Literary Book of Answers |
349 | 文学作品答案(含 writer, source) |
The Movie Book of Answers |
349 | 电影台词答案(含 writer, source) |
返回示例(type=web):
{
"code": 200,
"msg": "success",
"data": {
"id": 783,
"chinese": "泡沫",
"english": "Foam",
"type": "web"
}
}
返回示例(含 writer/source):
{
"code": 200,
"msg": "success",
"data": {
"id": 1695,
"chinese": "IT IS CLEAR AS YOU OBSERVE",
"english": "当你观察时,它 clear 如你所见",
"type": "The Literary Book of Answers",
"writer": "Edgar Allan Poe",
"source": "The Purloined Letter"
}
}
返回字段说明:
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码,200 表示成功。 |
| msg | string | 状态信息。 |
| data.id | int | 答案编号。 |
| data.chinese | string | 中文答案。 |
| data.english | string | 英文答案。 |
| data.type | string | 答案类型。 |
| data.writer | string | 作者/演员(仅部分类型有)。 |
| data.source | string | 来源作品(仅部分类型有)。 |
在线测试
答案之书 API
请求地址:
https://chart.12sign.top/answerbook
type 类型:
返回结果:
点击“发送请求”后在此显示结果