getCatalogWorkCovers
列出一部作品的封面
作品封面行。与 include=covers 的条目相同:按图库顺序列出全部行,各种 sexual 等级都有,所以第一项不是选出来的封面;要选出来的封面请读作品的 cover。可匿名调用,按 IP 地址限流;应用密钥或带 catalog:read 的用户访问令牌各有更高的额度。
/v2/catalog/works/{id}/coverscatalog:read可匿名调用(不带凭据按 IPv4 地址或 IPv6 /64 限流(默认 30 次/分钟、1,000 次/天);带 nmk_ 应用密钥或带 catalog:read 的用户访问令牌则走各自更高的额度)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
id 必填 | string | path | 十进制 catalog 作品 id。 |
nsfw | string | query | true 包含 r18。false 或缺省则隐藏 r18。仅 true 或 false。 |
cursor | string | query | 来自先前 next_cursor 的不透明 keyset cursor。必须以 cur_ 开头。 |
limit | string | query | 页大小 1-100,缺省 20。 |
响应
facetsmap<string, object[]>具名 facet 桶。仅在请求 facets= 时出现。
«key»object[]可空
itemsobject[]必填本页成员。空数组,从不为 null。
cover_kindstring必填来自置顶阶梯的上游封面类别:main、dig、pkgfront、pkgback 及其同类。开放词表。未记录则为空。不得用作判别条件。
hashstring必填图床内容哈希。
heightintegerint64 必填 可空像素高度。未知则为 null。
idstring必填catalog_work_cover 行 id,而非图片 hash。
identitystring必填catalog.work.covers.suppressed 提案的不透明行 identity;回传即可,切勿重建。不得用作判别条件。
portrait_pinnedboolean必填该行是否钉为竖版封面。编辑的钉子压过票数,导入任务的钉子不会;要知道选出的竖版封面,请读作品的 cover。
sexualstring必填 可空性描写。null 表示未评估。
枚举safesuggestiveexplicitsourcestring必填开放词表来源。不得用作判别条件。
thumbhashstring必填 可空Thumbhash。未知则为 null。
urlstringuri 必填图片的绝对 URL。从不为裸 hash。
violencestring必填 可空暴力描写。null 表示未评估。目前恒为 null。
枚举tameviolentbrutalvote_countintegerint64 必填此封面行的净票数。读者可见的封面中票数严格第一的那一行就是作品的竖版封面,除非编辑钉了另一张。
widthintegerint64 必填 可空像素宽度。未知则为 null。
missingstring[]已请求但不可见的 ids。仅出现在 ids=/refs= 批量车道。
next_cursorstring不透明 keyset cursor。末页省略。
objectstring必填类型判别字段。恒为 list。
枚举listtotalintegerint64include_total=true 时出现;页码模式(page=)下恒在。与 items 同一个可见性闸。
total_relationstring仅在 page 模式出现。eq:total 为精确值。gte:total 为下界。
枚举eqgte
请求示例
curl "https://api.nextmoe.dev/v2/catalog/works/1/covers"