1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "states": [
12 "FL",
13 "TX",
14 "GA",
15 "NC",
16 "AZ",
17 "OH"
18 ],
19 "cities": [
20 "Tampa",
21 "Dallas",
22 "Atlanta",
23 "Phoenix"
24 ],
25 "minPrice": 25000,
26 "maxPrice": 1500000,
27 "maxArvPercentage": 85,
28 "propertyTypes": [
29 "Single Family",
30 "Multi-Family"
31 ],
32 "sortBy": "newest",
33 "maxDeals": 20,
34 "outputFormat": "flat_and_nested",
35 "stateKey": "INVESTORLIFT-STATE",
36 "maxRequestsPerRun": 120,
37 "proxyConfiguration": {
38 "useApifyProxy": false
39 }
40};
41
42
43const run = await client.actor("unique_dev/wholesale-real-estate-deals-scraper-for-investorlift").call(input);
44
45
46console.log('Results from dataset');
47console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
48const { items } = await client.dataset(run.defaultDatasetId).listItems();
49items.forEach((item) => {
50 console.dir(item);
51});
52
53