Vai al contenuto
GET /v1/ratio

Brew ratio

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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