getResourceFile

托管资源背后的文件

The download link and archive password `Resource` withholds. Needs the operator-granted `moyu:files` scope. Only a resource whose `storage` is `s3` has a file here; a link its publisher hosts elsewhere is `NOT_FOUND`, as is a hosted file no longer stored. Never cached: every answer, refusals included, is `Cache-Control: private, no-store`. Ask again rather than keeping a `download_url`.

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

参数

参数类型位置说明
id 必填 stringpath

资源 id。

响应

  • objectstring 必填
  • resource_idstring 必填
  • artifact_uuidstringuuid 必填

    The stored file. Replacing a resource's file uploads a new one, so a different uuid means different bytes.

  • download_urlstringuri 必填

    支持 `Range`。

  • filenamestring 必填

    文件上传时的名字。

  • bytesintegerint64 必填
  • blake3string 必填

    BLAKE3 of the file, or empty when moyu has none. No file uploaded after 2026-06-04 has one, and a hash that belonged to a file the resource has since replaced is not reported. Hash the download yourself when you need one.

  • passwordstring 必填

    解压密码,压缩包没有密码时为空。

  • updated_atstringdate-time 必填

    资源最后一次被编辑的时间,无论改的是文件还是其它内容。

  • repackobject 必填

    The passwordless STORE-zip copy letmoe's forge attached, or null. moyu deletes it when the resource is deleted or its file replaced, so a null after a non-null means it is gone.

请求示例

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