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 "parcelId": "P-100",
14 "address": "12 Main St",
15 "county": "Cook",
16 "lienAmount": 9200,
17 "filingDate": "2026-09-01"
18 },
19 {
20 "parcelId": "P-100",
21 "address": "12 Main St",
22 "county": "Cook",
23 "lienAmount": 3100,
24 "filingDate": "2026-08-01"
25 },
26 {
27 "parcelId": "P-200",
28 "address": "44 Oak Ave",
29 "county": "Cook",
30 "lienAmount": 7600,
31 "filingDate": "2026-09-03"
32 }
33 ],
34 "previousItems": [
35 {
36 "parcelId": "P-100",
37 "address": "12 Main St",
38 "county": "Cook",
39 "lienAmount": 3100,
40 "filingDate": "2026-08-01"
41 }
42 ]
43};
44
45
46const run = await client.actor("quanmatrix/property-tax-lien-distress-intelligence").call(input);
47
48
49console.log('Results from dataset');
50console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56