1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "KEYWORD_SEARCH",
12 "keywords": [
13 "iphone 15 pro max"
14 ],
15 "listingType": "ACTIVE",
16 "count": 50,
17 "ebaySite": "EBAY_US",
18 "sortOrder": "bestMatch",
19 "condition": "ANY",
20 "itemLocation": "DEFAULT",
21 "detailedSearch": false,
22 "includeProductPhotos": true,
23 "includeSellerReviewsFromSearch": false,
24 "profileUrls": [
25 {
26 "url": "https://www.ebay.com/usr/musicmagpie"
27 }
28 ],
29 "includeActiveListings": true,
30 "includeRecentFeedback": true,
31 "saveReviewRows": true,
32 "maxReviewRowsPerSeller": 25,
33 "sampleListings": 10,
34 "mustBeTopRated": false,
35 "mustHaveStore": false,
36 "mustBeBusinessSeller": false,
37 "maxConcurrency": 3,
38 "maxRetries": 2,
39 "rawOutput": false,
40 "proxy": {
41 "useApifyProxy": true
42 }
43};
44
45
46const run = await client.actor("trakk/ebay-seller-intelligence").call(input);
47
48
49console.log('Results from dataset');
50console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56