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 "competitors": [
13 "Coda",
14 "Airtable",
15 "ClickUp"
16 ],
17 "industry": "team workspace and note-taking software",
18 "language": "en",
19 "market": "US",
20 "engines": [
21 "perplexity",
22 "google_aio",
23 "chatgpt_search",
24 "gemini"
25 ],
26 "analysisMode": "full",
27 "analysisModel": "openai/gpt-5.6-luna"
28};
29
30
31const run = await client.actor("emoubarak/ai-search-visibility-tracker").call(input);
32
33
34console.log('Results from dataset');
35console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
36const { items } = await client.dataset(run.defaultDatasetId).listItems();
37items.forEach((item) => {
38 console.dir(item);
39});
40
41