1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "brandTerms": [
12 "Notion"
13 ],
14 "brandBrief": "Notion — the connected workspace app for docs, wikis, projects and databases. Friendly, helpful voice; support at notion.so/help.",
15 "maxDiscoveryChargeUsd": 0.5,
16 "watchlists": [
17 {
18 "name": "Client A",
19 "brandTerms": [
20 "Linear"
21 ],
22 "competitorTerms": [
23 "Jira"
24 ],
25 "brandBrief": "Linear — the issue tracker for software teams."
26 },
27 {
28 "name": "Client B",
29 "brandTerms": [
30 "Canva"
31 ],
32 "competitorTerms": [
33 "Figma"
34 ],
35 "brandBrief": "Canva — the online design app."
36 }
37 ],
38 "sourceMode": "list",
39 "itemsList": [
40 {
41 "id": "3456789012345678901",
42 "url": "https://www.threads.com/@maya.builds/post/DQa1Notion01",
43 "text": "Notion keeps crashing on my iPad since the last update and I lost a whole page of meeting notes. Support, is this a known bug? Seriously frustrating.",
44 "author": "maya.builds",
45 "author_id": "63310001",
46 "author_name": "Maya R.",
47 "created_at": "2026-09-27T08:12:00Z",
48 "like_count": 184,
49 "reply_count": 0,
50 "repost_count": 12,
51 "quote_count": 3,
52 "view_count": 21400,
53 "follower_count": 12400,
54 "following_count": 410,
55 "verified": false,
56 "lang": "en",
57 "is_reply": false,
58 "is_repost": false
59 },
60 {
61 "id": "3456789012345678902",
62 "url": "https://www.threads.com/@ops.dan/post/DQa1Notion02",
63 "text": "Looking for an alternative to Notion for our 12-person agency — we need offline mode and faster databases. Any recommendations? Obsidian? Coda?",
64 "author": "ops.dan",
65 "author_id": "63310002",
66 "author_name": "Dan K.",
67 "created_at": "2026-09-27T14:40:00Z",
68 "like_count": 57,
69 "reply_count": 23,
70 "repost_count": 2,
71 "quote_count": 1,
72 "view_count": 6800,
73 "follower_count": 3100,
74 "following_count": 920,
75 "verified": false,
76 "lang": "en",
77 "is_reply": false,
78 "is_repost": false
79 },
80 {
81 "id": "3456789012345678903",
82 "url": "https://www.threads.com/@studio.lin/post/DQa1Notion03",
83 "text": "The new Notion calendar + database templates are a game changer for my content planning ❤️ Highly recommend to any creator.",
84 "author": "studio.lin",
85 "author_id": "63310003",
86 "author_name": "Lin Studio",
87 "created_at": "2026-09-26T19:05:00Z",
88 "like_count": 412,
89 "reply_count": 31,
90 "repost_count": 40,
91 "quote_count": 6,
92 "view_count": 48200,
93 "follower_count": 88000,
94 "following_count": 1210,
95 "verified": true,
96 "lang": "en",
97 "is_reply": false,
98 "is_repost": false
99 },
100 {
101 "id": "3456789012345678904",
102 "url": "https://www.threads.com/@phil.thinks/post/DQa1Notion04",
103 "text": "The notion of free will is overrated, change my mind.",
104 "author": "phil.thinks",
105 "author_id": "63310004",
106 "created_at": "2026-09-27T10:00:00Z",
107 "like_count": 9,
108 "reply_count": 4,
109 "view_count": 700,
110 "follower_count": 450,
111 "following_count": 300,
112 "lang": "en"
113 },
114 {
115 "id": "3456789012345678905",
116 "url": "https://www.threads.com/@deals4u/post/DQa1Notion05",
117 "text": "GIVEAWAY 🎁 free crypto airdrop for Notion users, DM to claim #notion #crypto #airdrop #free #win #giveaway #nft #web3 #money",
118 "author": "deals4u",
119 "author_id": "63310005",
120 "created_at": "2026-09-27T11:00:00Z",
121 "like_count": 2,
122 "reply_count": 0,
123 "view_count": 90,
124 "follower_count": 30,
125 "following_count": 4800,
126 "lang": "en"
127 },
128 {
129 "id": "3456789012345678906",
130 "url": "https://www.threads.com/@pm.sara/post/DQa1Notion06",
131 "text": "How do I share a Notion database with a client without giving them access to the whole workspace?",
132 "author": "pm.sara",
133 "author_id": "63310006",
134 "author_name": "Sara P.",
135 "created_at": "2026-09-27T16:20:00Z",
136 "like_count": 14,
137 "reply_count": 0,
138 "repost_count": 0,
139 "quote_count": 0,
140 "view_count": 1900,
141 "follower_count": 860,
142 "following_count": 540,
143 "verified": false,
144 "lang": "en",
145 "is_reply": false,
146 "is_repost": false
147 },
148 {
149 "id": "3456789012345678907",
150 "url": "https://www.threads.com/@founder.kai/post/DQa1Notion07",
151 "text": "Switched our team wiki from Confluence to Notion last month: onboarding docs finally get read. Notion vs Confluence isn't even close for a startup.",
152 "author": "founder.kai",
153 "author_id": "63310007",
154 "author_name": "Kai M.",
155 "created_at": "2026-09-25T09:30:00Z",
156 "like_count": 96,
157 "reply_count": 11,
158 "repost_count": 5,
159 "quote_count": 2,
160 "view_count": 9100,
161 "follower_count": 5400,
162 "following_count": 760,
163 "verified": false,
164 "lang": "en",
165 "is_reply": false,
166 "is_repost": false
167 },
168 {
169 "id": "3456789012345678908",
170 "url": "https://www.threads.com/@tech.digest/post/DQa1Notion08",
171 "text": "Notion announces an AI meeting-notes feature for all paid plans, rolling out this week. https://www.notion.so/releases",
172 "author": "tech.digest",
173 "author_id": "63310008",
174 "author_name": "Tech Digest",
175 "created_at": "2026-09-26T07:45:00Z",
176 "like_count": 233,
177 "reply_count": 18,
178 "repost_count": 51,
179 "quote_count": 9,
180 "view_count": 60300,
181 "follower_count": 150000,
182 "following_count": 95,
183 "verified": true,
184 "lang": "en",
185 "urls": [
186 "https://www.notion.so/releases"
187 ],
188 "is_reply": false,
189 "is_repost": false
190 }
191 ],
192 "maxPostsPerTerm": 80,
193 "discoveryInput": {}
194};
195
196
197const run = await client.actor("rich_minds/threads-brand-monitoring-ai").call(input);
198
199
200console.log('Results from dataset');
201console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
202const { items } = await client.dataset(run.defaultDatasetId).listItems();
203items.forEach((item) => {
204 console.dir(item);
205});
206
207