1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "searchQuery": "телевизор",
13 "city": "Москва",
14 "category": "1",
15 "productUrls": [
16 "https://www.mvideo.ru/products/televizor-general-electronics-ge55lqs2-401211841"
17 ],
18 "sortOrder": "popularity",
19 "brands": [],
20 "sellers": [],
21 "condition": "any",
22 "fromAbroad": false,
23 "maxItems": 3,
24 "maxReviews": 0,
25 "includeStoreStock": false,
26 "storeLimit": 20,
27 "includeOtherOffers": false,
28 "failOnEmpty": false,
29 "proxyConfiguration": {
30 "useApifyProxy": true
31 }
32};
33
34
35const run = await client.actor("nimbryxo-studio/m-video-russia-electronics-product-and-review").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45