1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "authorization": "I confirm I am authorized to process and deliver these Willhaben listing records",
12 "sourceContext": "advertiser_authorized_export",
13 "listings": [
14 {
15 "listingId": "authorized-vienna-1001",
16 "listingUrl": "https://www.willhaben.at/iad/immobilien/d/mietwohnungen/wien/wien-1020-leopoldstadt/authorized-example-1001/",
17 "title": "Authorized Vienna apartment evidence",
18 "price": 1290,
19 "currency": "EUR",
20 "dealType": "rent",
21 "propertyType": "Wohnung",
22 "rooms": 2,
23 "areaSqm": 54.5,
24 "location": "Wien, 2. Bezirk, Leopoldstadt",
25 "latitude": 48.216,
26 "longitude": 16.392,
27 "postedAt": "2026-08-12T08:30:00Z",
28 "description": "Buyer-supplied minimal listing summary with unnecessary personal contact data removed.",
29 "images": [],
30 "sourceName": "Advertiser-authorized listing export",
31 "sourceLicense": "Buyer confirms authorization to process and deliver this listing record.",
32 "sourceRetrievedAt": "2026-08-13T00:00:00Z"
33 }
34 ]
35};
36
37
38const run = await client.actor("zinin/willhaben-vienna").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48