/v1/balance
Beer-line balancing
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode 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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}