/v1/espresso
Espresso 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/espresso" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/coffee-api/v1/espresso", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/coffee-api/v1/espresso");
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/espresso",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Espresso brew ratio = yield ÷ dose. A modern espresso is about 1:2 (e.g. 18 g in → 36 g out) in 25–30 s.",
"style": "normale (1:2)",
"dose_g": 18,
"inputs": {
"dose_g": 18,
"yield_g": 36,
"brew_ratio_in": 2
},
"yield_g": 36,
"brew_ratio": 2,
"brew_ratio_label": "1:2"
},
"meta": {
"timestamp": "2026-06-04T18:38:07.977Z",
"request_id": "2880819c-0f13-43ff-8d8e-d4356fa03342"
},
"status": "ok",
"message": "Espresso ratio",
"success": true
}