← Back to Home

API Docs

Endpoint POST /decompile
Base URL https://api.xan888.cloud
Content-Type application/json
Returns text/plain (Decompiled Bytecode)
Rate Limit None

Example Usage

Below is an example showing how to send base64 encoded bytecode for decompilation using Python's requests library.

import requests
import base64

url = "https://api.xan888.cloud/decompile"
with open("script.luac", "rb") as f:
    bytecode = base64.b64encode(f.read()).decode()

payload = {
    "bytecode": bytecode
}
headers = { "Content-Type": "application/json" }

response = requests.post(url, json=payload, headers=headers)
print(response.text)

Example Response (text/plain)

--[[ https://xan888.cloud ]]
print("Hello from LuaU!")

Using the Helper (api.lua)

-- Loading the decompile function.
loadstring(game:HttpGet("https://xan888.cloud/api.lua"))()

local target = game:GetService("ReplicatedStorage").Packages.Knit
local result = decompile(target)
print(result)