1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "country": [
13 "de"
14 ],
15 "deLand": "be",
16 "deSort": "2",
17 "esAuctionStatus": "EJ",
18 "urls": [
19 "https://www.zvg-portal.de/index.php?button=showZvg&zvg_id=14429&land_abk=be",
20 "https://subastas.boe.es/detalleSubasta.php?idSub=SUB-JA-2026-263220&ver=1",
21 "https://subastas.boe.es/detalleSubasta.php?idSub=SUB-JA-2026-263220&ver=2",
22 "https://subastas.boe.es/detalleSubasta.php?idSub=SUB-JA-2026-263220&ver=3",
23 "https://subastas.boe.es/detalleSubasta.php?idSub=SUB-JA-2026-263220",
24 "https://subastas.boe.es/reg/detalleSubasta.php?idSub=SUB-JA-2026-263220",
25 "https://www.zvg-portal.de/index.php?button=Termine%20suchen",
26 "https://subastas.boe.es/subastas_ava.php"
27 ],
28 "maxItems": 20,
29 "proxy": {
30 "useApifyProxy": true
31 }
32};
33
34
35const run = await client.actor("abotapi/distressed-eu-scraper").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