1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchTerms": ["bitcoin"],
10 "timeRange": "today 12-m",
11 "geo": "US",
12 "property": "web",
13 "dataTypes": [
14 "TIMESERIES",
15 "GEO",
16 "RELATED_QUERIES",
17 ],
18 "outputMode": "perDataType",
19 "viewedFrom": "en-US",
20 "trendingSearchesCountry": "US",
21 "proxyConfiguration": { "useApifyProxy": True },
22}
23
24
25run = client.actor("sunburst077/google-trends-reliable").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32