1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brand": "HubSpot",
10 "brandAliases": ["HubSpot CRM"],
11 "brandDomains": ["hubspot.com"],
12 "competitors": [
13 "Pipedrive | pipedrive.com",
14 "Salesforce | salesforce.com",
15 "Zoho CRM | Zoho | zoho.com",
16 ],
17 "prompts": [
18 "What is the best CRM for a small marketing agency?",
19 "Which CRM has a good free plan?",
20 ],
21}
22
23
24run = client.actor("layerwiselabs/ai-visibility-tracker").call(run_input=run_input)
25
26
27print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31