API 文档

一言
GET
/api/v1/quote
数据源支持:hitokoto | iciba [hitokoto语句包来源见: https://github.com/hitokoto-osc/sentences-bundle]
响应结果
参数
  • Header
  • RouteParam
  • Query
  • Body
nametyperequireddefaultdesc
sourcestringfalsehitokotohitokoto|iciba
cstringfalse句子类型(a-l,可多值;仅 hitokoto 生效)
min_lengthintfalse0最小长度(仅 hitokoto 生效)
max_lengthintfalse0最大长度(仅 hitokoto 生效)
返回
nametypedesc
data.sourcestring数据源
data.contentstring句子内容
data.authorstring作者(可为空)
data.fromstring出处(可为空)
data.lengthint内容长度