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.
/v2/letmoe/resources/{id}/fileletmoe:filesAuthorization: Bearer nmk_live_…(任意有效 v2 应用密钥即可,无需任何 scope;唯一例外是 /v2/letmoe/resources/{id}/file,要 letmoe:files——每把密钥创建时自动带上)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
id 必填 | string | path | letmoe 资源 id。 |
nsfw | boolean | query | 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_linkproviderobject必填`hosted` 镜像上为空。
urlstringuri 必填extract_codestring必填网盘提取码,没有时为空。
archive_passwordstring必填压缩包没有密码时为空。
notestring必填regionstring必填is_primaryboolean必填
compositesobject[]必填objectstring必填idstring必填urlstringuri 必填filenamestring必填bytesintegerint64 必填blake3string必填patchobject必填
请求示例
curl "https://api.nextmoe.dev/v2/letmoe/resources/1024/file" \
-H "Authorization: Bearer nmk_live_<YOUR_KEY>"