/v1/ratio
Brew ratio
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/coffee-api/v1/ratio" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/coffee-api/v1/ratio", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/coffee-api/v1/ratio");
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/coffee-api/v1/ratio",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"cups": 2.083,
"note": "Brew ratio: water = coffee × ratio. The SCA 'golden ratio' is about 1:16–1:17 (≈ 60 g coffee per litre).",
"ratio": 16.667,
"inputs": {
"water_g": 500,
"coffee_g": 30,
"ratio_in": 16.7
},
"water_g": 500,
"coffee_g": 30,
"ratio_label": "1:16.7",
"strength_hint": "around the golden ratio (1:15–1:18)"
},
"meta": {
"timestamp": "2026-06-04T18:38:08.199Z",
"request_id": "5bb17875-e31f-4ccb-aa75-bf40519f2c6f"
},
"status": "ok",
"message": "Brew ratio",
"success": true
}