1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "brand": "HubSpot",
12 "brandAliases": [
13 "HubSpot CRM"
14 ],
15 "brandDomains": [
16 "hubspot.com"
17 ],
18 "queries": [
19 "best CRM for small business",
20 "best free CRM software"
21 ],
22 "competitors": [
23 "Salesforce",
24 "Pipedrive",
25 "Zoho CRM"
26 ],
27 "proxyConfiguration": {
28 "useApifyProxy": true,
29 "apifyProxyGroups": [
30 "RESIDENTIAL"
31 ],
32 "apifyProxyCountry": "US"
33 }
34};
35
36
37const run = await client.actor("arisma_tech/ai-search-brand-visibility-monitor").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47