API Documentation
Use Kers0ne Free Luraph Obfuscation in your own scripts and tools. No API key required.
Public API base:
All requests go through your domain. Credit line in output is rewritten to your site.
https://kers0ne-free-luraph-obfuscation.pages.devAll requests go through your domain. Credit line in output is rewritten to your site.
Obfuscate a Script
POST
/api/obfuscate
Submit a Lua / Luau script and receive the obfuscated result.
Request
| Field | Type | Required | Description |
|---|---|---|---|
code |
string | Yes | The source script to obfuscate |
Headers:
Content-Type: application/json
Success Response 200
{
"obfuscated": "-- Obfuscated using Kers0ne Free Luraph Obfuscation https://kers0ne-free-luraph-obfuscation.pages.dev/\nreturn(function(...) ..."
}
Error Response
{
"error": "Missing or invalid \"code\" field"
}
cURL Example
curl -X POST https://kers0ne-free-luraph-obfuscation.pages.dev/api/obfuscate \
-H "Content-Type: application/json" \
-d '{"code": "print(\"Hello from Kers0ne\")"}'
JavaScript / Node Example
const response = await fetch("https://kers0ne-free-luraph-obfuscation.pages.dev/api/obfuscate", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
code: `print("Hello from Kers0ne")`
})
});
const data = await response.json();
if (!response.ok) {
throw new Error(data.error);
}
console.log(data.obfuscated);
Python Example
import requests
resp = requests.post(
"https://kers0ne-free-luraph-obfuscation.pages.dev/api/obfuscate",
json={"code": 'print("Hello from Kers0ne")'}
)
data = resp.json()
if not resp.ok:
raise Exception(data.get("error", "Unknown error"))
print(data["obfuscated"])
PowerShell Example
$body = @{ code = 'print("Hello from Kers0ne")' } | ConvertTo-Json
$response = Invoke-RestMethod `
-Uri "https://kers0ne-free-luraph-obfuscation.pages.dev/api/obfuscate" `
-Method POST `
-ContentType "application/json" `
-Body $body
$response.obfuscated
Notes
- No authentication is required.
- Credit line in the obfuscated script is set to your domain.
- Large scripts may take several seconds to process.
- This service is provided as-is for community use.