Naar de inhoud
GET /v1/abv

Mixed-drink ABV

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/abv-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "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
}