1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sourceMode": "list",
12 "investorGoal": "Cash-flowing 3+ bedroom single-family homes under $200k in Ohio; light rehab is fine, no condos with high HOA.",
13 "maxDiscoveryChargeUsd": 0.5,
14 "itemsList": [
15 {
16 "zpid": "900000101",
17 "propertyUrl": "https://www.zillow.com/homedetails/3418-Sample-Ave-Cleveland-OH-44109/900000101_zpid/",
18 "cardType": "home",
19 "isValid": true,
20 "listingAddress": {
21 "full": "3418 Sample Ave, Cleveland, OH 44109",
22 "street": "3418 Sample Ave",
23 "city": "Cleveland",
24 "state": "OH",
25 "zipCode": "44109"
26 },
27 "coordinates": {
28 "latitude": 41.4461,
29 "longitude": -81.7062
30 },
31 "listingStatus": "forSale",
32 "homeType": "SINGLE_FAMILY",
33 "listingPrice": {
34 "amount": 129000,
35 "currency": "USD"
36 },
37 "bedrooms": 3,
38 "bathrooms": 1,
39 "livingArea": 1344,
40 "livingAreaUnit": "sqft",
41 "lotArea": {
42 "formatted": "4,356 sqft"
43 },
44 "zestimate": 142000,
45 "rentZestimate": 1650,
46 "taxAssessedValue": 98000,
47 "daysOnZillow": 41,
48 "priceChange": -6000,
49 "priceChangedAt": "2026-09-14",
50 "priceReduction": "$6,000 (Sep 14)",
51 "listingType": {
52 "isFSBO": false,
53 "isForeclosure": false,
54 "isBankOwned": false,
55 "isForAuction": false,
56 "isComingSoon": false
57 },
58 "broker": {
59 "name": "Sample Realty Group",
60 "phoneNumber": "(216) 555-0142"
61 },
62 "mainImage": "https://photos.zillowstatic.com/fp/sample-900000101-p_e.jpg",
63 "photoCount": 24,
64 "marketingTagline": "Updated 3-bed with new furnace, tenant-ready",
65 "searchUrl": "https://www.zillow.com/cleveland-oh/",
66 "attributionInfo": {
67 "agentName": "Sample Agent (demo)",
68 "agentPhoneNumber": "(216) 555-0199",
69 "agentEmail": "agent@example.com"
70 },
71 "zipRentComp": 1600,
72 "soldCompPricePerSqft": 102.5
73 },
74 {
75 "zpid": "900000102",
76 "propertyUrl": "https://www.zillow.com/homedetails/1207-Example-St-Cleveland-OH-44109/900000102_zpid/",
77 "cardType": "home",
78 "isValid": true,
79 "listingAddress": {
80 "full": "1207 Example St, Cleveland, OH 44109",
81 "street": "1207 Example St",
82 "city": "Cleveland",
83 "state": "OH",
84 "zipCode": "44109"
85 },
86 "coordinates": {
87 "latitude": 41.4432,
88 "longitude": -81.7101
89 },
90 "listingStatus": "forSale",
91 "homeType": "SINGLE_FAMILY",
92 "listingPrice": {
93 "amount": 89900,
94 "currency": "USD"
95 },
96 "bedrooms": 3,
97 "bathrooms": 1,
98 "livingArea": 1120,
99 "livingAreaUnit": "sqft",
100 "lotArea": {
101 "formatted": "3,920 sqft"
102 },
103 "zestimate": 104500,
104 "rentZestimate": 1350,
105 "taxAssessedValue": 71000,
106 "daysOnZillow": 96,
107 "listingType": {
108 "isFSBO": true,
109 "isForeclosure": false,
110 "isBankOwned": false,
111 "isForAuction": false,
112 "isComingSoon": false
113 },
114 "broker": {
115 "name": "Listed by owner"
116 },
117 "mainImage": "https://photos.zillowstatic.com/fp/sample-900000102-p_e.jpg",
118 "photoCount": 9,
119 "marketingTagline": "Investor special - sold as-is, cash only, needs TLC",
120 "searchUrl": "https://www.zillow.com/cleveland-oh/"
121 },
122 {
123 "zpid": "900000103",
124 "propertyUrl": "https://www.zillow.com/homedetails/2255-Demo-Rd-Cleveland-OH-44109/900000103_zpid/",
125 "cardType": "home",
126 "isValid": true,
127 "listingAddress": {
128 "full": "2255 Demo Rd, Cleveland, OH 44109",
129 "street": "2255 Demo Rd",
130 "city": "Cleveland",
131 "state": "OH",
132 "zipCode": "44109"
133 },
134 "coordinates": {
135 "latitude": 41.4489,
136 "longitude": -81.7015
137 },
138 "listingStatus": "foreclosure",
139 "homeType": "MULTI_FAMILY",
140 "listingPrice": {
141 "amount": 165000,
142 "currency": "USD"
143 },
144 "bedrooms": 4,
145 "bathrooms": 2,
146 "livingArea": 1850,
147 "livingAreaUnit": "sqft",
148 "zestimate": 188000,
149 "rentZestimate": 2300,
150 "taxAssessedValue": 132000,
151 "daysOnZillow": 12,
152 "listingType": {
153 "isFSBO": false,
154 "isForeclosure": true,
155 "isBankOwned": false,
156 "isForAuction": false,
157 "isComingSoon": false
158 },
159 "broker": {
160 "name": "Sample Asset Brokers",
161 "phoneNumber": "(216) 555-0178"
162 },
163 "mainImage": "https://photos.zillowstatic.com/fp/sample-900000103-p_e.jpg",
164 "photoCount": 4,
165 "marketingTagline": "Up/down duplex, foreclosure, estate sale",
166 "searchUrl": "https://www.zillow.com/cleveland-oh/"
167 },
168 {
169 "zpid": "900000104",
170 "propertyUrl": "https://www.zillow.com/homedetails/77-Placeholder-Ct-4B-Cleveland-OH-44109/900000104_zpid/",
171 "cardType": "home",
172 "isValid": true,
173 "listingAddress": {
174 "full": "77 Placeholder Ct #4B, Cleveland, OH 44109",
175 "street": "77 Placeholder Ct #4B",
176 "city": "Cleveland",
177 "state": "OH",
178 "zipCode": "44109"
179 },
180 "listingStatus": "forSale",
181 "homeType": "CONDO",
182 "listingPrice": {
183 "amount": 149000,
184 "currency": "USD"
185 },
186 "bedrooms": 2,
187 "bathrooms": 2,
188 "livingArea": 980,
189 "livingAreaUnit": "sqft",
190 "zestimate": 147000,
191 "rentZestimate": 1150,
192 "taxAssessedValue": 120000,
193 "daysOnZillow": 8,
194 "listingType": {
195 "isFSBO": false,
196 "isForeclosure": false,
197 "isBankOwned": false,
198 "isForAuction": false,
199 "isComingSoon": false
200 },
201 "broker": {
202 "name": "Sample Realty Group"
203 },
204 "photoCount": 31,
205 "marketingTagline": "Move-in ready condo with lake view",
206 "searchUrl": "https://www.zillow.com/cleveland-oh/"
207 },
208 {
209 "zpid": "900000105",
210 "propertyUrl": "https://www.zillow.com/homedetails/560-Mock-Blvd-Columbus-OH-43207/900000105_zpid/",
211 "cardType": "home",
212 "isValid": true,
213 "listingAddress": {
214 "full": "560 Mock Blvd, Columbus, OH 43207",
215 "street": "560 Mock Blvd",
216 "city": "Columbus",
217 "state": "OH",
218 "zipCode": "43207"
219 },
220 "listingStatus": "forSale",
221 "homeType": "SINGLE_FAMILY",
222 "listingPrice": {
223 "amount": 219000,
224 "currency": "USD"
225 },
226 "bedrooms": 3,
227 "bathrooms": 2,
228 "livingArea": 1560,
229 "livingAreaUnit": "sqft",
230 "zestimate": 226000,
231 "rentZestimate": 1950,
232 "taxAssessedValue": 180000,
233 "daysOnZillow": 30,
234 "priceChange": -10000,
235 "priceChangedAt": "2026-09-20",
236 "listingType": {
237 "isFSBO": false,
238 "isForeclosure": false,
239 "isBankOwned": false,
240 "isForAuction": false,
241 "isComingSoon": false
242 },
243 "broker": {
244 "name": "Example Homes LLC"
245 },
246 "photoCount": 18,
247 "searchUrl": "https://www.zillow.com/columbus-oh/"
248 },
249 {
250 "zpid": "900000106",
251 "propertyUrl": "https://www.zillow.com/b/sample-lofts-cleveland-oh/",
252 "cardType": "building",
253 "isValid": true,
254 "listingAddress": {
255 "full": "Sample Lofts, Cleveland, OH 44113",
256 "city": "Cleveland",
257 "state": "OH",
258 "zipCode": "44113"
259 },
260 "listingStatus": "forRent"
261 }
262 ],
263 "discoveryInput": {}
264};
265
266
267const run = await client.actor("rich_minds/zillow-deal-finder-ai").call(input);
268
269
270console.log('Results from dataset');
271console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
272const { items } = await client.dataset(run.defaultDatasetId).listItems();
273items.forEach((item) => {
274 console.dir(item);
275});
276
277