1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "workflow": "snapshot",
10 "queries": ["used iphone 13"],
11 "marketplace": "US",
12 "searchUrls": [],
13 "itemUrls": [],
14 "condition": "all",
15 "buyingFormat": "all",
16 "sort": "bestMatch",
17 "freeShipping": False,
18 "categoryId": "0",
19 "includeDetails": False,
20 "stateNamespace": "default",
21 "maxListings": 20,
22 "maxPages": 1,
23 "maxBuyerChargeUsd": 2,
24}
25
26
27run = client.actor("luminar/ebay-product-scraper-price-monitor").call(run_input=run_input)
28
29
30print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
31for item in client.dataset(run.default_dataset_id).iterate_items():
32 print(item)
33
34