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 "ownershipDepth": 3,
52 "monitorFields": [],
53 "emitBaseline": true,
54 "monitorFullRescan": false,
55 "maxResults": 10,
56 "maxScan": 300,
57 "proxyConfiguration": {
58 "useApifyProxy": false
59 }
60};
61
62
63const run = await client.actor("getascraper/poland-krs-company-registry-scraper").call(input);
64
65
66console.log('Results from dataset');
67console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
68const { items } = await client.dataset(run.defaultDatasetId).listItems();
69items.forEach((item) => {
70 console.dir(item);
71});
72
73