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