1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "brandName": "Notion",
12 "brandDomain": "notion.so",
13 "competitors": [
14 "ClickUp",
15 "Monday.com",
16 "Asana"
17 ],
18 "prompts": [
19 "What is the best note-taking and project management tool in 2026?",
20 "Which software is best for team wikis and internal documentation?"
21 ],
22 "engines": [
23 "perplexity"
24 ]
25};
26
27
28const run = await client.actor("memo23/ai-brand-rank-tracker").call(input);
29
30
31console.log('Results from dataset');
32console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
33const { items } = await client.dataset(run.defaultDatasetId).listItems();
34items.forEach((item) => {
35 console.dir(item);
36});
37
38