1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": ["wireless earbuds"],
10 "marketplace": "US",
11 "marketplaces": [],
12 "departments": ["aps"],
13 "expandAlphabet": False,
14 "expandPrefixAlphabet": False,
15 "expandNumbers": False,
16 "expandQuestions": False,
17 "expandComparisons": False,
18 "expandPrepositions": False,
19 "expandBuyerModifiers": False,
20 "customSuffixes": [],
21 "maxDepth": 0,
22 "queryMode": "enhanced",
23 "includeWidgets": False,
24 "includeSeed": False,
25 "dedupe": True,
26 "resultOrder": "source",
27 "mustContainSeed": False,
28 "includeTerms": [],
29 "excludeTerms": [],
30 "onlyQuestions": False,
31 "onlyLongTail": False,
32 "minWordCount": 0,
33 "maxSuggestions": 3,
34 "maxSuggestionsPerKeyword": 0,
35 "maxQueries": 3,
36 "maxConcurrency": 1,
37 "requestDelayMs": 0,
38}
39
40
41run = client.actor("vexaloom-labs/amazon-autocomplete-keyword-expander").call(run_input=run_input)
42
43
44print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48