1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "bulletin",
12 "dateFrom": "",
13 "dateTo": "",
14 "province": "",
15 "municipality": "",
16 "brand": "",
17 "countries": [
18 "ES",
19 "DE"
20 ],
21 "fuels": [
22 "e95",
23 "diesel"
24 ],
25 "series": "with_taxes",
26 "week": "latest",
27 "monitorMode": false,
28 "maxResults": 50,
29 "strictSchema": true
30};
31
32
33const run = await client.actor("steadfetch/eu-fuel-price-extractor").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43