1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "eiaAreas": [
12 "US"
13 ],
14 "watchUrls": [],
15 "rateKeywords": [
16 "surcharge",
17 "fuel",
18 "GRI",
19 "rate increase",
20 "peak season",
21 "bunker",
22 "BAF",
23 "accessorial",
24 "fee",
25 "tariff",
26 "congestion",
27 "emergency",
28 "detention",
29 "demurrage",
30 "per container",
31 "per TEU",
32 "per package",
33 "per shipment",
34 "per kg"
35 ]
36};
37
38
39const run = await client.actor("leons0016/freight-surcharge-monitor").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49