1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "urls": [
12 "https://www.dubicars.com/2022-mercedes-benz-gle-450-amg-uaes-very-best-example-aed-3523-per-month-892918.html",
13 "https://www.dubicars.com/2025-mercedes-benz-a45-amg-s-uaes-very-best-example-aed-3086-per-month-947959.html",
14 "https://www.dubicars.com/2022-mercedes-benz-gle-53-amg-coupe-uaes-very-best-example-aed-4147-per-month-934864.html",
15 "https://www.dubicars.com/2024-mercedes-benz-gle-63-amg-2024-mercedes-amg-gle-63-s-4matic-coupe-brand-new-full-option-european-specs-800316.html",
16 "https://www.dubicars.com/2026-mercedes-benz-g63-amg-2026-mercedes-amg-g-63-double-night-package-40l-v8-biturbo-585-hp-979576.html"
17 ],
18 "ignore_url_failures": true
19};
20
21
22const run = await client.actor("alexist/dubicars-automotive-details-scraper").call(input);
23
24
25console.log('Results from dataset');
26console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
27const { items } = await client.dataset(run.defaultDatasetId).listItems();
28items.forEach((item) => {
29 console.dir(item);
30});
31
32