1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": [
10 "python",
11 "rust",
12 ],
13 "countries": [
14 "US",
15 "GB",
16 "DE",
17 ],
18 "languages": ["en-US"],
19 "timeframe": "today 12-m",
20 "property": "",
21 "category": 0,
22 "includeRelated": True,
23 "includeRegional": False,
24 "maxResults": 50,
25 "useProxyFallback": True,
26}
27
28
29run = client.actor("mellora/google-trends-multi-country-scraper").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36