Vai al contenuto
GET /v1/balance

Beer-line balancing

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/draftbeer-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}