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 "industry": "productivity software",
14 "prompts": [
15 "What is the best note-taking and productivity app?",
16 "Recommend the top productivity software for teams.",
17 "Which all-in-one workspace tools are most popular?",
18 "What tools do startups use for project management?"
19 ],
20 "competitorBrands": [
21 "Evernote",
22 "Obsidian",
23 "Coda"
24 ],
25 "competitorDomains": [
26 "evernote.com",
27 "obsidian.md",
28 "coda.io"
29 ]
30};
31
32
33const run = await client.actor("muhammadafzal/ai-geo-rec-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