/v1/sugar
Chaptalization & potential ABV
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/winemaking-api/v1/sugar" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/winemaking-api/v1/sugar", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/winemaking-api/v1/sugar");
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/winemaking-api/v1/sugar",
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": "Chaptalization: sugar (g) = volume(L) × ΔpotentialABV × 16.83. Potential ABV = (SG−1)×131.25; ~17 g/L of sugar ferments to ~1% ABV.",
"inputs": {
"sg": 1.0875,
"brix": 21,
"volume": 20
},
"specific_gravity": 1.0875,
"sugar_to_add_grams": 512.24,
"target_potential_abv": 13,
"current_potential_abv": 11.478
},
"meta": {
"timestamp": "2026-06-06T07:14:13.089Z",
"request_id": "87409d35-f72b-4ecb-a65c-3944a60fcfca"
},
"status": "ok",
"message": "Chaptalization",
"success": true
}