如果您喜欢该接口并想支持该接口继续运行,请赞助我们,十分感谢!
API 端点
BaseURL: https://hitokoto-api.ecylt.com
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
调用二次元论坛一言 API 服务
BaseURL: https://hitokoto-api.ecylt.com
GET /api/hitokoto
{
"id": 1,
"content": "生命不息,奋斗不止",
"source": "网络",
"category": "f"
}
GET /api/hitokoto/{category}
| 参数 | 类型 | 说明 |
|---|---|---|
| category | string | 一言的类别,可选值: - e: 原创(包含坛友贡献的一言) - f: 来自网络 |
{
"id": 2,
"content": "人生最大的遗憾,就是在最无能为力的时候遇到一个想要保护一生的人",
"source": "我们仍未知道那天所看见的花的名字",
"category": "f"
}
{
"error": "Invalid category"
}
{
"error": "No sentences found for this category"
}