Aller au contenu
GET /v1/abv

Mixed-drink ABV

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/abv-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/abv-api/v1/abv" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/abv-api/v1/abv", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/abv-api/v1/abv");
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/abv",
    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": "Final ABV = (sum of volume × abv) ÷ total volume. Mixers at 0 % dilute it. US proof is twice the ABV. This is the ABV before any ice melt — see /v1/dilution for that.",
        "inputs": {
            "ingredients": [
                {
                    "abv": 40,
                    "volume": 2
                },
                {
                    "abv": 20,
                    "volume": 1
                },
                {
                    "abv": 0,
                    "volume": 1
                }
            ]
        },
        "proof_us": 50,
        "total_volume": 4,
        "alcohol_volume": 1,
        "final_abv_percent": 25
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:04.102Z",
        "request_id": "3238dbae-4a2e-43ab-b04f-9abdb41a49c5"
    },
    "status": "ok",
    "message": "Mixed ABV",
    "success": true
}