1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "entityType": "beer",
13 "queries": [
14 "hazy ipa"
15 ],
16 "breweries": [
17 "Dogfish Head Craft Brewery"
18 ],
19 "urls": [
20 "https://untappd.com/b/blue-moon-brewing-company-belgian-white/3839",
21 "https://untappd.com/beer/top_rated?type=belgian-quad"
22 ],
23 "incrementalMode": false,
24 "emitUnchanged": false,
25 "emitExpired": false,
26 "proxy": {
27 "useApifyProxy": true
28 }
29};
30
31
32const run = await client.actor("abotapi/untappd-scraper").call(input);
33
34
35console.log('Results from dataset');
36console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42