1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "tasks": [
9 {
10 "type": "addBusinessDays",
11 "date": "2026-10-30",
12 "days": 3,
13 },
14 {
15 "type": "isBusinessDay",
16 "date": "2026-11-03",
17 },
18 {
19 "type": "businessDaysBetween",
20 "from": "2026-10-01",
21 "to": "2026-11-01",
22 },
23 {
24 "type": "holidays",
25 "year": 2027,
26 },
27 {
28 "type": "toWareki",
29 "date": "2026-10-14",
30 },
31 {
32 "type": "fromWareki",
33 "text": "令和元年5月1日",
34 },
35 {
36 "type": "info",
37 "date": "2026-12-31",
38 },
39 ] }
40
41
42run = client.actor("fontom.ai.plus/japan-business-calendar").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