1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "KEYWORD_SEARCH",
10 "keywords": ["iphone 15 pro max"],
11 "listingType": "SOLD",
12 "count": 50,
13 "ebaySite": "EBAY_US",
14 "daysToScrape": 30,
15 "sortOrder": "endedRecently",
16 "condition": "ANY",
17 "itemLocation": "DEFAULT",
18 "detailedSearch": False,
19 "includeProductPhotos": True,
20 "includeSellerReviewsFromSearch": False,
21 "profileUrls": [{ "url": "https://www.ebay.com/usr/musicmagpie" }],
22 "includeActiveListings": True,
23 "includeSoldListings": True,
24 "includeRecentFeedback": True,
25 "saveReviewRows": True,
26 "maxReviewRowsPerSeller": 25,
27 "sampleListings": 10,
28 "mustBeTopRated": False,
29 "mustHaveStore": False,
30 "mustBeBusinessSeller": False,
31 "maxConcurrency": 3,
32 "maxRetries": 2,
33 "rawOutput": False,
34 "proxy": { "useApifyProxy": False },
35}
36
37
38run = client.actor("trakk/ebay-seller-intelligence").call(run_input=run_input)
39
40
41print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
42for item in client.dataset(run["defaultDatasetId"]).iterate_items():
43 print(item)
44
45