1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "listings": [
12 {
13 "listingId": "listing-101",
14 "listingUrl": "https://inventory.example.com/listing-101",
15 "title": "Two-bedroom apartment in Dubai Marina",
16 "price": 2450000,
17 "currency": "AED",
18 "dealType": "sale",
19 "propertyType": "Apartment",
20 "bedrooms": 2,
21 "areaSqm": 128.4,
22 "location": "Dubai Marina",
23 "latitude": 25.0805,
24 "longitude": 55.1403,
25 "listedAt": "2026-08-12T10:00:00Z",
26 "sourceName": "Licensed Gulf property export",
27 "sourceLicense": "Buyer confirms downstream processing and delivery rights",
28 "sourceRetrievedAt": "2026-08-12T12:00:00Z"
29 }
30 ]
31};
32
33
34const run = await client.actor("zinin/propertyfinder-gulf").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44