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 "filingId": "F1",
14 "property": "12 Main St",
15 "county": "Clark",
16 "lender": "Bank A",
17 "debtAmount": 240000,
18 "filingDate": "2026-09-01"
19 },
20 {
21 "filingId": "F2",
22 "property": "22 Oak St",
23 "county": "Clark",
24 "lender": "Bank A",
25 "debtAmount": 310000,
26 "filingDate": "2026-09-03"
27 },
28 {
29 "filingId": "F3",
30 "property": "44 Pine St",
31 "county": "Clark",
32 "lender": "Bank B",
33 "debtAmount": 280000,
34 "filingDate": "2026-09-05"
35 }
36 ],
37 "previousItems": [
38 {
39 "filingId": "P1",
40 "property": "12 Main St",
41 "county": "Clark",
42 "lender": "Bank A",
43 "debtAmount": 220000,
44 "filingDate": "2026-08-01"
45 }
46 ]
47};
48
49
50const run = await client.actor("quanmatrix/foreclosure-filing-acceleration-intelligence").call(input);
51
52
53console.log('Results from dataset');
54console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
55const { items } = await client.dataset(run.defaultDatasetId).listItems();
56items.forEach((item) => {
57 console.dir(item);
58});
59
60