1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "workflow": "search_products",
10 "queries": ["handmade silver ring"],
11 "maxListings": 25,
12 "maxBuyerChargeUsd": 5,
13 "marketCountry": "US",
14 "currency": "USD",
15 "itemType": "all",
16 "handmadeOnly": False,
17 "onSaleOnly": False,
18 "freeShippingOnly": False,
19 "includeAds": True,
20 "sort": "relevance",
21 "detailLevel": "core",
22 "maxDetailListings": 25,
23 "maxShopProfiles": 5,
24 "monitorTargetType": "shop",
25 "firstRunBehavior": "seed_only",
26 "stateNamespace": "default",
27 "maxPagesPerTarget": 5,
28 "maxRequests": 105000,
29 "maxSourceBytes": 512000000,
30 "maxRuntimeSecs": 1800,
31 "detailConcurrency": 2,
32}
33
34
35run = client.actor("luminar/etsy-product-shop-listing-change-monitor").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42