1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 {
13 "recordType": "screening_result",
14 "schemaVersion": "1.0.0",
15 "found": true,
16 "partial": false,
17 "failureType": null,
18 "checkedAt": "2026-09-22T05:34:24.086Z",
19 "observedAt": "2026-09-22T05:34:24.086Z",
20 "input": "Rosneft",
21 "match": true,
22 "matchCount": 3,
23 "matches": [
24 {
25 "listName": "EU Consolidated",
26 "entityName": "RN AERO",
27 "entityType": "entity",
28 "program": "UKR",
29 "matchedName": "ROSNEFT AERO",
30 "matchedNameType": "alias",
31 "score": 1
32 },
33 {
34 "listName": "OFAC SDN",
35 "entityName": "ROSNEFT TRADING S.A.",
36 "entityType": "entity",
37 "program": "UKRAINE-EO13662, VENEZUELA-EO13850",
38 "matchedName": "ROSNEFT TRADING S.A.",
39 "matchedNameType": "primary",
40 "score": 1
41 },
42 {
43 "listName": "OFAC SDN",
44 "entityName": "OPEN JOINT-STOCK COMPANY ROSNEFT OIL COMPANY",
45 "entityType": "entity",
46 "program": "UKRAINE-EO13662, RUSSIA-EO14024",
47 "matchedName": "OPEN JOINT-STOCK COMPANY ROSNEFT OIL COMPANY",
48 "matchedNameType": "primary",
49 "score": 1
50 }
51 ],
52 "listsChecked": [
53 "OFAC SDN",
54 "EU Consolidated"
55 ],
56 "listsComplete": true,
57 "__source": {
58 "actor": "zinin/sanctions-screening",
59 "actorId": "RYwuWHt3affl21mgr",
60 "runId": "gfGprzXPXSImvd42G",
61 "datasetId": "FaAC6aj77s1y29W7J",
62 "sampleRowIndex": 0,
63 "projection": "Public business-record fields only; observed values unchanged. Added __source is provenance, not upstream payload."
64 }
65 },
66 {
67 "recordType": "sanctions_update_alert",
68 "found": false,
69 "error": "",
70 "checkedAt": "2026-09-22T05:34:43.197Z",
71 "observedAt": "2026-09-22T05:34:43.197Z",
72 "baselineCreated": false,
73 "name": null,
74 "entityId": null,
75 "entityName": null,
76 "listName": null,
77 "entityType": null,
78 "program": null,
79 "matchedName": null,
80 "matchedNameType": null,
81 "currentHitsCount": null,
82 "changedHitsCount": null,
83 "disappearedHitsCount": null,
84 "sourceComplete": true,
85 "errorCode": null,
86 "changeType": null,
87 "__source": {
88 "actor": "zinin/sanctions-update-alert",
89 "actorId": "VH62PZAzDLhD5qeU9",
90 "runId": "90xCoTrpIdfoZy8gy",
91 "datasetId": "jbD8vHxOyfg1T2OL7",
92 "sampleRowIndex": 0,
93 "projection": "Public business-record fields only; observed values unchanged. Added __source is provenance, not upstream payload."
94 }
95 },
96 {
97 "recordType": "sanctions_update_alert",
98 "found": false,
99 "error": "",
100 "checkedAt": "2026-09-19T17:38:22.865Z",
101 "observedAt": "2026-09-19T17:38:22.865Z",
102 "baselineCreated": false,
103 "name": null,
104 "entityId": null,
105 "entityName": null,
106 "listName": null,
107 "entityType": null,
108 "program": null,
109 "matchedName": null,
110 "matchedNameType": null,
111 "currentHitsCount": null,
112 "changedHitsCount": null,
113 "disappearedHitsCount": null,
114 "sourceComplete": true,
115 "errorCode": null,
116 "changeType": null,
117 "__source": {
118 "actor": "zinin/sanctions-update-alert",
119 "actorId": "VH62PZAzDLhD5qeU9",
120 "runId": "F1DaBhH5BOckF9xCo",
121 "datasetId": "yRboZHYT2ATFJWPhc",
122 "sampleRowIndex": 0,
123 "projection": "Public business-record fields only; observed values unchanged. Added __source is provenance, not upstream payload."
124 }
125 },
126 {
127 "recordType": "sanctions_update_alert",
128 "found": false,
129 "error": "",
130 "checkedAt": "2026-09-17T11:31:36.877Z",
131 "observedAt": "2026-09-17T11:31:36.877Z",
132 "baselineCreated": false,
133 "name": null,
134 "entityId": null,
135 "entityName": null,
136 "listName": null,
137 "entityType": null,
138 "program": null,
139 "matchedName": null,
140 "matchedNameType": null,
141 "currentHitsCount": null,
142 "changedHitsCount": null,
143 "disappearedHitsCount": null,
144 "sourceComplete": true,
145 "errorCode": null,
146 "changeType": null,
147 "__source": {
148 "actor": "zinin/sanctions-update-alert",
149 "actorId": "VH62PZAzDLhD5qeU9",
150 "runId": "bMS7hRm12kHbo7da6",
151 "datasetId": "kJLTAIClpQ9I8Cggx",
152 "sampleRowIndex": 0,
153 "projection": "Public business-record fields only; observed values unchanged. Added __source is provenance, not upstream payload."
154 }
155 }
156 ]
157};
158
159
160const run = await client.actor("zinin/sanctions-source-coverage-review").call(input);
161
162
163console.log('Results from dataset');
164console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
165const { items } = await client.dataset(run.defaultDatasetId).listItems();
166items.forEach((item) => {
167 console.dir(item);
168});
169
170