1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "prompts": [
10 "best CRM software for small business",
11 "HubSpot vs Salesforce for mid-market teams",
12 ],
13 "brandName": "HubSpot",
14 "brandDomains": ["hubspot.com"],
15 "brandAliases": ["HubSpot CRM"],
16 "competitors": [
17 {
18 "name": "Salesforce",
19 "domains": ["salesforce.com"],
20 "aliases": [
21 "SFDC",
22 "Sales Cloud",
23 ],
24 },
25 {
26 "name": "Pipedrive",
27 "domains": ["pipedrive.com"],
28 "aliases": [],
29 },
30 {
31 "name": "Zoho CRM",
32 "domains": ["zoho.com"],
33 "aliases": ["Zoho"],
34 },
35 ],
36 "engines": [
37 "google_ai_overview",
38 "perplexity",
39 "openai_web_search",
40 "duckduckgo_search",
41 ],
42}
43
44
45run = client.actor("vesper_studio/ai-search-geo-visibility-monitor").call(run_input=run_input)
46
47
48print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
49for item in client.dataset(run.default_dataset_id).iterate_items():
50 print(item)
51
52