1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "seeds": ["coffee grinder"],
10 "engines": [
11 "google",
12 "bing",
13 ],
14 "country": "US",
15 "language": "en",
16 "expansions": [
17 "alphabet",
18 "questions",
19 ],
20 "depth": 1,
21 "recursionTopN": 10,
22 "maxIdeasPerSeed": 500,
23 "includeTrend": False,
24 "trendTopN": 20,
25 "trendGeo": "",
26 "maxConcurrency": 4,
27 "maxQueriesPerSeed": 0,
28}
29
30
31run = client.actor("khalilbenali/keyword-ideas-autocomplete").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38