1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "nicheKeywords": [
10 "pilates",
11 "yoga",
12 "protein",
13 "workout",
14 "dumbbell",
15 ],
16 "goalDescription": "Home fitness equipment store for women 30–50: dumbbells, yoga, pilates, home workouts",
17 "countries": [
18 "US",
19 "GB",
20 "CA",
21 ],
22 "maxDiscoveryChargeUsd": 0.5,
23 "clients": [
24 {
25 "name": "Acme Fitness",
26 "nicheKeywords": [
27 "yoga",
28 "pilates",
29 "home workout",
30 ],
31 "countries": ["US"],
32 "notifyEmail": "acme-team@example.com",
33 },
34 {
35 "name": "Bloom Bakery",
36 "nicheKeywords": [
37 "sourdough",
38 "cake",
39 "baking",
40 "bread",
41 ],
42 "countries": ["GB"],
43 "notifyEmail": "bloom-team@example.com",
44 },
45 ],
46 "sourceMode": "list",
47 "itemsList": [
48 {
49 "term": "wall pilates",
50 "rank": 14,
51 "trend_volume": "50K+",
52 "trend_volume_formatted": 50000,
53 "related_terms": [
54 "wall pilates workout",
55 "28 day wall pilates challenge",
56 "wall pilates for beginners",
57 ],
58 "geo": "US",
59 "timeframe_hours": "24",
60 "trends_url": "https://trends.google.com/trending?geo=US&hl=en-US",
61 "timestamp": "2026-09-28 08:30:00",
62 },
63 {
64 "term": "adjustable dumbbells recall",
65 "rank": 31,
66 "trend_volume": "20K+",
67 "trend_volume_formatted": 20000,
68 "related_terms": [
69 "dumbbell recall 2026",
70 "adjustable dumbbells",
71 "dumbbell plates recall",
72 ],
73 "geo": "US",
74 "timeframe_hours": "24",
75 "trends_url": "https://trends.google.com/trending?geo=US&hl=en-US",
76 "timestamp": "2026-09-28 08:30:00",
77 },
78 {
79 "term": "chiefs vs ravens",
80 "rank": 1,
81 "trend_volume": "1M+",
82 "trend_volume_formatted": 1000000,
83 "related_terms": [
84 "chiefs score",
85 "nfl scores",
86 "ravens game",
87 ],
88 "geo": "US",
89 "timeframe_hours": "24",
90 "trends_url": "https://trends.google.com/trending?geo=US&hl=en-US",
91 "timestamp": "2026-09-28 08:30:00",
92 },
93 {
94 "term": "protein pancakes",
95 "rank": 42,
96 "trend_volume": "10K+",
97 "trend_volume_formatted": 10000,
98 "related_terms": [
99 "high protein breakfast",
100 "protein pancake recipe",
101 "cottage cheese pancakes",
102 ],
103 "geo": "US",
104 "timeframe_hours": "24",
105 "trends_url": "https://trends.google.com/trending?geo=US&hl=en-US",
106 "timestamp": "2026-09-28 08:30:00",
107 },
108 {
109 "term": "hurricane warning florida",
110 "rank": 3,
111 "trend_volume": "500K+",
112 "trend_volume_formatted": 500000,
113 "related_terms": [
114 "hurricane tracker",
115 "storm surge",
116 "evacuation zones",
117 ],
118 "geo": "US",
119 "timeframe_hours": "24",
120 "trends_url": "https://trends.google.com/trending?geo=US&hl=en-US",
121 "timestamp": "2026-09-28 08:30:00",
122 },
123 {
124 "keyword": "yoga mat",
125 "timeframe": "today 3-m",
126 "geo": "US",
127 "data_granularity": "week",
128 "trends_url": "https://trends.google.com/trends/explore?q=yoga%20mat&geo=US",
129 "timeline_data": {
130 "2026-W24": 41,
131 "2026-W25": 43,
132 "2026-W26": 40,
133 "2026-W27": 44,
134 "2026-W28": 42,
135 "2026-W29": 45,
136 "2026-W30": 43,
137 "2026-W31": 46,
138 "2026-W32": 48,
139 "2026-W33": 47,
140 "2026-W34": 52,
141 "2026-W35": 55,
142 "2026-W36": 58,
143 "2026-W37": 61,
144 "2026-W38": 63,
145 "2026-W39": 66,
146 },
147 },
148 {
149 "searchTerm": "pilates",
150 "geo": "US",
151 "relatedQueries_rising": [{
152 "query": "pilates reformer at home",
153 "value": 4250,
154 "formattedValue": "+4,250%",
155 "link": "/trends/explore?q=pilates+reformer+at+home&geo=US&date=today+12-m",
156 }],
157 },
158 ],
159 "discoveryInput": {},
160}
161
162
163run = client.actor("rich_minds/trending-keywords-ai").call(run_input=run_input)
164
165
166print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
167for item in client.dataset(run.default_dataset_id).iterate_items():
168 print(item)
169
170