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 "aliases": [
13 "Notion AI"
14 ],
15 "domain": "notion.com",
16 "competitors": [
17 "Obsidian",
18 "Evernote",
19 "Coda",
20 "ClickUp",
21 "Confluence"
22 ],
23 "prompts": [
24 "What are the best note-taking apps for startup teams?",
25 "Which wiki or knowledge base tool should a small remote team use?"
26 ],
27 "engines": [
28 "perplexity",
29 "chatgpt"
30 ]
31};
32
33
34const run = await client.actor("gazidev/llm-brand-visibility-tracker").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44