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 "id": "biz-a",
14 "company": "Alpha Logistics LLC",
15 "state": "CA",
16 "status": "SUSPENDED",
17 "filingDate": "2026-09-20",
18 "industry": "Logistics",
19 "date": "2026-09-23"
20 },
21 {
22 "id": "biz-b",
23 "company": "Beta Retail Inc",
24 "state": "TX",
25 "status": "DISSOLVED",
26 "filingDate": "2026-09-18",
27 "industry": "Retail",
28 "date": "2026-09-23"
29 },
30 {
31 "id": "biz-c",
32 "company": "Gamma Health LLC",
33 "state": "FL",
34 "status": "ACTIVE",
35 "filingDate": "2026-09-21",
36 "industry": "Healthcare",
37 "date": "2026-09-23"
38 }
39 ],
40 "previousItems": [
41 {
42 "id": "biz-a",
43 "company": "Alpha Logistics LLC",
44 "state": "CA",
45 "status": "ACTIVE",
46 "filingDate": "2025-02-11",
47 "industry": "Logistics",
48 "date": "2026-08-23"
49 },
50 {
51 "id": "biz-b",
52 "company": "Beta Retail Inc",
53 "state": "TX",
54 "status": "ACTIVE",
55 "filingDate": "2024-07-04",
56 "industry": "Retail",
57 "date": "2026-08-23"
58 }
59 ]
60};
61
62
63const run = await client.actor("quanmatrix/state-business-dissolution-distress-intelligence").call(input);
64
65
66console.log('Results from dataset');
67console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
68const { items } = await client.dataset(run.defaultDatasetId).listItems();
69items.forEach((item) => {
70 console.dir(item);
71});
72
73