1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "observations": [
12 {
13 "location_identifier": "REGION^87490",
14 "deal_type": "sale",
15 "found": true,
16 "price": 450000,
17 "currency": "GBP",
18 "property_type": "Terraced",
19 "rooms": 3,
20 "area_sqm": 90,
21 "posted_date": "2026-08-01T09:00:00Z",
22 "partial": false,
23 "source_portal": "rightmove"
24 },
25 {
26 "location_identifier": "REGION^87490",
27 "deal_type": "sale",
28 "found": true,
29 "price": 475000,
30 "currency": "GBP",
31 "property_type": "Terraced",
32 "rooms": 3,
33 "area_sqm": 95,
34 "posted_date": "2026-08-02T09:00:00Z",
35 "partial": false,
36 "source_portal": "rightmove"
37 },
38 {
39 "location_identifier": "REGION^87490",
40 "deal_type": "sale",
41 "found": true,
42 "price": 525000,
43 "currency": "GBP",
44 "property_type": "Terraced",
45 "rooms": 3,
46 "area_sqm": 100,
47 "posted_date": "2026-08-03T09:00:00Z",
48 "partial": false,
49 "source_portal": "rightmove"
50 }
51 ],
52 "reportLabel": "London asking-price sample",
53 "minimumSegmentSize": 3,
54 "acknowledgeBuyerAuthority": true
55};
56
57
58const run = await client.actor("zinin/rightmove-market-comps-analyzer").call(input);
59
60
61console.log('Results from dataset');
62console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
63const { items } = await client.dataset(run.defaultDatasetId).listItems();
64items.forEach((item) => {
65 console.dir(item);
66});
67
68