1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "competitorUrls": ["https://www.amazon.com/dp/B0C8QJ5V56"],
10 "yourProductDescription": "Our product is a wireless Bluetooth headphone with active noise cancellation, 40-hour battery, Bluetooth 5.3, and a lightweight foldable design. Targeted at commuters and remote workers.",
11 "yourProductFeatures": [
12 "Active Noise Cancellation",
13 "40-hour battery life",
14 "Bluetooth 5.3",
15 "Foldable lightweight design",
16 "Built-in microphone with ENC",
17 ],
18 "maxReviewsPerCompetitor": 10,
19 "llmModel": "gpt-4o-mini",
20 "proxyConfiguration": {
21 "useApifyProxy": True,
22 "apifyProxyGroups": ["RESIDENTIAL"],
23 },
24}
25
26
27run = client.actor("magicfingers/listing-optimizer").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34