1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "jurisdiction": "Austin TX",
12 "ruleId": "AUS-2026-09",
13 "ruleType": "license",
14 "restrictionValue": 1,
15 "effectiveDate": "2026-10-01",
16 },
17 {
18 "jurisdiction": "Austin TX",
19 "ruleId": "AUS-NIGHT",
20 "ruleType": "night cap",
21 "restrictionValue": 90,
22 "effectiveDate": "2026-10-01",
23 },
24 {
25 "jurisdiction": "Miami Beach FL",
26 "ruleId": "MIA-ZONE",
27 "ruleType": "zoning restriction",
28 "restrictionValue": 1,
29 "effectiveDate": "2026-09-15",
30 },
31 ],
32 "previousItems": [
33 {
34 "jurisdiction": "Austin TX",
35 "ruleId": "AUS-2026-06",
36 "ruleType": "license",
37 "restrictionValue": 0,
38 "effectiveDate": "2026-06-01",
39 },
40 {
41 "jurisdiction": "Austin TX",
42 "ruleId": "AUS-NIGHT",
43 "ruleType": "night cap",
44 "restrictionValue": 180,
45 "effectiveDate": "2026-06-01",
46 },
47 ],
48}
49
50
51run = client.actor("quanmatrix/short-term-rental-regulation-change-intelligence").call(run_input=run_input)
52
53
54print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
55for item in client.dataset(run.default_dataset_id).iterate_items():
56 print(item)
57
58