Vai al contenuto
GET /v1/search

Search distilleries

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

Risposta di esempio

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

{
    "data": {
        "count": 21,
        "query": "glen",
        "total": 21,
        "distilleries": [
            {
                "region": "Speyside",
                "flavours": {
                    "body": 1,
                    "honey": 1,
                    "malty": 2,
                    "nutty": 1,
                    "smoky": 1,
                    "spicy": 1,
                    "winey": 0,
                    "floral": 2,
                    "fruity": 2,
                    "tobacco": 0,
                    "medicinal": 0,
                    "sweetness": 3
                },
                "postcode": "AB38 9LR",
                "distillery": "Glenallachie"
            },
            {
                "region": "Speyside",
                "flavours": {
                    "body": 2,
                    "honey": 1,
                    "malty": 2,
                    "nutty": 0,
                    "smoky": 1,
                    "spicy": 1,
                    "winey": 2,
                    "floral": 1,
                    "fruity": 0,
                    "tobacco": 1,
                    "medicinal": 1,
                    "sweetness": 3
                },
                "postcode": "AB4 3JT",
                "distillery": "GlenDeveronMacduff"
            },
            {
                "region": "Highlands",
                "flavours": {
                    "body": 4,
                    "honey": 2,
                    "malty": 2,
                    "nutty": 2,
                    "smoky": 2,
                    "spicy": 1,
                    "winey": 4,
                    "floral": 0,
                    "fruity": 2,
                    "tobacco": 0,
                    "medicinal": 0,
                    "sweetness": 2
                },
                "postcode": "AB54 6DA",
                "distillery": "Glendronach"
            },
            {
                "region": "Speyside",
                "flavours": {
                    "body": 3,
                    "honey": 2,
                    "malty": 2,
                    "nutty": 1,
                    "smoky": 1,
                    "spicy": 1,
                    "winey": 2,
                    "floral": 2,
                    "fruity": 3,
                    "tobacco": 0,
                    "medicinal": 0,
                    "sweetness": 2
                },
                "postcode": "AB55 4DJ",
                "distillery": "Glendullan"
            },
            {
                "region": "Speyside",
                "flavours": {
                    "body": 2,
                    "honey": 2,
                    "malty": 1,
                    "nutty": 1,
                    "smoky": 1,
                    "spicy": 1,
                    "winey": 1,
                    "floral": 3,
                    "fruity": 2,
                    "tobacco": 0,
                    "medicinal": 0,
                    "sweetness": 3
                },
             
…