1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keyword": "New York",
10 "location": "Worldwide",
11 "time_range": "Past 12 months",
12 "category": "All categories",
13 "search_type": "Web Search",
14}
15
16
17run = client.actor("agentx/google-keyword-trends").call(run_input=run_input)
18
19
20print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
21for item in client.dataset(run["defaultDatasetId"]).iterate_items():
22 print(item)
23
24