1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "productUrls": [],
12 "asins": [
13 "B09X7MPX8L"
14 ],
15 "searchTerms": [],
16 "searchUrls": [],
17 "bestsellerUrls": [],
18 "marketplace": "auto",
19 "domains": [],
20 "language": "auto",
21 "currency": "auto",
22 "deliveryCountry": "auto",
23 "postalCode": "",
24 "minRating": "any",
25 "dealsOnly": false,
26 "primeOnly": false,
27 "condition": "any",
28 "brand": "",
29 "stock": "any",
30 "sortBy": "relevance",
31 "maxItems": 1,
32 "maxPages": 1,
33 "includeDetails": true,
34 "includeSponsored": true,
35 "includeVariants": false,
36 "includeTopReviews": false,
37 "includeFailed": true,
38 "failOnEmpty": true,
39 "rateLimitDelay": 0,
40 "proxyConfiguration": {
41 "useApifyProxy": true
42 },
43 "proxyCountry": "AUTO"
44};
45
46
47const run = await client.actor("nimbryxo-studio/amazon-multi-domain-product-price-and-detail").call(input);
48
49
50console.log('Results from dataset');
51console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
52const { items } = await client.dataset(run.defaultDatasetId).listItems();
53items.forEach((item) => {
54 console.dir(item);
55});
56
57