1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "noticeId": "W1",
12 "company": "Acme",
13 "employeesAffected": 400,
14 "state": "CA",
15 "noticeDate": "2026-08-01",
16 },
17 {
18 "noticeId": "W2",
19 "company": "Acme",
20 "employeesAffected": 250,
21 "state": "TX",
22 "noticeDate": "2026-08-15",
23 },
24 {
25 "noticeId": "W3",
26 "company": "Beta",
27 "employeesAffected": 100,
28 "state": "NY",
29 "noticeDate": "2026-08-10",
30 },
31 ],
32 "previousItems": [{
33 "noticeId": "P1",
34 "company": "Acme",
35 "employeesAffected": 150,
36 "state": "CA",
37 "noticeDate": "2026-05-01",
38 }],
39}
40
41
42run = client.actor("quanmatrix/warn-layoff-distress-intelligence").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49