1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "prompts": [
10 "best answer engine optimization tools",
11 "best AI visibility tracker",
12 "how to optimize for Google AI Overviews",
13 "best GEO tools for SaaS SEO",
14 "AI search visibility software",
15 ],
16 "brandName": "Semrush",
17 "domain": "semrush.com",
18 "competitors": [
19 "Ahrefs",
20 "Surfer SEO",
21 "Conductor",
22 ],
23 "country": "US",
24 "language": "en",
25 "maxPrompts": 5,
26 "timeoutSeconds": 30,
27 "proxyConfiguration": {
28 "useApifyProxy": True,
29 "apifyProxyGroups": ["RESIDENTIAL"],
30 },
31}
32
33
34run = client.actor("tugelbay/google-ai-overview-tracker").call(run_input=run_input)
35
36
37print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
38for item in client.dataset(run["defaultDatasetId"]).iterate_items():
39 print(item)
40
41