1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "brand": "Linear",
12 "brandAliases": [
13 "Linear.app"
14 ],
15 "prompts": [
16 "best project management tool for a small design agency",
17 "what should I use instead of Jira",
18 "affordable issue tracker for a startup engineering team"
19 ],
20 "competitors": [
21 "Jira",
22 "Asana",
23 "Monday.com",
24 "ClickUp",
25 "Notion",
26 "Trello"
27 ],
28 "ownedDomains": [
29 "linear.app"
30 ],
31 "engines": [
32 "google_ai_overview"
33 ],
34 "projectId": "linear-demo"
35};
36
37
38const run = await client.actor("reminiscent_folder/ai-visibility-trend-tracker").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48