1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 {
13 "title": "Logitech MX Master 4 Ergonomic Wireless Mouse with Haptics - Graphite",
14 "url": "https://www.amazon.com/dp/B0FC5SJNQX",
15 "asin": "B0FC5SJNQX",
16 "originalAsin": "B0FC5SJNQX",
17 "price": {
18 "value": 119.99,
19 "currency": "$"
20 },
21 "inStock": true,
22 "inStockText": "In Stock Only 1 left in stock - order soon.",
23 "listPrice": null,
24 "brand": "Logitech",
25 "stars": 4.3,
26 "reviewsCount": 2019,
27 "breadCrumbs": "Electronics > Computers & Accessories > Computer Accessories & Peripherals > Keyboards, Mice & Accessories > Mice",
28 "attributes": [
29 {
30 "key": "Connectivity Technology",
31 "value": "Bluetooth, Radio Frequency, USB"
32 },
33 {
34 "key": "Additional Features",
35 "value": "Lightweight, Programmable Buttons, Rechargeable, Soundless, Wireless"
36 },
37 {
38 "key": "Movement Detection",
39 "value": "Optical"
40 },
41 {
42 "key": "Button Quantity",
43 "value": "7"
44 },
45 {
46 "key": "Hand Orientation",
47 "value": "Right"
48 },
49 {
50 "key": "Compatible Devices",
51 "value": "Laptop, Personal Computer"
52 },
53 {
54 "key": "Operating System",
55 "value": "Android, Chrome OS, Linux, Windows, iPadOS, macOS"
56 },
57 {
58 "key": "Battery Average Life",
59 "value": "70 days"
60 },
61 {
62 "key": "Number of Batteries",
63 "value": "1 AA batteries required. (included)"
64 },
65 {
66 "key": "Hardware Platform",
67 "value": "Mac, PC"
68 },
69 {
70 "key": "Power Source",
71 "value": "Battery Powered"
72 },
73 {
74 "key": "Mouse Maximum Sensitivity",
75 "value": "8000 dots_per_inch"
76 },
77 {
78 "key": "Minimum Required Operating System Version",
79 "value": "Android 12.0, ChromeOS 137, Mac OS 12 Monterey, Windows 10, iOS 15"
80 },
81 {
82 "key": "Embellishment Feature",
83 "value": "LED"
84 },
85 {
86 "key": "Range",
87 "value": "10"
88 },
89 {
90 "key": "Unit Count",
91 "value": "1 Count"
92 },
93 {
94 "key": "Enclosure Material",
95 "value": "Plastic"
96 },
97 {
98 "key": "Finish",
99 "value": "Matte"
100 },
101 {
102 "key": "Brand",
103 "value": "Logitech"
104 },
105 {
106 "key": "Model Name",
107 "value": "Logitech MX Master 4"
108 },
109 {
110 "key": "Antenna Location",
111 "value": "Education, Gaming, Home, Office, Personal"
112 },
113 {
114 "key": "Model Number",
115 "value": "910-007558"
116 },
117 {
118 "key": "Included Components",
119 "value": "Logitech MX Master 4 Mouse, User Documentation"
120 },
121 {
122 "key": "Manufacturer",
123 "value": "Logitech"
124 },
125 {
126 "key": "UPC",
127 "value": "097855207623"
128 },
129 {
130 "key": "Mfr Part Number",
131 "value": "910-007558"
132 },
133 {
134 "key": "Warranty Description",
135 "value": "2 Year Limited Hardware Warranty"
136 },
137 {
138 "key": "Best Sellers Rank",
139 "value": "#14 in Computer Mice"
140 },
141 {
142 "key": "ASIN",
143 "value": "B0FC5SJNQX"
144 },
145 {
146 "key": "Customer Reviews",
147 "value": "4.3 4.3 out of 5 stars (2,019) 4.3 out of 5 stars"
148 },
149 {
150 "key": "Color",
151 "value": "Graphite"
152 },
153 {
154 "key": "Style Name",
155 "value": "Ergonomic"
156 },
157 {
158 "key": "Pattern",
159 "value": "Mouse"
160 }
161 ],
162 "_exampleProvenance": {
163 "sourceActorId": "BG3WDrGdteHgZgbPK",
164 "sourceRunId": "pMBYYgwiS2raJG3TQ",
165 "sourceDatasetId": "H6kcUwVVErygpBOlT",
166 "curatedPublicSnapshot": true,
167 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
168 }
169 },
170 {
171 "title": "Logitech G305 Lightspeed Wireless Gaming Mouse - Black",
172 "url": "https://www.amazon.com/dp/B07CMS5Q6P",
173 "asin": "B07CMS5Q6P",
174 "originalAsin": "B07CMS5Q6P",
175 "price": {
176 "value": 29.99,
177 "currency": "$"
178 },
179 "inStock": true,
180 "inStockText": "In Stock In Stock",
181 "listPrice": {
182 "value": 49.99,
183 "currency": "$"
184 },
185 "brand": "Logitech G",
186 "stars": 4.6,
187 "reviewsCount": 40024,
188 "breadCrumbs": "Video Games > PC > Accessories > Gaming Mice",
189 "attributes": [
190 {
191 "key": "Connectivity Technology",
192 "value": "USB"
193 },
194 {
195 "key": "Additional Features",
196 "value": "Wireless"
197 },
198 {
199 "key": "Movement Detection",
200 "value": "Optical"
201 },
202 {
203 "key": "Button Quantity",
204 "value": "6"
205 },
206 {
207 "key": "Hand Orientation",
208 "value": "Ambidextrous"
209 },
210 {
211 "key": "Compatible Devices",
212 "value": "Laptop, Personal Computer"
213 },
214 {
215 "key": "Operating System",
216 "value": "Microsoft Windows"
217 },
218 {
219 "key": "Battery Average Life",
220 "value": "250 hours"
221 },
222 {
223 "key": "Number of Batteries",
224 "value": "1 AA batteries required. (included)"
225 },
226 {
227 "key": "Hardware Platform",
228 "value": "PC/Mac"
229 },
230 {
231 "key": "Power Source",
232 "value": "Battery Powered"
233 },
234 {
235 "key": "Mouse Maximum Sensitivity",
236 "value": "12000 dots_per_inch"
237 },
238 {
239 "key": "Minimum Required Operating System Version",
240 "value": "Windows 10"
241 },
242 {
243 "key": "Range",
244 "value": "1.0 meters"
245 },
246 {
247 "key": "Color",
248 "value": "Black"
249 },
250 {
251 "key": "Style Name",
252 "value": "Classic"
253 },
254 {
255 "key": "Pattern",
256 "value": "Mouse"
257 },
258 {
259 "key": "Theme",
260 "value": "Gaming"
261 },
262 {
263 "key": "Enclosure Material",
264 "value": "Plastic"
265 },
266 {
267 "key": "Brand",
268 "value": "Logitech G"
269 },
270 {
271 "key": "Model Name",
272 "value": "G305 Mouse"
273 },
274 {
275 "key": "Antenna Location",
276 "value": "Mouse"
277 },
278 {
279 "key": "Model Number",
280 "value": "910-005280"
281 },
282 {
283 "key": "Included Components",
284 "value": "mouse, user guide"
285 },
286 {
287 "key": "Manufacturer",
288 "value": "Logitech"
289 },
290 {
291 "key": "UPC",
292 "value": "097855137692"
293 },
294 {
295 "key": "Global Trade Identification Number",
296 "value": "00097855137692"
297 },
298 {
299 "key": "Item Type Name",
300 "value": "Logitech 910-005280 G305 LIGHTSPEED Wireless Gaming Mouse, Black"
301 },
302 {
303 "key": "Mfr Part Number",
304 "value": "910-005280"
305 },
306 {
307 "key": "Warranty Description",
308 "value": "Manufacturer’s warranty can be requested from customer service."
309 },
310 {
311 "key": "Best Sellers Rank",
312 "value": "#8 in Video Games (See Top 100 in Video Games)#1 in PC Gaming Mice#1 in Mac Gaming Mice"
313 },
314 {
315 "key": "ASIN",
316 "value": "B07CMS5Q6P"
317 },
318 {
319 "key": "Customer Reviews",
320 "value": "4.6 4.6 out of 5 stars (40,024) 4.6 out of 5 stars"
321 },
322 {
323 "key": "Item Weight",
324 "value": "3.36 ounces"
325 },
326 {
327 "key": "Item Dimensions L x W",
328 "value": "4.59\"L x 2.45\"W"
329 },
330 {
331 "key": "Unit Count",
332 "value": "1 Count"
333 }
334 ],
335 "_exampleProvenance": {
336 "sourceActorId": "BG3WDrGdteHgZgbPK",
337 "sourceRunId": "pMBYYgwiS2raJG3TQ",
338 "sourceDatasetId": "H6kcUwVVErygpBOlT",
339 "curatedPublicSnapshot": true,
340 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
341 }
342 }
343 ]
344};
345
346
347const run = await client.actor("zinin/amazon-catalog-variation-quality-auditor").call(input);
348
349
350console.log('Results from dataset');
351console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
352const { items } = await client.dataset(run.defaultDatasetId).listItems();
353items.forEach((item) => {
354 console.dir(item);
355});
356
357