1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "areaNames": [
12 "Bowen Island",
13 "Altamont",
14 "Ambleside",
15 "Bayridge",
16 "British Properties",
17 "Canterbury WV",
18 "Caulfeild",
19 "Cedardale",
20 "Chartwell",
21 "Chelsea Park",
22 "Cypress",
23 "Cypress Park Estates",
24 "Deer Ridge WV",
25 "Dundarave",
26 "Eagle Harbour",
27 "Eagleridge",
28 "Furry Creek",
29 "Gleneagles",
30 "Glenmore",
31 "Horseshoe Bay WV",
32 "Howe Sound",
33 "Lions Bay",
34 "Olde Caulfeild",
35 "Panorama Village",
36 "Passage Island",
37 "Porteau Cove",
38 "Queens",
39 "Rockridge",
40 "Sandy Cove",
41 "Sentinel Hill",
42 "Upper Caulfeild",
43 "West Bay",
44 "Westhill",
45 "Westmount WV",
46 "Whitby Estates",
47 "Whytecliff",
48 "Blueridge NV",
49 "Boulevard",
50 "Braemar",
51 "Calverhall",
52 "Canyon Heights NV",
53 "Capilano NV",
54 "Central Lonsdale",
55 "Deep Cove",
56 "Delbrook",
57 "Dollarton",
58 "Edgemont",
59 "Forest Hills NV",
60 "Grouse Woods",
61 "Harbourside",
62 "Indian Arm",
63 "Indian River",
64 "Lower Lonsdale",
65 "Lynn Valley",
66 "Mosquito Creek",
67 "Norgate",
68 "Northlands",
69 "Pemberton Heights",
70 "Pemberton NV",
71 "Princess Park",
72 "Queensbury",
73 "Roche Point",
74 "Seymour NV",
75 "Tempe",
76 "Upper Delbrook",
77 "Upper Lonsdale",
78 "Westlynn",
79 "Westlynn Terrace",
80 "Windsor Park NV",
81 "Woodlands-Sunshine-Cascade",
82 "Arbutus",
83 "Cambie",
84 "Champlain Heights",
85 "Coal Harbour",
86 "Collingwood VE",
87 "Downtown VE",
88 "Downtown VW",
89 "Dunbar",
90 "Fairview VW",
91 "False Creek",
92 "Fraser VE",
93 "Fraserview VE",
94 "Fraserview VW",
95 "Grandview Woodland",
96 "Hastings",
97 "Hastings Sunrise",
98 "Kerrisdale",
99 "Killarney VE",
100 "Kitsilano",
101 "Knight",
102 "MacKenzie Heights",
103 "Main",
104 "Marpole",
105 "Mount Pleasant VE",
106 "Mount Pleasant VW",
107 "Oakridge VW",
108 "Point Grey",
109 "Quilchena",
110 "Renfrew Heights",
111 "Renfrew VE",
112 "Shaughnessy",
113 "South Marine",
114 "South Cambie",
115 "South Granville",
116 "South Vancouver",
117 "Southlands",
118 "S.W. Marine",
119 "Strathcona",
120 "University VW",
121 "Victoria VE",
122 "West End VW",
123 "Yaletown"
124 ]
125};
126
127
128const run = await client.actor("getdataforme/zealty-search-scraper").call(input);
129
130
131console.log('Results from dataset');
132console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
133const { items } = await client.dataset(run.defaultDatasetId).listItems();
134items.forEach((item) => {
135 console.dir(item);
136});
137
138