/v1/standard
Standard drinks + units
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/abv-api/v1/standard" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/abv-api/v1/standard", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/abv-api/v1/standard");
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/abv-api/v1/standard",
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": "Pure alcohol = volume × ABV. A US standard drink is 14 g (0.6 fl oz) of pure alcohol; a UK unit is 10 ml. A 12 fl oz beer at 5 % ≈ 1 standard drink; a 5 fl oz glass of 12 % wine ≈ 1 too.",
"inputs": {
"abv": 5,
"unit": "floz",
"volume": 12
},
"uk_units": 1.77,
"volume_ml": 354.88,
"pure_alcohol_ml": 17.74,
"pure_alcohol_grams": 14,
"us_standard_drinks": 1
},
"meta": {
"timestamp": "2026-06-06T07:14:04.310Z",
"request_id": "14bb5b32-2621-4c42-a535-d20fcf83006a"
},
"status": "ok",
"message": "Standard drinks",
"success": true
}