1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "properties": [
12 {
13 "units": "1",
14 "listPrice": "325000",
15 "purchasePrice": "300000",
16 "arv": "400000",
17 "closingCosts": "6000",
18 "rent": "3500",
19 "otherIncome": "0",
20 "vacancy": "5",
21 "rentGrowth": "3",
22 "taxes": "4500",
23 "insurance": "2200",
24 "utilities": "0",
25 "hoa": "0",
26 "maintenancePct": "5",
27 "managementPct": "8",
28 "capexPct": "5",
29 "otherExpense": "0",
30 "downPct": "25",
31 "rate": "7.25",
32 "amortYears": "30",
33 "loanFees": "3000",
34 "cashRehab": "0",
35 "initialReserves": "0",
36 "targetDscr": "1.30",
37 "targetMonthlyCfPct": "0.20",
38 "targetCoc": "10",
39 "targetCapRate": "7",
40 "maxCashPct": "30",
41 "rehab": "35000",
42 "rehabCont": "10",
43 "holdingMonths": "6",
44 "monthlyHolding": "1200",
45 "refiLtv": "75",
46 "refiRate": "7.0",
47 "refiAmort": "30",
48 "refiCosts": "6500",
49 "desiredRefi": "0",
50 "salePrice": "400000",
51 "sellingPct": "7",
52 "flipMonths": "6",
53 "flipFinance": "12000",
54 "targetFlipMarginPct": "12",
55 "targetFlipRoi": "20",
56 "bankPct": "70",
57 "sellerPct": "20",
58 "cashPct": "10",
59 "bankRate": "7.25",
60 "sellerRate": "4",
61 "sellerAmort": "30",
62 "sellerBalloon": "5",
63 "sellerDeferralMonths": "0",
64 "convMarketRate": "6.75",
65 "convMarketDown": "25",
66 "dscrMarketRate": "7.50",
67 "dscrMarketDown": "25",
68 "dscrRefiRate": "7.50",
69 "requiredRefiDscr": "1.25",
70 "flipMarketRate": "9.50",
71 "flipPoints": "2.0",
72 "flipLtc": "85",
73 "rehabFundingPct": "100",
74 "rateSensitivity": "0.50",
75 "rateAsOf": "2026-09-07",
76 "wCash": "20",
77 "wDscr": "20",
78 "wCoc": "15",
79 "wEquity": "20",
80 "wCashEff": "15",
81 "wRisk": "10",
82 "buyBoxName": "My Buy Box",
83 "bbTargetMonthlyCfPct": "0.20",
84 "bbTargetDscr": "1.30",
85 "bbTargetCoc": "10",
86 "bbTargetCapRate": "7",
87 "targetEquityPct": "15",
88 "bbTargetFlipMarginPct": "12",
89 "bbTargetFlipRoi": "20",
90 "bbMaxCashPct": "30",
91 "maxBreakEvenPct": "85",
92 "bbWCash": "20",
93 "bbWDscr": "20",
94 "bbWCoc": "15",
95 "bbWEquity": "20",
96 "bbWCashEff": "15",
97 "bbWRisk": "10",
98 "minBedrooms": "2",
99 "id": "synthetic-example-001"
100 }
101 ]
102};
103
104
105const run = await client.actor("pioneering_telecast/onedeal-property-batch-analyzer").call(input);
106
107
108console.log('Results from dataset');
109console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
110const { items } = await client.dataset(run.defaultDatasetId).listItems();
111items.forEach((item) => {
112 console.dir(item);
113});
114
115