1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "records": [
12 {
13 "id": "row-1",
14 "type": "NIP",
15 "value": "123-456-32-18"
16 },
17 {
18 "id": "row-2",
19 "type": "REGON",
20 "value": "123456785"
21 },
22 {
23 "id": "row-3",
24 "type": "KRS",
25 "value": "0000123456"
26 },
27 {
28 "id": "row-4",
29 "type": "DE_VAT",
30 "value": "DE136695976"
31 },
32 {
33 "id": "row-5",
34 "type": "IBAN",
35 "value": "PL61 1090 1014 0000 0712 1981 2874"
36 }
37 ]
38};
39
40
41const run = await client.actor("danielmichalek/my-actor").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