Zum Inhalt springen
GET /v1/balance

Beer-line balancing

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/draftbeer-api/v1/balance" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/draftbeer-api/v1/balance", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/draftbeer-api/v1/balance");
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/draftbeer-api/v1/balance",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "note": "Line length = (applied pressure − 0.5 × rise − residual) ÷ line resistance per foot. Gravity adds ~0.5 psi per foot of lift; ~1 psi residual is left at the faucet. A balanced line pours a proper head with no foaming or over-restriction. If length is ≤ 0, use a higher-resistance (narrower) line.",
        "inputs": {
            "rise_ft": 0,
            "pressure_psi": 12,
            "faucet_residual_psi": 1,
            "resistance_psi_per_ft": 3
        },
        "balanced": true,
        "line_length_m": 1.12,
        "line_length_ft": 3.67
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:00.143Z",
        "request_id": "02148117-40f8-4ed4-9538-188bcc457770"
    },
    "status": "ok",
    "message": "Line balance",
    "success": true
}