1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "asins": [
10 "B08N5WRWNW",
11 "B0B7X9X1Y2",
12 "B09G9D7K1S",
13 ],
14 "urls": [
15 "https://www.amazon.com/dp/B08N5WRWNW",
16 "https://www.walmart.com/ip/Sony-WH-1000XM5/123456789",
17 "https://www.bestbuy.com/site/sony-wh-1000xm5/12345.p",
18 "https://example.myshopify.com/products/sony-headphones",
19 ],
20 "products": [
21 {
22 "platform": "amazon",
23 "productId": "B08N5WRWNW",
24 "url": "https://www.amazon.com/dp/B08N5WRWNW",
25 },
26 {
27 "platform": "walmart",
28 "productId": "123456789",
29 },
30 {
31 "platform": "shopify",
32 "productId": "sony-headphones",
33 "domain": "example",
34 },
35 ],
36 "competitorPrices": [
37 {
38 "platform": "walmart",
39 "price": 329.99,
40 "seller": "Walmart",
41 },
42 {
43 "platform": "bestbuy",
44 "price": 349.99,
45 "seller": "Best Buy",
46 },
47 ],
48}
49
50
51run = client.actor("luckborn/price-intelligence").call(run_input=run_input)
52
53
54print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
55for item in client.dataset(run["defaultDatasetId"]).iterate_items():
56 print(item)
57
58