世界广泛流行的童话合集
接口地址: https://whyta.cn/api/tx/fairytales/fylist
返回格式: JSON
请求方式: GET
请求示例:https://whyta.cn/api/tx/fairytales/fylist?key=你的APIKEY&typeid=3
接口备注:2 
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 您自己的APIKEY(注册账号后获得) API密钥 |
| typeid | int | 是 | 1-8 故事分类 |
| num | int | 否 | 30 数量,最大30 |
| page | int | 否 | 1 翻页 |
| word | string | 否 | 狐狸和狼 搜索标题关键词 |
| 参数 | 类型 | 示例值 | 说明 |
|---|---|---|---|
| code | int | 200 | 状态码 |
| msg | string | success | 错误信息 |
| result | object | {} | 返回结果集 |
| id | string | 352fe25daf686bdb | 故事ID |
| typeid | int | 3 | 故事分类 |
| title | string | 狐狸和狼 | 故事名称 |
{
"code": 200,
"msg": "success",
"result": {
"list": [
{
"id": "58238e9ae2dd305d",
"typeid": 3,
"title": "阿里巴巴与四十大盗"
},
{
"id": "3ad7c2ebb96fcba7",
"typeid": 3,
"title": "航海家辛巴达的故事"
}
]
}
}
接口地址: https://whyta.cn/api/tx/fairytales
返回格式: JSON
请求方式: GET
请求示例:https://whyta.cn/api/tx/fairytales?key=你的APIKEY&id=352fe25daf686bdb
接口备注:无
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | PI密钥 |
| id | string 是 | 352fe25daf686bdb | 故事ID |
| 参数 | 类型 | 示例值 | 说明 |
|---|---|---|---|
| code | int | 200 | 状态码 |
| msg | string | success | 错误信息 |
| result | object | {} | 返回结果集 |
| id | string | 352fe25daf686bdb | 故事ID |
| typeid | int | 3 | 故事分类 |
| title | string | 狐狸和狼 | 故事名称 |
| content | string | 在一个山洞里,住着一只狐狸和一只狼... | 故事内容 |
{
"code": 200,
"msg": "success",
"result": {
"id": "352fe25daf686bdb",
"typeid": 2,
"title": "狐狸和狼",
"content": "在一个山洞里,住着一只狐狸和一只狼,它们早出晚归,一直过了很长的岁月.狼的本性倔强好胜,经常欺负.役使狐狸,让它侍候自己.狼不高兴了,对狐狸张口就骂.举手就打.年深日久,狐狸忍无可忍,但迫于狼的强暴,无可奈何,只好忍下去..."
}
}
| 分类ID | 童话类型 |
|---|---|
| 1 | 安徒生童话 |
| 2 | 格林童话 |
| 3 | 一千零一夜 |
| 4 | 儿童童话 |
| 5 | 民间故事 |
| 6 | 成语故事 |
| 7 | 寓言故事 |
| 8 | 经典童话 |