1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "travellers": [{
10 "ref": "t1",
11 "trips": [
12 {
13 "country": "FR",
14 "from": "2026-03-01",
15 "to": "2026-03-30",
16 },
17 {
18 "country": "GB",
19 "from": "2026-04-10",
20 "to": "2026-04-20",
21 },
22 {
23 "country": "ES",
24 "from": "2026-06-01",
25 "to": "2026-07-10",
26 },
27 {
28 "country": "IT",
29 "from": "2026-09-20",
30 "to": "2026-10-05",
31 },
32 ],
33 }],
34 "rules": ["schengen-90-180"],
35 "plan": {
36 "entry": "2026-11-01",
37 "days": 30,
38 "country": "FR",
39 },
40}
41
42
43run = client.actor("fetchgrove/stay-limit-calculator").call(run_input=run_input)
44
45
46print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
47for item in client.dataset(run.default_dataset_id).iterate_items():
48 print(item)
49
50