/v1/abv
Mixed-drink ABV
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}