1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "items": [
9 {
10 "label": "Invoice due in 10 working days",
11 "mode": "add-working-days",
12 "date": "2026-12-18",
13 "days": 10,
14 },
15 {
16 "label": "Is Boxing Day substitute a working day?",
17 "mode": "is-working-day",
18 "date": "2026-12-28",
19 },
20 {
21 "label": "Working days in April 2026",
22 "mode": "working-days-between",
23 "date": "2026-03-31",
24 "to": "2026-04-30",
25 },
26 {
27 "label": "Scotland: next working day after Hogmanay",
28 "mode": "next-working-day",
29 "date": "2026-12-31",
30 "nation": "scotland",
31 },
32 {
33 "label": "Serve application notice (3 clear days)",
34 "mode": "cpr-days-before",
35 "date": "2026-04-08",
36 "days": 3,
37 },
38 {
39 "label": "Defence due (14 days, court office)",
40 "mode": "cpr-within-days",
41 "date": "2026-12-12",
42 "days": 14,
43 "courtOffice": True,
44 },
45 ] }
46
47
48run = client.actor("landlordtools/uk-working-days").call(run_input=run_input)
49
50
51print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
52for item in client.dataset(run.default_dataset_id).iterate_items():
53 print(item)
54
55