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