1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "watchlist": [
12 {
13 "name": "Aculife Healthcare Private Limited",
14 "country": "India"
15 },
16 {
17 "name": "Avlab S.r.l.",
18 "country": "Italy"
19 },
20 {
21 "name": "Laboratorios Eurisko S.L.",
22 "country": "Spain"
23 }
24 ],
25 "mode": "full",
26 "euWindowDays": 120,
27 "includeEuDetails": true,
28 "maxDrilldowns": 6,
29 "fdaWindowDays": 120,
30 "fdaMaxPages": 1,
31 "minMatchScore": 0.8,
32 "includeUnmatchedEvents": true,
33 "ddapiAuthorizationUser": "",
34 "ddapiAuthorizationKey": "",
35 "ddapiMaxRows": 500,
36 "maxItems": 100,
37 "minRequestIntervalMs": 800
38};
39
40
41const run = await client.actor("atlas-data/gmp-enforcement-watch").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51