1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sourceId": "fictional-us-demo",
12 "monitorId": "apify-qa-demo",
13 "authorizationConfirmed": true,
14 "listings": [
15 {
16 "id": "DEMO-US-001",
17 "title": "Fictional Austin townhome — demo only",
18 "description": "Price reduced. This fictional listing exists only to demonstrate literal text matching.",
19 "price": 300000,
20 "currency": "USD",
21 "country": "US",
22 "location": "Austin, TX",
23 "region": "Texas",
24 "area": 1500,
25 "areaUnit": "sqft",
26 "rooms": 3,
27 "listedAt": "2026-10-01",
28 "sourceUrl": "https://example.com/property/demo-us-001"
29 },
30 {
31 "id": "DEMO-US-002",
32 "title": "Fictional Denver apartment — demo only",
33 "description": "Urgent viewing request. Fictional sample; no actual property is offered.",
34 "price": 240000,
35 "currency": "USD",
36 "country": "US",
37 "location": "Denver, CO",
38 "region": "Colorado",
39 "listedAt": "2026-10-02",
40 "sourceUrl": "https://example.com/property/demo-us-002"
41 },
42 {
43 "id": "DEMO-US-003",
44 "title": "Fictional Portland cottage — demo only",
45 "description": "Fictional sample with no configured keyword.",
46 "price": 350000,
47 "currency": "USD",
48 "country": "US",
49 "location": "Portland, OR",
50 "region": "Oregon",
51 "area": 92,
52 "areaUnit": "sqm",
53 "rooms": 2,
54 "sourceUrl": "https://example.com/property/demo-us-003"
55 }
56 ]
57};
58
59
60const run = await client.actor("afkdigital/property-listing-signal-monitor").call(input);
61
62
63console.log('Results from dataset');
64console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
65const { items } = await client.dataset(run.defaultDatasetId).listItems();
66items.forEach((item) => {
67 console.dir(item);
68});
69
70