1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "t1",
12 "title": "ai agents",
13 "interest": 94,
14 "growthPct": 88,
15 "breakoutScore": 97,
16 "regionalSpread": 82,
17 "seasonalityFit": 76,
18 },
19 {
20 "id": "t2",
21 "title": "old keyword",
22 "interest": 48,
23 "growthPct": 3,
24 "breakoutScore": 21,
25 "regionalSpread": 44,
26 "seasonalityFit": 52,
27 },
28 ],
29 "previousItems": [{
30 "id": "t1",
31 "title": "ai agents",
32 "interest": 71,
33 "growthPct": 52,
34 "breakoutScore": 76,
35 "regionalSpread": 63,
36 "seasonalityFit": 70,
37 }],
38}
39
40
41run = client.actor("quanmatrix/google-trends-breakout-demand-intelligence").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