Vai al contenuto
GET /v1/region

Distilleries in a region

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/whisky-api/v1/region" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/whisky-api/v1/region", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/whisky-api/v1/region");
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/whisky-api/v1/region",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

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

{
    "data": {
        "count": 7,
        "region": "islay",
        "distilleries": [
            {
                "region": "Islay",
                "flavours": {
                    "body": 4,
                    "honey": 0,
                    "malty": 2,
                    "nutty": 1,
                    "smoky": 4,
                    "spicy": 2,
                    "winey": 0,
                    "floral": 0,
                    "fruity": 1,
                    "tobacco": 0,
                    "medicinal": 4,
                    "sweetness": 1
                },
                "postcode": "PA42 7EB",
                "distillery": "Ardbeg"
            },
            {
                "region": "Islay",
                "flavours": {
                    "body": 2,
                    "honey": 2,
                    "malty": 1,
                    "nutty": 1,
                    "smoky": 3,
                    "spicy": 2,
                    "winey": 1,
                    "floral": 2,
                    "fruity": 1,
                    "tobacco": 0,
                    "medicinal": 1,
                    "sweetness": 2
                },
                "postcode": "PA43 7GS",
                "distillery": "Bowmore"
            },
            {
                "region": "Islay",
                "flavours": {
                    "body": 1,
                    "honey": 2,
                    "malty": 2,
                    "nutty": 2,
                    "smoky": 2,
                    "spicy": 2,
                    "winey": 1,
                    "floral": 2,
                    "fruity": 2,
                    "tobacco": 0,
                    "medicinal": 2,
                    "sweetness": 1
                },
                "postcode": "PA49 7UN",
                "distillery": "Bruichladdich"
            },
            {
                "region": "Islay",
                "flavours": {
                    "body": 1,
                    "honey": 1,
                    "malty": 2,
                    "nutty": 1,
                    "smoky": 1,
                    "spicy": 1,
                    "winey": 1,
                    "floral": 3,
                    "fruity": 2,
                    "tobacco": 0,
                    "medicinal": 1,
                    "sweetness": 2
                },
                "postcode": "PA46 7RR",
                "distillery": "Bunnahabhain"
            },
            {
                "region": "Islay",
                "flavours": {
                    "body": 3,
                    "honey": 0,
                    "malty": 1,
                    "nutty": 2,
                    "smoky": 4,
                    "spicy": 2,
                    "winey": 0,
                    "floral": 1,
                    "fruity": 1,
                    "tobacco": 1,
                    "medicinal": 2,
                    "sweetness": 1
                },
                "postcode": "PA46 7RL",
                "dist
…