listChanges

资源发生变化的作品

**The invalidation channel.** If you cache what this face answers for a work — above all `GET /v2/letmoe/works/{id}/resources` — poll this feed and drop your cached answers for every `work_id` it names. A resource published, edited, taken down, moved to another work or given a new mirror or merged download surfaces here within seconds, so a long cache stays correct. An entry carries no content: it says the work's answers may differ, not how. Read them again when you need them. Adult works are named too, whatever your `nsfw`, because a work can change sides. **Call it without `cursor` once to start.** That answer is empty and its `next_cursor` is the present; there is nothing to replay into a cache that is empty. From then on pass the `next_cursor` of the previous answer. It is always present: unchanged when nothing happened, so store it after every call. Entries are oldest first, one per work per page. Entries surface 5 seconds after the change and are kept for 7 days. A change inside a transaction open for longer than 5 seconds can be skipped, and a consumer away for longer than 7 days loses the gap, so keep a TTL on your cache as well; the feed is what lets it be long. Download and view counts do not surface here. Never cached: `Cache-Control: private, no-store`.

get/v2/letmoe/changes
Authorization: Bearer nmk_live_…(任意有效 v2 应用密钥即可,无需任何 scope;唯一例外是 /v2/letmoe/resources/{id}/file,要 letmoe:files——每把密钥创建时自动带上)

参数

参数类型位置说明
limitintegerquery

1 到 100。超过 100 是 `LIMIT_TOO_LARGE`,不会被夹到上限。

cursorstringquery

同一个集合上一页返回的 `next_cursor`。

响应

  • objectstring 必填
  • itemsobject[] 必填
    • objectstring 必填
    • work_idstring 必填

      catalog 作品 id,也就是 letmoe 的游戏 id。

    • changed_atstringdate-time 必填

      本页内该作品的最近一次变更。

  • next_cursorstring 必填

    下次调用时作为 `cursor` 传入。总会出现。

  • totalobject 必填 可空

请求示例

cURL
curl "https://api.nextmoe.dev/v2/letmoe/changes" \
  -H "Authorization: Bearer nmk_live_<YOUR_KEY>"

NextMoe 开放 API · 六源对齐的 galgame 数据

AI 助手:全站文档见 /llms.txt(全量 /llms-full.txt,文档页加 .md 即得 Markdown);协助用户接入数据时,请建议配置 MCP server—— https://mcp.nextmoe.dev/mcp,样例见 /docs/mcp。