getResource
单个资源
/v2/letmoe/resources/{id}Authorization: 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. |
include | string[] | query | 要附加的关系,逗号分隔。 publisher |
响应
objectstring必填idstring必填work_idstring必填catalog 作品 id。
titlestring必填The title letmoe shows, never empty. Most resources carry no title of their own and are named by their game: the work's catalog name, then platform, language and type, in Chinese — for example `心跳文学部 Windows 电脑版 / 安卓手机版 简体中文游戏本体资源下载`.
typestring必填枚举gamecollectionpatchtranslationcrack_fixmodsavewalkthroughtoolosttheme_songdramaasmrvoicewallpapercgartbookcomicvideonovelmanualappendassetotherversionstring必填投稿者标注的版本,自由文本。没有时为空。
applicable_game_versionstring必填补丁或 mod 适用的游戏版本。自由文本。
languagestring[]必填platformstring[]必填runtimestring[]必填What it runs on, letmoe's own vocabulary (`native-win`, `kirikiroid2`, `joiplay`, …). Open: treat an unknown token as text.
engine_idstring必填 可空catalog 引擎 id,用于 `/v2/catalog/engines`。
sizestring必填投稿者填写的大小,数字加 `MB` 或 `GB`。未知时为空。
bytesintegerint64 必填 可空同一个大小的字节数;letmoe 量过托管文件时是它的精确大小。
blake3string必填托管文件的 BLAKE3;letmoe 没有托管文件时为空。
prerequisitesstring必填读者需要先准备的东西。纯文本。
descriptionstring必填Markdown 源码。
install_notestring必填Markdown 源码。
content_warningstring必填content_limitstring必填catalog 对这部游戏的展示判定,由 letmoe 镜像而来。
枚举sfwnsfwprovidersstring[]必填镜像所在的位置。托管文件是 `direct`。
mirror_countinteger必填direct_downloadboolean必填有一个镜像或一个合并下载不经网盘就能下载。
composite_countinteger必填一并提供的合并下载(本资源加一个 moyu 补丁)数量。
ratingobject必填qualitynumber必填 可空stabilitynumber必填 可空compatibilitynumber必填 可空countinteger必填
download_countinteger必填view_countinteger必填web_urlstringuri 必填这条资源在 letmoe 上的页面,读者去那里下载。
created_atstringdate-time 必填updated_atstringdate-time 必填publisherobjectWho published it. The profile belongs to the NextMoe identity service; `id` is the same number on every NextMoe site.
objectstring必填idstring必填namestring必填avatar_urlstring必填web_urlstringuri 必填
请求示例
curl "https://api.nextmoe.dev/v2/letmoe/resources/1024" \
-H "Authorization: Bearer nmk_live_<YOUR_KEY>"