Zum Inhalt springen
GET /v1/lye

Lye / water / fragrance

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/soap-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/soap-api/v1/lye" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/soap-api/v1/lye", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/soap-api/v1/lye");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/soap-api/v1/lye",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Lye = Σ(oil grams × SAP) × (1 − superfat). Superfat leaves that % of oils unsaponified for a milder bar. KOH (liquid soap) = NaOH amount × 1.403 ÷ purity. SAP values are g NaOH per g oil.",
        "inputs": {
            "oils": [
                {
                    "name": "olive",
                    "grams": 500
                },
                {
                    "name": "coconut",
                    "grams": 300
                },
                {
                    "name": "palm",
                    "grams": 200
                }
            ],
            "lye_type": "NaOH",
            "superfat_percent": 5
        },
        "lye_type": "NaOH",
        "lye_grams": 141.17,
        "water_grams": 380,
        "water_method": "38% of oils",
        "fragrance_grams": 40,
        "total_oil_grams": 1000,
        "fragrance_percent": 4,
        "batch_weight_grams": 1561.17,
        "lye_solution_grams": 521.17
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:12.606Z",
        "request_id": "aadc1cdb-0f2a-4b1b-b125-b0edec7f5d89"
    },
    "status": "ok",
    "message": "Lye calculator",
    "success": true
}