1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "discoverySources": [],
12 "queryThemes": [
13 "outdoor gear nz",
14 "camping stores nz",
15 "hiking gear nz",
16 "surf shops nz",
17 "activewear nz",
18 "sports stores nz",
19 "travel gear nz",
20 "hunting fishing stores nz"
21 ],
22 "storeUrls": [
23 "https://www.bivouac.co.nz"
24 ],
25 "scopeKeywords": [
26 "outdoor",
27 "camping",
28 "hiking",
29 "tramping",
30 "climbing",
31 "surf",
32 "sports",
33 "activewear",
34 "travel gear",
35 "footwear",
36 "boots",
37 "hunting",
38 "fishing",
39 "packs",
40 "apparel"
41 ],
42 "excludeDomains": []
43};
44
45
46const run = await client.actor("k0nkupa/nz-active-lifestyle-retailer-discovery").call(input);
47
48
49console.log('Results from dataset');
50console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56