1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "events": [
10 {
11 "id": "sample-1",
12 "title": "Club meeting",
13 "start": "2026-11-05T18:30:00",
14 "end": "2026-11-05T20:00:00",
15 "location": "Main hall",
16 "description": "Monthly meeting.",
17 },
18 {
19 "id": "sample-2",
20 "title": "Open day",
21 "start": "2026-11-14",
22 "end": "2026-11-15",
23 },
24 ],
25 "fieldMap": {
26 "title": "title",
27 "start": "start",
28 "end": "end",
29 "allDay": "allDay",
30 "location": "location",
31 "description": "description",
32 "url": "url",
33 "id": "id",
34 },
35 "defaultTimeZone": "UTC",
36 "calendarName": "Events",
37 "storeName": "ics-feed-publisher",
38}
39
40
41run = client.actor("kingii98/json-and-csv-event-data-to-subscribable-ics-feed-publisher").call(run_input=run_input)
42
43
44print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48