Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

All api

CubeWhy edited this page Sep 16, 2023 · 2 revisions

LunarClient API

Launcher Metadata API

Get metadata

Path: /launcher/metadata

Method: GET

Params: launcher_version:String

Launch API

Get version info

Path: /launcher/launch

Method: POST

Content-Type: application/octet-stream

Content

{
    "hwid": "PRIVATE",
    "hwid-private": "PRIVATE-HWID",
    "installion_id": "INSTALLED",
    "os": "win32",
    "arch": "x64",
    "os_release": "19045.3086",
    "launcher_version": "2.15.2",
    "launch_type": "lunar",
    "version": <version>,
    "branch": <branch>,
    "module": <module>
}

Report status API

Path: /launcher/reportLaunchStatus

Method: POST

Params: hwid: String, data: JsonObject

Game Metadata API

In-game metadata, etc. disable freeLook in HYPIXEL

Path: /game/metadata

Artifact API

This API added by CubeWhyMC, not present on the official API

Download a artifact

Path: /launcher/download

Params: path:String

LiquidLunar API

Game Metadata API

Market API

Info

Show information of all addons

Path: /market/info

Download

Download a addon

Path: /market/download

Params: path: String

Cape API

Same as https://s-optifine.net

In-game view

Path: /capes/USERNAME.png

Auth API

Login

Path: /api/auth/login

Params: username:String, password:String

Logout

If cookie not defined, read token in headers

Path: /api/auth/logout

Headers: Authorization:String

Admin API

Auth token needed. If token cookie not defined, read token in headers

Upload Addon

Path: /api/admin/upload

Params: base64: String, filePath: String