1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "data_freshness": "live",
12 "runMode": "sample",
13 "maxItems": 10,
14 "cat_metalworking": false,
15 "cat_woodworking": false,
16 "cat_construction": false,
17 "cat_transport": false,
18 "cat_agricultural": false,
19 "cat_tools": false,
20 "cat_more_industrial": false,
21 "cat_retail_office": false,
22 "brand_caterpillar": false,
23 "brand_komatsu": false,
24 "brand_liebherr": false,
25 "brand_volvo": false,
26 "brand_jcb": false,
27 "brand_hitachi": false,
28 "brand_john_deere": false,
29 "brand_kubota": false,
30 "brand_linde": false,
31 "brand_still": false,
32 "brand_jungheinrich": false,
33 "brand_toyota": false,
34 "brand_mazak": false,
35 "brand_jlg": false,
36 "brand_genie": false,
37 "country_de": false,
38 "country_nl": false,
39 "country_it": false,
40 "country_be": false,
41 "country_fr": false,
42 "country_ro": false,
43 "country_pl": false,
44 "country_cz": false,
45 "country_at": false,
46 "country_hr": false,
47 "country_es": false,
48 "country_pt": false,
49 "country_ch": false,
50 "datasetName": "surplex-data",
51 "outputSchema": "ftp28",
52 "proxyConfiguration": {
53 "useApifyProxy": true
54 }
55};
56
57
58const run = await client.actor("rastriq/surplex-auction-scraper").call(input);
59
60
61console.log('Results from dataset');
62console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
63const { items } = await client.dataset(run.defaultDatasetId).listItems();
64items.forEach((item) => {
65 console.dir(item);
66});
67
68