1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "observations": [
9 {
10 "marketplace": "amazon",
11 "gtin": "00036000291452",
12 "productId": "B0EXAMPLE",
13 "title": "Sample product",
14 "price": 12.99,
15 "currency": "USD",
16 "rating": 4.4,
17 "reviewCount": 225,
18 "productUrl": "https://www.amazon.com/dp/B0EXAMPLE",
19 "imageUrl": "https://example.com/image.jpg",
20 },
21 {
22 "marketplace": "walmart",
23 "gtin": "00036000291452",
24 "productId": "123456789",
25 "title": "Sample product",
26 "price": 11.99,
27 "currency": "USD",
28 "rating": 4.2,
29 "reviewCount": 44,
30 "productUrl": "https://www.walmart.com/ip/123456789",
31 },
32 ] }
33
34
35run = client.actor("rustic_soybean/exact-sku-shopping-comparison").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