1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "langId": 4,
12 "countryId": 62,
13 "typeId": 1,
14 "manufacturerId": 184,
15 "modelId": 5626,
16 "vehicleId": 19942,
17 "articleId": 6925928,
18 "articleNo": "002-001-000001R",
19 "productGroupId": 100260,
20 "supplierId": 4,
21 "articleOemSearchNo": "8F0513035N",
22 "vinNo": "WDBFA68F42F202731"
23};
24
25
26const run = await client.actor("making-data-meaningful/tecdoc").call(input);
27
28
29console.log('Results from dataset');
30console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
31const { items } = await client.dataset(run.defaultDatasetId).listItems();
32items.forEach((item) => {
33 console.dir(item);
34});
35
36