getResourceFile

一条资源的下载方式

The links `Resource` withholds. Needs the `letmoe:files` scope, which every NextMoe key carries unless an operator removed it. A `hosted` mirror's `url` is a direct link to letmoe's own file, supporting `Range`. It is looked up for each answer and not promised to last: a replaced or taken-down file stops downloading, so do not store it. An `external_link` mirror is a link its publisher hosts elsewhere, with the share code and archive password it needs. A `composite` is the game and a moyu patch spliced into one download at the edge. Never cached: every answer, refusals included, is `Cache-Control: private, no-store`. Each successful answer counts one view and one download on the resource, so ask when a reader asks to download.

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

参数

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

letmoe 资源 id。

nsfwbooleanquery

Include games whose display verdict is adult (`content_limit: nsfw`). Off by default, matching catalog's own convention.

响应

  • objectstring 必填
  • resource_idstring 必填
  • mirrorsobject[] 必填

    主镜像在前。

    • objectstring 必填
    • idstring 必填
    • kindstring 必填

      `hosted` is letmoe's own file and `url` is a direct link to it. It has no provider, share code or archive password: hosted files are plain zips. `external_link` is hosted elsewhere.

      枚举hostedexternal_link
    • providerobject 必填

      `hosted` 镜像上为空。

    • urlstringuri 必填
    • extract_codestring 必填

      网盘提取码,没有时为空。

    • archive_passwordstring 必填

      压缩包没有密码时为空。

    • notestring 必填
    • regionstring 必填
    • is_primaryboolean 必填
  • compositesobject[] 必填
    • objectstring 必填
    • idstring 必填
    • urlstringuri 必填
    • filenamestring 必填
    • bytesintegerint64 必填
    • blake3string 必填
    • patchobject 必填

请求示例

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