1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "keywords": [
12 "your-brand-name",
13 "your-product-name"
14 ],
15 "sources": [
16 "reddit",
17 "hackernews",
18 "pastebin",
19 "github",
20 "web"
21 ],
22 "urgencyKeywords": [
23 "leak",
24 "breach",
25 "exploit",
26 "password",
27 "dump",
28 "compromised",
29 "vulnerability",
30 "ransomware",
31 "data breach"
32 ],
33 "webhookUrl": ""
34};
35
36
37const run = await client.actor("second_coming/brand-mention-monitor").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47