1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "items",
10 "items": [
11 {
12 "asin": "B0GOOD123",
13 "title": "Silicone drawer organizer set",
14 "marketplace": "US",
15 "category": "Kitchen",
16 "price": 29.99,
17 "reviewCount": 142,
18 "rating": 4.2,
19 "bestSellerRank": 1850,
20 "sellerCount": 2,
21 "monthlySales": 1200,
22 "marginPercent": 38,
23 "url": "https://www.amazon.com/dp/B0GOOD123",
24 "features": [
25 "silicone",
26 "dishwasher safe",
27 "space saving",
28 ],
29 },
30 {
31 "ASIN": "B0QUAL123",
32 "productTitle": "Stackable pantry organizer bins",
33 "country": "US",
34 "department": "Home",
35 "currentPrice": 24.5,
36 "ratingsCount": 310,
37 "stars": 3.7,
38 "rank": 4200,
39 "sellers": 2,
40 "estimatedMonthlySales": 600,
41 "profitMargin": 31,
42 "complaints": "Customers complain about cracked lids and weak handles.",
43 "productUrl": "https://www.amazon.com/dp/B0QUAL123",
44 },
45 {
46 "asin": "B0RISKY",
47 "title": "Seasonal fragile glass diffuser with patent note",
48 "marketplace": "US",
49 "category": "Home",
50 "price": 32,
51 "reviewCount": 90,
52 "rating": 4.1,
53 "bestSellerRank": 2100,
54 "sellerCount": 1,
55 "monthlySales": 900,
56 "marginPercent": 42,
57 "riskNotes": "Potential patent issue, fragile packaging, seasonal demand.",
58 "url": "https://www.amazon.com/dp/B0RISKY",
59 },
60 ],
61 "sellerProfile": {
62 "targetMarketplace": "US",
63 "targetCategories": [
64 "Kitchen",
65 "Home",
66 ],
67 "avoidCategories": ["Supplements"],
68 "targetKeywords": [
69 "silicone",
70 "organizer",
71 ],
72 "avoidKeywords": ["medical"],
73 "minPrice": 15,
74 "maxPrice": 60,
75 "minMarginPercent": 25,
76 "maxReviewCount": 500,
77 "minRatingGap": 0.3,
78 "maxSellers": 5,
79 "maxWeightLb": 3,
80 "riskKeywords": [
81 "patent",
82 "hazmat",
83 "gated",
84 "fragile",
85 "seasonal",
86 ],
87 "capitalBudget": 5000,
88 },
89 "scrapedAt": "2026-07-08T00:00:00.000Z",
90}
91
92
93run = client.actor("rotvuvo/amazon-product-opportunity-gap-scorer").call(run_input=run_input)
94
95
96print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
97for item in client.dataset(run["defaultDatasetId"]).iterate_items():
98 print(item)
99
100