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 "brandDomain": "notion.so",
16 "competitors": [
17 "Coda",
18 "Obsidian",
19 "Confluence"
20 ],
21 "prompts": [
22 "What is the best note-taking app for small teams?",
23 "Which tools are good alternatives to Confluence for a startup wiki?"
24 ],
25 "providers": [
26 "openai",
27 "perplexity"
28 ],
29 "models": {
30 "openai": "gpt-6-luna",
31 "perplexity": "sonar"
32 }
33};
34
35
36const run = await client.actor("steadfeed/ai-search-visibility-tracker").call(input);
37
38
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46