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