1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "currentItems": [
12 {
13 "listingId": "L1",
14 "property": "Tower A",
15 "market": "Austin",
16 "monthlyRent": 2200,
17 "concessionValue": 300,
18 "date": "2026-09-10"
19 },
20 {
21 "listingId": "L2",
22 "property": "Tower A",
23 "market": "Austin",
24 "monthlyRent": 2300,
25 "concessionValue": 400,
26 "date": "2026-09-10"
27 },
28 {
29 "listingId": "L3",
30 "property": "Park B",
31 "market": "Austin",
32 "monthlyRent": 2100,
33 "concessionValue": 100,
34 "date": "2026-09-10"
35 }
36 ],
37 "previousItems": [
38 {
39 "listingId": "P1",
40 "property": "Tower A",
41 "market": "Austin",
42 "monthlyRent": 2250,
43 "concessionValue": 100,
44 "date": "2026-08-01"
45 },
46 {
47 "listingId": "P2",
48 "property": "Park B",
49 "market": "Austin",
50 "monthlyRent": 2100,
51 "concessionValue": 0,
52 "date": "2026-08-01"
53 }
54 ]
55};
56
57
58const run = await client.actor("quanmatrix/multifamily-rent-concession-drift-intelligence").call(input);
59
60
61console.log('Results from dataset');
62console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
63const { items } = await client.dataset(run.defaultDatasetId).listItems();
64items.forEach((item) => {
65 console.dir(item);
66});
67
68