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 "maxPrompts": 1,
21 "samplesPerPrompt": 1,
22 "engines": [
23 "perplexity",
24 "google_aio",
25 "chatgpt_search",
26 "gemini"
27 ],
28 "analysisMode": "full",
29 "analysisModel": "openai/gpt-5.6-luna"
30};
31
32
33const run = await client.actor("emoubarak/ai-search-visibility-tracker").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43