1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "lookup",
12 "krsNumbers": [
13 "0000028860",
14 "0000006865",
15 "0000023302",
16 "0000026438",
17 "0000019193"
18 ],
19 "nipNumbers": [],
20 "regonNumbers": [],
21 "registers": "both",
22 "daysBack": 3,
23 "deepScan": false,
24 "legalForms": [],
25 "voivodeships": [],
26 "cities": [],
27 "postalCodePrefixes": [],
28 "nameContains": [],
29 "excludeTerms": [],
30 "pkdCodes": [],
31 "pkdScope": "any",
32 "onlyWithWebsite": false,
33 "onlyWithEmail": false,
34 "onlyWithFinancialStatements": false,
35 "statuses": [],
36 "onlyWithArrears": false,
37 "boardMemberNameContains": [],
38 "boardRoleContains": [],
39 "onlyWithSupervisoryBoard": false,
40 "shareholderNameContains": [],
41 "shareholderKrs": [],
42 "onlyWithCorporateShareholders": false,
43 "outputSections": [
44 "board",
45 "ownership",
46 "activities",
47 "filings",
48 "risk"
49 ],
50 "historyEntriesLimit": 25,
51 "monitorFields": [],
52 "emitBaseline": true,
53 "monitorFullRescan": false,
54 "maxResults": 10,
55 "maxScan": 300,
56 "proxyConfiguration": {
57 "useApifyProxy": false
58 }
59};
60
61
62const run = await client.actor("getascraper/poland-krs-company-registry-scraper").call(input);
63
64
65console.log('Results from dataset');
66console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
67const { items } = await client.dataset(run.defaultDatasetId).listItems();
68items.forEach((item) => {
69 console.dir(item);
70});
71
72