1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "targets": [
12 {
13 "id": "sec-rss",
14 "name": "SEC Press Releases",
15 "jurisdiction": "US-Federal",
16 "regulator": "SEC",
17 "domain": "securities",
18 "criticality": "high",
19 "owner": "Legal / Compliance",
20 "tags": [
21 "securities",
22 "federal"
23 ],
24 "feedUrl": "https://www.sec.gov/news/pressreleases.rss"
25 },
26 {
27 "id": "fda-recalls",
28 "name": "FDA Recalls & Safety",
29 "jurisdiction": "US-Federal",
30 "regulator": "FDA",
31 "domain": "health",
32 "criticality": "high",
33 "owner": "Regulatory Affairs",
34 "tags": [
35 "health",
36 "safety"
37 ],
38 "feedUrl": "https://www.fda.gov/about-fda/contact-fda/stay-informed/rss-feeds/recalls/rss.xml"
39 }
40 ]
41};
42
43
44const run = await client.actor("taroyamada/regulatory-change-monitor").call(input);
45
46
47console.log('Results from dataset');
48console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
49const { items } = await client.dataset(run.defaultDatasetId).listItems();
50items.forEach((item) => {
51 console.dir(item);
52});
53
54