listResourceChanges

资源变更流

What happened to each resource, oldest first, so a mirror can follow moyu instead of re-reading every page. The log starts on 2026-10-14 with no backfill: take one full scan through the collections first, then follow this from an empty cursor. Replaying a page is safe. `next_cursor` is always set. Keep it and ask again; a page shorter than `limit` means you are caught up. Entries appear once every transaction that started before them has finished, so a long write can delay the feed for its duration but never makes it skip one. `kind` says which way to react: - `created`, `file_replaced`, `updated`, `restored`: read the resource again (`GET /v2/moyu/resources/{id}`). - `hidden`, `deleted`: it is no longer public. `hidden` may come back as `restored`. - `normalized`: the file was swapped for the passwordless zip letmoe's forge built from it. The content is the same; the size and password changed, and `/file` now answers `normalized: true`. Counter changes (downloads, likes) are not events, and nor are edits made while a resource is not public. Never cached: `Cache-Control: no-store`.

get/v2/moyu/changes
Authorization: Bearer nmk_live_…(任意有效 v2 应用密钥即可,无需任何 scope;唯一例外是 /v2/moyu/resources/{id}/file,要运营发放的 moyu:files)

参数

参数类型位置说明
limitintegerquery

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

cursorstringquery

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

响应

  • objectstring 必填
  • itemsobject[] 必填
    • objectstring 必填
    • seqstring 必填

      Unique per entry, for deduplicating a replayed page. It is not the feed's order; the cursor is.

    • resource_idstring 必填
    • catalog_work_idstring 必填

      资源发生变化时所在的补丁页。被移到别的页的资源会报告 `updated`,并带上新的页。

    • storagestring 必填

      只有 `s3` 资源在 moyu 上有文件。

      枚举s3user
    • kindstring 必填
      枚举createdfile_replacedupdatedhiddenrestoreddeletednormalized
    • changed_atstringdate-time 必填
  • next_cursorstring 必填

    从哪里继续读。总会给出。

  • totalobject 必填 可空

请求示例

cURL
curl "https://api.nextmoe.dev/v2/moyu/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。