curl --request POST \
--url https://api.aisa.one/apis/v1/vivino-com/products/explore \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"countries": [
"IT"
],
"grapes": [
"Pinot Noir"
],
"min_rating": 4,
"price_max": 40,
"price_min": 10,
"wine_types": [
"red"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/vivino-com/products/explore"
payload = {
"countries": ["IT"],
"grapes": ["Pinot Noir"],
"min_rating": 4,
"price_max": 40,
"price_min": 10,
"wine_types": ["red"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
countries: ['IT'],
grapes: ['Pinot Noir'],
min_rating: 4,
price_max: 40,
price_min: 10,
wine_types: ['red']
})
};
fetch('https://api.aisa.one/apis/v1/vivino-com/products/explore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/vivino-com/products/explore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'countries' => [
'IT'
],
'grapes' => [
'Pinot Noir'
],
'min_rating' => 4,
'price_max' => 40,
'price_min' => 10,
'wine_types' => [
'red'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/vivino-com/products/explore"
payload := strings.NewReader("{\n \"countries\": [\n \"IT\"\n ],\n \"grapes\": [\n \"Pinot Noir\"\n ],\n \"min_rating\": 4,\n \"price_max\": 40,\n \"price_min\": 10,\n \"wine_types\": [\n \"red\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/vivino-com/products/explore")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countries\": [\n \"IT\"\n ],\n \"grapes\": [\n \"Pinot Noir\"\n ],\n \"min_rating\": 4,\n \"price_max\": 40,\n \"price_min\": 10,\n \"wine_types\": [\n \"red\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/vivino-com/products/explore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"countries\": [\n \"IT\"\n ],\n \"grapes\": [\n \"Pinot Noir\"\n ],\n \"min_rating\": 4,\n \"price_max\": 40,\n \"price_min\": 10,\n \"wine_types\": [\n \"red\"\n ]\n}"
response = http.request(request)
puts response.read_bodyExplore
The main way to find wine to buy: a red from Italy rated 4+ under 30 dollars, the best value Riesling, the cheapest champagne rated above 4.
curl --request POST \
--url https://api.aisa.one/apis/v1/vivino-com/products/explore \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"countries": [
"IT"
],
"grapes": [
"Pinot Noir"
],
"min_rating": 4,
"price_max": 40,
"price_min": 10,
"wine_types": [
"red"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/vivino-com/products/explore"
payload = {
"countries": ["IT"],
"grapes": ["Pinot Noir"],
"min_rating": 4,
"price_max": 40,
"price_min": 10,
"wine_types": ["red"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
countries: ['IT'],
grapes: ['Pinot Noir'],
min_rating: 4,
price_max: 40,
price_min: 10,
wine_types: ['red']
})
};
fetch('https://api.aisa.one/apis/v1/vivino-com/products/explore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/vivino-com/products/explore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'countries' => [
'IT'
],
'grapes' => [
'Pinot Noir'
],
'min_rating' => 4,
'price_max' => 40,
'price_min' => 10,
'wine_types' => [
'red'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/vivino-com/products/explore"
payload := strings.NewReader("{\n \"countries\": [\n \"IT\"\n ],\n \"grapes\": [\n \"Pinot Noir\"\n ],\n \"min_rating\": 4,\n \"price_max\": 40,\n \"price_min\": 10,\n \"wine_types\": [\n \"red\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/vivino-com/products/explore")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"countries\": [\n \"IT\"\n ],\n \"grapes\": [\n \"Pinot Noir\"\n ],\n \"min_rating\": 4,\n \"price_max\": 40,\n \"price_min\": 10,\n \"wine_types\": [\n \"red\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/vivino-com/products/explore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"countries\": [\n \"IT\"\n ],\n \"grapes\": [\n \"Pinot Noir\"\n ],\n \"min_rating\": 4,\n \"price_max\": 40,\n \"price_min\": 10,\n \"wine_types\": [\n \"red\"\n ]\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/vivino-com/products/explore
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/vivino-com/products/explore
{
"operationId": "vivino-com.products.explore",
"method": "POST",
"path": "/apis/v1/vivino-com/products/explore",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"countries": [
"IT"
],
"grapes": [
"Pinot Noir"
],
"min_rating": 4,
"price_max": 40,
"price_min": 10,
"wine_types": [
"red"
]
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"countries": {
"description": "Countries of origin as ISO 3166-1 alpha-2 codes, for example IT, FR, ES.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"grapes": {
"description": "Grape names as Vivino lists them, for example `Pinot Noir`, `Nebbiolo`, `Syrah`. Unknown names are rejected.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"min_rating": {
"description": "Minimum average rating, for example 4 or 4.2.\n\nProvider reference: minimum 1; maximum 5.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 5,
"min": 1
}
},
"page": {
"default": 1,
"description": "1-based page of 24 vintages.\n\nProvider reference: minimum 1; maximum 100; default 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100,
"min": 1
}
},
"price_max": {
"description": "Maximum bottle price in the ship-to market's currency.\n\nProvider reference: minimum 0; maximum 100000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100000,
"min": 0
}
},
"price_min": {
"description": "Minimum bottle price in the ship-to market's currency.\n\nProvider reference: minimum 0; maximum 100000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100000,
"min": 0
}
},
"ship_to": {
"default": "US",
"description": "Ship-to market whose offers and prices are shown, as Vivino's market switch supports it. Default US (prices in USD). Currencies: USD for US; EUR for NL, BE, DE, FR, IT, ES and AT; DKK, SEK, CHF, GBP, CAD and AUD for DK, SE, CH, GB, CA and AU.\n\nProvider reference: allowed values [\"NL\", \"BE\", \"DE\", \"FR\", \"IT\", \"ES\", \"AT\", \"DK\", \"SE\", \"CH\", \"GB\", \"US\", \"CA\", \"AU\"]; default \"US\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"NL",
"BE",
"DE",
"FR",
"IT",
"ES",
"AT",
"DK",
"SE",
"CH",
"GB",
"US",
"CA",
"AU"
]
}
},
"sort": {
"default": "rating",
"description": "`rating` (highest average first), `popularity` (most ratings), `price_asc`, `price_desc` or `discount` (largest discount first).\n\nProvider reference: allowed values [\"rating\", \"popularity\", \"price_asc\", \"price_desc\", \"discount\"]; default \"rating\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"rating",
"popularity",
"price_asc",
"price_desc",
"discount"
]
}
},
"wine_types": {
"description": "Any of these wine types.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Ship-to market whose offers and prices are shown, as Vivino's market switch supports it. Default US (prices in USD). Currencies: USD for US; EUR for NL, BE, DE, FR, IT, ES and AT; DKK, SEK, CHF, GBP, CAD and AUD for DK, SE, CH, GB, CA and AU.
Provider reference: allowed values ["NL", "BE", "DE", "FR", "IT", "ES", "AT", "DK", "SE", "CH", "GB", "US", "CA", "AU"]; default "US".
Response
Filtered wine discovery like Vivino's explore page: vintages offered in the ship-to market, filtered by wine type, country of origin, grape, minimum rating and price range, sorted by rating, popularity, price or discount. 24 vintages per page with winery, region, rating, ratings count and the offer price, bottle size and merchant link.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
count | number | |
currency | string | Currency of every price in this output (the market's currency). |
next | object | Input for the next page; null on the last page. |
observed_at_ms | number | |
page | number | |
page_size | number | |
results | object[] | |
ship_to | string | The ship-to market the prices are for; the program checks that Vivino applied it. |
sort | string | |
total | number | Vintages matching the filters that are offered in the market. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.