1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brandName": "HubSpot",
10 "brandAliases": ["HubSpot CRM"],
11 "brandDomain": "hubspot.com",
12 "competitors": [
13 {
14 "name": "Salesforce",
15 "aliases": ["Salesforce Starter"],
16 "domain": "salesforce.com",
17 },
18 {
19 "name": "Pipedrive",
20 "domain": "pipedrive.com",
21 },
22 {
23 "name": "Zoho CRM",
24 "aliases": ["Zoho"],
25 "domain": "zoho.com",
26 },
27 ],
28 "prompts": [
29 "What is the best CRM for a small business?",
30 "Which CRM is easiest to set up for a 5 person sales team?",
31 ],
32}
33
34
35run = client.actor("forgeloop/ai-brand-visibility").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42