自制《飞鸟集》一言免费API | 接口文档

1.从整本诗集中随机

参数名称 是否必填 参数类型 参数说明
type string 返回的类型,可填textjson,默认:json
  • 请求示例
    https://api.mu-jie.cc/stray-birds?type=json

  • 返回示例

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    JSON:
    {
    "num": 23,
    "en": "“We, the rustling leaves, have a voice that answers the storms, but who are you so silent?”“I am a mere flower.”",
    "cn": "“我们,萧萧的树叶,都有声响回答那暴风雨,但你是谁呢,那样地沉默着?”“我不过是一朵花。"
    }

    TEXT:
    “You are the big drop of dew under the lotus leaf, I am the smaller one on its upper side, ” said the dew drop to the lake.
    露珠对湖水说道:“你,是在荷叶下面的大露珠,我是在荷叶上面的较小的露珠。”
  • JSON返回参数

参数名称 参数类型 参数说明
num int 诗句序号,与书籍对应
en string 诗句英文
cn string 诗句中文

2.从诗集区间中随机

参数名称 是否必填 参数类型 参数说明
from int 从from开始随机,与书籍对应,默认:1
to int 随机到to,与书籍对应,默认:325(最大值)
type string 返回的类型,可填textjson,默认:json