1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "m1",
12 "title": "Downtown Lisbon",
13 "listingCount": 820,
14 "occupancyPct": 78,
15 "avgPrice": 142,
16 "reviewCount": 18400,
17 "demandScore": 88,
18 "competitionScore": 57,
19 "priceRoomPct": 22,
20 },
21 {
22 "id": "m2",
23 "title": "Old Town saturated",
24 "listingCount": 3200,
25 "occupancyPct": 54,
26 "avgPrice": 98,
27 "reviewCount": 54000,
28 "demandScore": 62,
29 "competitionScore": 94,
30 "priceRoomPct": 4,
31 },
32 ],
33 "previousItems": [{
34 "id": "m1",
35 "title": "Downtown Lisbon",
36 "listingCount": 690,
37 "occupancyPct": 72,
38 "avgPrice": 136,
39 "reviewCount": 14200,
40 "demandScore": 80,
41 "competitionScore": 61,
42 "priceRoomPct": 16,
43 }],
44}
45
46
47run = client.actor("quanmatrix/airbnb-market-saturation-pricing-intelligence").call(run_input=run_input)
48
49
50print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
51for item in client.dataset(run.default_dataset_id).iterate_items():
52 print(item)
53
54