listWorks
列出或批量查询有资源的游戏
Without `ids` this is every game letmoe currently has a resource for, paged and sorted. With `ids` it is a **batch lookup** of up to 100 catalog work ids, with every id that has no visible resource on letmoe echoed back in `missing`. This is how you ask "which of these games can be downloaded on letmoe" in one round trip. A batch answers a set, not a page, so `cursor`, `sort`, `limit` and `include_total` alongside it are `MUTUALLY_EXCLUSIVE_PARAMETERS`.
/v2/letmoe/worksAuthorization: Bearer nmk_live_…(任意有效 v2 应用密钥即可,无需任何 scope;唯一例外是 /v2/letmoe/resources/{id}/file,要 letmoe:files——每把密钥创建时自动带上)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
limit | integer | query | 1 到 100。超过 100 是 `LIMIT_TOO_LARGE`,不会被夹到上限。 |
cursor | string | query | 同一个集合上一页返回的 `next_cursor`。 |
include_total | boolean | query | 统计整个集合的条数。默认不带,因为它要花一次 count。 |
nsfw | boolean | query | Include games whose display verdict is adult (`content_limit: nsfw`). Off by default, matching catalog's own convention. |
ids | string[] | query | 最多 100 个 catalog 作品 id。 |
sort | string | query | All descending. `updated` orders by when a resource of the game was last published or changed. updateddownloadsviews |
响应
objectstring必填itemsobject[]必填objectstring必填idstring必填catalog 作品 id,用于 `/v2/catalog/works/{id}`。
content_limitstring必填catalog 对这部游戏的展示判定,由 letmoe 镜像而来。
枚举sfwnsfwresource_countinteger必填已发布的资源数。
has_direct_downloadboolean必填有一条已发布资源不经网盘就能下载——托管文件、合并下载或直链。
has_chinese_resourceboolean必填有一条已发布资源是简体或繁体中文。
download_countinteger必填view_countinteger必填resource_updated_atstringdate-time 必填该游戏的资源最近一次发布或变更的时间。
web_urlstringuri 必填这部游戏在 letmoe 上的页面。
next_cursorstring必填 可空取下一页时作为 `cursor` 传回。末页为 null。
totalinteger必填 可空除非 `include_total=true`,否则为 null。
missingstring[]只在 `ids` 车道出现。没有匹配到任何东西的 id,按你传入的原样。
请求示例
curl "https://api.nextmoe.dev/v2/letmoe/works" \
-H "Authorization: Bearer nmk_live_<YOUR_KEY>"