Vai al contenuto
GET /v1/standard

Standard drinks + units

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/abv-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

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