1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "brand": "Notion",
12 "brandAliases": [
13 "Notion AI"
14 ],
15 "brandDomains": [
16 "notion.com",
17 "notion.so"
18 ],
19 "competitors": [
20 "Confluence",
21 "Coda",
22 "ClickUp",
23 "Obsidian"
24 ],
25 "category": "note-taking and team wiki apps",
26 "prompts": [
27 "What are the best team wiki apps?",
28 "What is a good alternative to Confluence?"
29 ],
30 "models": [
31 "~openai/gpt-luna-latest",
32 "anthropic/claude-haiku-5.5",
33 "perplexity/sonar"
34 ]
35};
36
37
38const run = await client.actor("brightknot/ai-search-visibility-tracker").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48