1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "subject": {
10 "address": "15 Broad St, Boston, MA",
11 "bedrooms": 2,
12 "bathrooms": 1,
13 "propertyType": "apartment",
14 },
15 "comparables": [
16 {
17 "id": "comp-1",
18 "address": "19 Broad St, Boston, MA",
19 "rentMonthly": 4200,
20 "currency": "USD",
21 "bedrooms": 2,
22 "bathrooms": 1,
23 "propertyType": "apartment",
24 "observedAt": "2026-08-15T00:00:00.000Z",
25 "sourceUrl": "https://example.com/listings/comp-1",
26 },
27 {
28 "id": "comp-2",
29 "address": "23 Broad St, Boston, MA",
30 "rentMonthly": 4350,
31 "currency": "USD",
32 "bedrooms": 2,
33 "bathrooms": 1,
34 "propertyType": "apartment",
35 "observedAt": "2026-08-20T00:00:00.000Z",
36 "sourceUrl": "https://example.com/listings/comp-2",
37 },
38 {
39 "id": "comp-3",
40 "address": "31 Broad St, Boston, MA",
41 "rentMonthly": 4100,
42 "currency": "USD",
43 "bedrooms": 2,
44 "bathrooms": 1,
45 "propertyType": "apartment",
46 "observedAt": "2026-08-27T00:00:00.000Z",
47 "sourceUrl": "https://example.com/listings/comp-3",
48 },
49 ],
50 "currency": "USD",
51 "analysisMethod": "weightedMedian",
52 "maxComparableAgeDays": 365,
53 "maxComparableDistanceMiles": 5,
54 "minimumComparableScore": 0.5,
55 "outlierStrategy": "iqr",
56 "maxComparablesInReport": 25,
57}
58
59
60run = client.actor("khadinakbar/rentometer-alternative").call(run_input=run_input)
61
62
63print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
64for item in client.dataset(run.default_dataset_id).iterate_items():
65 print(item)
66
67