/v1/rank
Rank distilleries by a flavour
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/whisky-api/v1/rank" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/whisky-api/v1/rank", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/whisky-api/v1/rank");
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/rank",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 10,
"order": "desc",
"flavour": "smoky",
"ranking": [
{
"value": 4,
"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
},
"position": 1,
"postcode": "PA42 7EB",
"distillery": "Ardbeg"
},
{
"value": 4,
"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
},
"position": 2,
"postcode": "PA46 7RL",
"distillery": "Caol Ila"
},
{
"value": 4,
"region": "Islay",
"flavours": {
"body": 4,
"honey": 0,
"malty": 1,
"nutty": 1,
"smoky": 4,
"spicy": 1,
"winey": 2,
"floral": 0,
"fruity": 1,
"tobacco": 1,
"medicinal": 4,
"sweetness": 1
},
"position": 3,
"postcode": "PA42 7DZ",
"distillery": "Lagavulin"
},
{
"value": 4,
"region": "Islay",
"flavours": {
"body": 4,
"honey": 0,
"malty": 1,
"nutty": 1,
"smoky": 4,
"spicy": 0,
"winey": 1,
"floral": 0,
"fruity": 0,
"tobacco": 1,
"medicinal": 4,
"sweetness": 2
},
"position": 4,
"postcode": "PA42 7DU",
"distillery": "Laphroig"
},
{
"value": 3,
"region": "Islay",
"flavours": {
"body": 2,
"honey": 2,
"malty": 1,
"nutty": 1,
"smoky": 3,
"spicy": 2,
…