Aller au contenu
GET /v1/yield

Frozen volume and scoops

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/icecream-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/icecream-api/v1/yield" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/icecream-api/v1/yield", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/icecream-api/v1/yield");
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/icecream-api/v1/yield",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Freezing inflates the mix by its overrun, so the frozen volume = the mix volume × (1 + overrun/100) and the servings = that ÷ the scoop size, rounded down. 2 litres of mix at 60 % overrun yields 3.2 litres — about 53 sixty-millilitre scoops. This is why overrun is a cost lever: the same mix stretches to far more servings at higher overrun, at the price of body and richness.",
        "inputs": {
            "scoop_ml": 60,
            "overrun_pct": 60,
            "mix_volume_ml": 2000
        },
        "scoops": 53,
        "final_volume_l": 3.2,
        "final_volume_ml": 3200
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:53.514Z",
        "request_id": "1db47efa-af0a-415a-b52b-8867f013456e"
    },
    "status": "ok",
    "message": "Yield",
    "success": true
}