跳转到文档内容
文档ATHubAPI 参考小说元信息
API REFERENCEATHub

获取小说

获取小说元信息,支持平台、作者、标签筛选与分页。

GET/api/v2/novelinfoREST

Query Parameters

URL query

获取单本:GET /api/v2/novelinfo?id=10。 获取列表:GET /api/v2/novelinfo?platformId=1&authorId=2&limit=20&offset=0。

查询键类型必填说明
idinteger单条模式必填小说 ID,不能和其他参数组合;不存在返回 404。
platformIdinteger否仅列表模式,平台筛选。
authorIdinteger否仅列表模式,作者筛选;与平台筛选同时提供时取交集。
tagIdinteger否仅列表模式,筛选引用此标签的小说;与其他筛选取交集。标签不存在时返回 []。
limitinteger否仅列表模式,通用分页。
offsetinteger否仅列表模式,通用分页。

列表按小说 ID 降序;筛选无结果时返回 []。 元信息不嵌套卷或章节,分别使用 /api/v2/volumes 和 /api/v2/content 获取。

正文与 JSON 示例读取自 docs/content/athub/API.md,与项目文档保持同源。
发现文档有问题?在 GitHub 提出建议 ↗