1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "reviewsfilter": [
12 1,
13 2,
14 3,
15 4,
16 5
17 ],
18 "winetypes": [
19 "Red",
20 "White",
21 "Rose",
22 "Sparkling",
23 "Dessert",
24 "Fortified"
25 ],
26 "proxy": {
27 "useApifyProxy": true,
28 "apifyProxyGroups": [
29 "RESIDENTIAL"
30 ]
31 }
32};
33
34
35const run = await client.actor("canadesk/vivino").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45