1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "lang_langId_3": 4,
12 "lang_langId_4": 4,
13 "lang_langId_5": 4,
14 "lang_countryId_5": 63,
15 "models_typeId_1": 1,
16 "models_langId_1": 4,
17 "models_countryFilterId_1": 63,
18 "models_typeId_2": 1,
19 "models_modelId_2": 5626,
20 "models_langId_2": 4,
21 "models_countryFilterId_2": 63,
22 "models_typeId_3": 1,
23 "models_vehicleId_3": 19942,
24 "models_langId_3": 4,
25 "models_countryFilterId_3": 63,
26 "vehicle_typeId_2": 1,
27 "vehicle_vehicleId_2": 53313,
28 "vehicle_langId_2": 4,
29 "vehicle_countryFilterId_2": 63,
30 "vehicle_typeId_3": 1,
31 "vehicle_modelId_3": 10459,
32 "vehicle_langId_3": 4,
33 "vehicle_countryFilterId_3": 63,
34 "vehicle_engId_4": 14308,
35 "vehicle_langId_4": 4,
36 "vehicle_typeId_5": 1,
37 "vehicle_modelId_5": 10459,
38 "vehicle_langId_5": 4,
39 "vehicle_countryFilterId_5": 63,
40 "vehicle_langId_6": 4,
41 "vehicle_countryFilterId_6": 63,
42 "vehicle_ltnNumber_6": "0588549",
43 "vehicle_langId_7": 4,
44 "vehicle_countryFilterId_7": 63,
45 "vehicle_ltnNumber_7": "0588549",
46 "vehicle_typeId_8": 1,
47 "vehicle_productId_8": 1,
48 "vehicle_vehicleId_8": 53313,
49 "vehicle_supplierId_8": 434,
50 "vehicle_langId_8": 4,
51 "vehicle_countryFilterId_8": 63,
52 "parts_typeId_1": 1,
53 "parts_langId_1": 4,
54 "parts_typeId_2": 1,
55 "parts_vehicleId_2": 53313,
56 "parts_langId_2": 4,
57 "parts_typeId_3": 1,
58 "parts_vehicleId_3": 53313,
59 "parts_langId_3": 4,
60 "parts_typeId_4": 1,
61 "parts_vehicleId_4": 53313,
62 "parts_langId_4": 4,
63 "parts_typeId_5": 1,
64 "parts_langId_5": 4,
65 "parts_searchText_5": "VALVE",
66 "parts_langId_6": 4,
67 "parts_langId_8": 4,
68 "parts_articleNo_8": "ADV182216",
69 "parts_langId_9": 4,
70 "parts_articleNo_9": "ADV182216",
71 "parts_supplierId_9": 350,
72 "parts_langId_10": 4,
73 "parts_articleNo_10": "ADV182216",
74 "parts_supplierId_10": 350,
75 "parts_typeId_11": 1,
76 "parts_langId_11": 4,
77 "parts_countryFilterId_11": 63,
78 "parts_articleNo_11": "ADV182216",
79 "parts_typeId_12": 1,
80 "parts_langId_12": 4,
81 "parts_countryFilterId_12": 63,
82 "parts_articleNo_12": "ADV182216",
83 "parts_articleId_13": 5639172,
84 "parts_langId_13": 4,
85 "parts_typeId_14": 1,
86 "parts_langId_14": 4,
87 "parts_countryFilterId_14": 63,
88 "parts_articleId_14": 5639172,
89 "parts_typeId_15": 1,
90 "parts_articleId_15": 5639172,
91 "parts_langId_15": 4,
92 "parts_countryFilterId_15": 63,
93 "parts_langId_16": 4,
94 "parts_articleId_16": 5639172,
95 "parts_articleId_17": 5639172,
96 "parts_langId_17": 4,
97 "parts_countryFilterId_17": 63,
98 "parts_typeId_18": 1,
99 "parts_vehicleId_18": 53313,
100 "parts_categoryId_18": 100260,
101 "parts_langId_18": 4,
102 "parts_typeId_19": 1,
103 "parts_vehicleId_19": 53313,
104 "parts_categoryId_19": 100260,
105 "parts_langId_19": 4,
106 "parts_typeId_20": 1,
107 "parts_articleNo_20": "ADV182216",
108 "parts_langId_20": 4,
109 "parts_countryFilterId_20": 63,
110 "parts_typeId_21": 1,
111 "parts_articleNo_21": "ADV182216",
112 "parts_supplierId_21": 4,
113 "parts_langId_21": 4,
114 "parts_countryFilterId_21": 63,
115 "parts_typeId_22": 1,
116 "parts_langId_22": 4,
117 "parts_countryFilterId_22": 63,
118 "parts_articleNo_22": "ADV182216",
119 "parts_supplierId_22": 350,
120 "parts_articleNo_23": "811357",
121 "parts_supplierName_23": "HART",
122 "parts_articleId_24": 1878343,
123 "parts_langId_24": 4,
124 "parts_typeId_25": 1,
125 "parts_langId_25": 4,
126 "parts_countryFilterId_25": 63,
127 "parts_articleOemNo_25": "5Q0129620B",
128 "parts_langId_26": 4,
129 "parts_articleNo_26": "ADV182216",
130 "parts_articleOemNo_27": "5Q0129620B",
131 "parts_articleOemNo_28": "5Q0129620B",
132 "parts_langId_29": 4,
133 "parts_articleOemNo_29": "5Q0129620B",
134 "parts_langId_30": 4,
135 "parts_articleOemNo_30": "5Q0129620B",
136 "parts_langId_31": 4,
137 "parts_articleOemNo_31": "5Q0129620B",
138 "parts_langId_32": 4,
139 "parts_articleOemNo_32": "5Q0129620B",
140 "parts_langId_33": 4,
141 "parts_articleType_33": "IAMNumber",
142 "parts_articleNo_33": "ADV182216",
143 "parts_typeId_34": 1,
144 "parts_vehicleId_34": 53313,
145 "parts_langId_34": 4,
146 "parts_searchParam_34": "filter",
147 "parts_articleId_35": 2551254,
148 "parts_langId_35": 4,
149 "parts_countryFilterId_35": 63,
150 "parts_typeId_36": 1,
151 "parts_langId_36": 4,
152 "parts_countryFilterId_36": 63,
153 "parts_vehicleId_36": 53313,
154 "parts_articleId_37": 2341493,
155 "parts_articleId_38": 2551254,
156 "parts_langId_38": 4,
157 "parts_countryFilterId_38": 63,
158 "parts_articleId_39": 5639172,
159 "parts_langId_39": 4,
160 "parts_articleId_40": 5639172,
161 "parts_langId_40": 4,
162 "vin_vinNo_1": "WDBFA68F42F202731",
163 "vin_vinNo_2": "WDBFA68F42F202731",
164 "vin_vinNo_3": "WDBFA68F42F202731",
165 "vin_vinNo_4": "VSEFJB43C00100765"
166};
167
168
169const run = await client.actor("making-data-meaningful/audi-parts-catalog").call(input);
170
171
172console.log('Results from dataset');
173console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
174const { items } = await client.dataset(run.defaultDatasetId).listItems();
175items.forEach((item) => {
176 console.dir(item);
177});
178
179