1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "counterparties": [],
12 "maxDiscoveryChargeUsd": 0.5,
13 "extraChecks": [
14 "registers",
15 "domain",
16 "media",
17 "tradeRisk"
18 ],
19 "sourceMode": "list",
20 "itemsList": [
21 {
22 "name": "Northwind Industrial Supplies GmbH",
23 "sample": true,
24 "country": "DE",
25 "vatNumber": "DE000000001",
26 "website": "https://northwind-industrial.example",
27 "sampleScreening": {
28 "legalName": "Northwind Industrial Supplies GmbH",
29 "lei": "529900SAMPLE00000001",
30 "leiStatus": "ISSUED",
31 "jurisdiction": "DE",
32 "legalAddress": "Hafenstrasse 12, 20457, Hamburg, DE",
33 "registrationNumber": "HRB 000001 (sample)",
34 "leiChosenBy": "rules",
35 "parents": [
36 {
37 "relation": "direct",
38 "lei": "529900SAMPLE00000002",
39 "legalName": "Northwind Holding AG",
40 "verdict": "clear"
41 }
42 ],
43 "vatNumber": "DE000000001",
44 "vatValid": true,
45 "vatName": "NORTHWIND INDUSTRIAL SUPPLIES GMBH",
46 "vatAddress": "HAFENSTRASSE 12, 20457 HAMBURG",
47 "vatNameMatches": true,
48 "vatCheckedAt": "2026-10-23T08:00:00+00:00",
49 "sanctionsHits": [],
50 "listsChecked": {
51 "OFAC_SDN": "2026-10-21",
52 "OFAC_CONS": "2026-10-21",
53 "US_CSL": "2026-10-21",
54 "UN": "2026-10-21",
55 "EU": "2026-10-15",
56 "UK": "2026-10-16"
57 },
58 "register": null,
59 "domain": "northwind-industrial.example",
60 "domainCreated": "2009-04-14",
61 "domainAgeYears": 17.6,
62 "siteLastUpdated": "2026-11-03",
63 "employeeRange": "51-200",
64 "activitySignals": [
65 "domain registered 2009-04-14",
66 "sitemap lastmod 2026-11-03",
67 "site says 51-200 employees"
68 ],
69 "adverseMedia": [],
70 "adverseMediaVerdict": "none",
71 "countryFatfStatus": "none",
72 "countrySanctionsProgramme": {
73 "active": false,
74 "programmes": [],
75 "entries": 0,
76 "listsDated": {}
77 },
78 "evidenceChecked": [
79 {
80 "check": "registers",
81 "source": "DE",
82 "sourceUrl": "",
83 "result": "not_supported",
84 "detail": "no free official register API for this country in this version",
85 "publishedOn": null,
86 "checkedAt": "2026-11-22T09:00:00+00:00"
87 },
88 {
89 "check": "domain",
90 "source": "RDAP",
91 "sourceUrl": "https://rdap.example/domain/northwind-industrial.example",
92 "result": "found",
93 "detail": "sample",
94 "publishedOn": null,
95 "checkedAt": "2026-11-22T09:00:00+00:00"
96 },
97 {
98 "check": "domain",
99 "source": "the company's website",
100 "sourceUrl": "https://northwind-industrial.example/",
101 "result": "found",
102 "detail": "sample",
103 "publishedOn": null,
104 "checkedAt": "2026-11-22T09:00:00+00:00"
105 },
106 {
107 "check": "media",
108 "source": "Google News RSS",
109 "sourceUrl": "https://news.google.com/rss/search?q=%22Northwind%20Industrial%20Supplies%22",
110 "result": "not_found",
111 "detail": "sample: 4 headlines read, 0 counted",
112 "publishedOn": null,
113 "checkedAt": "2026-11-22T09:00:00+00:00"
114 },
115 {
116 "check": "tradeRisk",
117 "source": "FATF black and grey lists",
118 "sourceUrl": "https://www.fatf-gafi.org/en/countries/black-and-grey-lists.html",
119 "result": "found",
120 "detail": "3 + 18 jurisdictions (sample)",
121 "publishedOn": "2026-10-30",
122 "checkedAt": "2026-11-22T09:00:00+00:00"
123 }
124 ]
125 }
126 },
127 {
128 "name": "Oceanic Vantage Shipping FZE",
129 "sample": true,
130 "country": "AE",
131 "address": "Office 1407, Jebel Ali Free Zone, Dubai",
132 "sampleScreening": {
133 "parents": [],
134 "sanctionsHits": [
135 {
136 "list": "OFAC_SDN",
137 "entryId": "OFAC_SDN-SAMPLE-1",
138 "matchedName": "OCEANIC VANTAGE SHIPPING FZE",
139 "entryName": "OCEANIC VANTAGE SHIPPING FZE",
140 "entryType": "company",
141 "score": 100,
142 "weakAlias": false,
143 "assessment": "likely",
144 "decidingFields": [
145 "name",
146 "country",
147 "address"
148 ],
149 "reason": "name 100/100 and country AE agree, address shares jebel, dubai",
150 "adjudicatedBy": "rules",
151 "programmes": [
152 "IRAN-EO13846"
153 ],
154 "countries": [
155 "AE"
156 ],
157 "listedOn": "2024-03-14",
158 "sourceUrl": "https://sanctionssearch.ofac.treas.gov/",
159 "subject": "counterparty",
160 "foundVia": "name"
161 },
162 {
163 "list": "UK",
164 "entryId": "UK-SAMPLE-2",
165 "matchedName": "Oceanic Vantage Shipping FZE",
166 "entryName": "Oceanic Vantage Shipping FZE",
167 "entryType": "company",
168 "score": 100,
169 "weakAlias": false,
170 "assessment": "likely",
171 "decidingFields": [
172 "name",
173 "country"
174 ],
175 "reason": "name 100/100 and country AE agree",
176 "adjudicatedBy": "rules",
177 "programmes": [
178 "The Iran (Sanctions) Regulations 2023"
179 ],
180 "countries": [
181 "AE",
182 "IR"
183 ],
184 "listedOn": "2024-05-02",
185 "sourceUrl": "https://sanctionslist.fcdo.gov.uk/docs/UK-Sanctions-List.csv",
186 "subject": "counterparty",
187 "foundVia": "name"
188 }
189 ],
190 "listsChecked": {
191 "OFAC_SDN": "2026-10-21",
192 "OFAC_CONS": "2026-10-21",
193 "US_CSL": "2026-10-21",
194 "UN": "2026-10-21",
195 "EU": "2026-10-15",
196 "UK": "2026-10-16"
197 },
198 "register": null,
199 "domain": "oceanic-vantage.example",
200 "domainCreated": "2026-09-20",
201 "domainAgeYears": 0.2,
202 "siteLastUpdated": null,
203 "employeeRange": null,
204 "activitySignals": [
205 "domain registered 2026-09-20"
206 ],
207 "adverseMedia": [
208 {
209 "title": "(sample) Oceanic Vantage Shipping tanker seized over sanctions-evasion probe",
210 "url": "https://news.example/oceanic-vantage",
211 "date": "2026-10-14",
212 "source": "Sample Maritime News",
213 "riskWords": [
214 "seized",
215 "sanctions",
216 "probe"
217 ],
218 "nameMatchScore": 100,
219 "countryMatch": null,
220 "old": false,
221 "counted": true
222 },
223 {
224 "title": "(sample) Gulf shipping firm Oceanic Vantage named in smuggling case",
225 "url": "https://news.example/oceanic-vantage-2",
226 "date": "2026-08-02",
227 "source": "Sample Gulf Daily",
228 "riskWords": [
229 "smuggling"
230 ],
231 "nameMatchScore": 100,
232 "countryMatch": null,
233 "old": false,
234 "counted": true
235 }
236 ],
237 "adverseMediaVerdict": "possible",
238 "countryFatfStatus": "none",
239 "countrySanctionsProgramme": {
240 "active": false,
241 "programmes": [],
242 "entries": 0,
243 "listsDated": {}
244 },
245 "evidenceChecked": [
246 {
247 "check": "registers",
248 "source": "AE",
249 "sourceUrl": "",
250 "result": "not_supported",
251 "detail": "no free official register API for this country in this version",
252 "publishedOn": null,
253 "checkedAt": "2026-11-22T09:00:00+00:00"
254 },
255 {
256 "check": "domain",
257 "source": "RDAP",
258 "sourceUrl": "https://rdap.example/domain/oceanic-vantage.example",
259 "result": "found",
260 "detail": "sample",
261 "publishedOn": null,
262 "checkedAt": "2026-11-22T09:00:00+00:00"
263 },
264 {
265 "check": "domain",
266 "source": "the company's website",
267 "sourceUrl": "https://oceanic-vantage.example/",
268 "result": "no_date",
269 "detail": "sample: no dated content on the home page or in the sitemap",
270 "publishedOn": null,
271 "checkedAt": "2026-11-22T09:00:00+00:00"
272 },
273 {
274 "check": "media",
275 "source": "Google News RSS",
276 "sourceUrl": "https://news.google.com/rss/search?q=%22Oceanic%20Vantage%20Shipping%22",
277 "result": "found",
278 "detail": "sample: 6 headlines read, 2 counted",
279 "publishedOn": null,
280 "checkedAt": "2026-11-22T09:00:00+00:00"
281 },
282 {
283 "check": "tradeRisk",
284 "source": "FATF black and grey lists",
285 "sourceUrl": "https://www.fatf-gafi.org/en/countries/black-and-grey-lists.html",
286 "result": "found",
287 "detail": "3 + 18 jurisdictions (sample)",
288 "publishedOn": "2026-10-30",
289 "checkedAt": "2026-11-22T09:00:00+00:00"
290 }
291 ]
292 }
293 },
294 {
295 "name": "Baltic Timber Export OU",
296 "sample": true,
297 "country": "EE",
298 "vatNumber": "EE100000000",
299 "sampleScreening": {
300 "parents": [],
301 "vatNumber": "EE100000000",
302 "vatValid": false,
303 "vatCheckedAt": "2026-10-23T08:00:00+00:00",
304 "sanctionsHits": [
305 {
306 "list": "EU",
307 "entryId": "EU-SAMPLE-3",
308 "matchedName": "Baltik Timber Export LLC",
309 "entryName": "Baltik Timber Export LLC",
310 "entryType": "company",
311 "score": 89,
312 "weakAlias": false,
313 "assessment": "unlikely",
314 "decidingFields": [
315 "country"
316 ],
317 "reason": "listed for BY, RU, the counterparty is in EE",
318 "adjudicatedBy": "rules",
319 "programmes": [
320 "BLR"
321 ],
322 "countries": [
323 "BY",
324 "RU"
325 ],
326 "listedOn": "2023-02-25",
327 "sourceUrl": "https://eur-lex.europa.eu/",
328 "subject": "counterparty",
329 "foundVia": "name"
330 }
331 ],
332 "listsChecked": {
333 "OFAC_SDN": "2026-10-21",
334 "OFAC_CONS": "2026-10-21",
335 "US_CSL": "2026-10-21",
336 "EU": "2026-10-15",
337 "UK": "2026-10-16"
338 },
339 "listsUnavailable": [
340 "UN"
341 ],
342 "register": null,
343 "domain": null,
344 "domainCreated": null,
345 "domainAgeYears": null,
346 "siteLastUpdated": null,
347 "employeeRange": null,
348 "activitySignals": [],
349 "adverseMedia": [],
350 "adverseMediaVerdict": "none",
351 "countryFatfStatus": "none",
352 "countrySanctionsProgramme": {
353 "active": false,
354 "programmes": [],
355 "entries": 0,
356 "listsDated": {}
357 },
358 "evidenceChecked": [
359 {
360 "check": "registers",
361 "source": "EE",
362 "sourceUrl": "",
363 "result": "not_supported",
364 "detail": "the Estonian e-Business Register publishes its open data as a daily bulk file, not a lookup API — not read in this version",
365 "publishedOn": null,
366 "checkedAt": "2026-11-22T09:00:00+00:00"
367 },
368 {
369 "check": "domain",
370 "source": "—",
371 "sourceUrl": "",
372 "result": "skipped",
373 "detail": "no website or domain on the row",
374 "publishedOn": null,
375 "checkedAt": "2026-11-22T09:00:00+00:00"
376 },
377 {
378 "check": "media",
379 "source": "Google News RSS",
380 "sourceUrl": "https://news.google.com/rss/search?q=%22Baltic%20Timber%20Export%22",
381 "result": "not_found",
382 "detail": "sample: 2 headlines read, 0 counted",
383 "publishedOn": null,
384 "checkedAt": "2026-11-22T09:00:00+00:00"
385 },
386 {
387 "check": "tradeRisk",
388 "source": "FATF black and grey lists",
389 "sourceUrl": "https://www.fatf-gafi.org/en/countries/black-and-grey-lists.html",
390 "result": "found",
391 "detail": "3 + 18 jurisdictions (sample)",
392 "publishedOn": "2026-10-30",
393 "checkedAt": "2026-11-22T09:00:00+00:00"
394 }
395 ]
396 }
397 },
398 {
399 "name": "Fjordkyst Seafood AS",
400 "sample": true,
401 "country": "NO",
402 "registrationNumber": "999000001",
403 "website": "https://fjordkyst-seafood.example",
404 "sampleScreening": {
405 "parents": [],
406 "sanctionsHits": [],
407 "listsChecked": {
408 "OFAC_SDN": "2026-10-21",
409 "OFAC_CONS": "2026-10-21",
410 "US_CSL": "2026-10-21",
411 "UN": "2026-10-21",
412 "EU": "2026-10-15",
413 "UK": "2026-10-16"
414 },
415 "register": {
416 "name": "FJORDKYST SEAFOOD AS (sample)",
417 "country": "NO",
418 "number": "999000001",
419 "companyStatus": "dissolved",
420 "incorporatedOn": "2014-03-11",
421 "dissolvedOn": "2025-06-30",
422 "registeredAddress": "Sample Brygge 1, 6000 Ålesund, Norge",
423 "officers": [],
424 "legalForm": "Aksjeselskap",
425 "employees": null,
426 "website": null,
427 "matchedBy": "number",
428 "nameScore": null,
429 "sourceUrl": "https://virksomhet.brreg.no/oppslag/enheter/999000001"
430 },
431 "domain": "fjordkyst-seafood.example",
432 "domainCreated": "2014-02-20",
433 "domainAgeYears": 12.8,
434 "siteLastUpdated": "2023-04-02",
435 "employeeRange": null,
436 "activitySignals": [
437 "domain registered 2014-02-20",
438 "sitemap lastmod 2023-04-02"
439 ],
440 "adverseMedia": [],
441 "adverseMediaVerdict": "none",
442 "countryFatfStatus": "none",
443 "countrySanctionsProgramme": {
444 "active": false,
445 "programmes": [],
446 "entries": 0,
447 "listsDated": {
448 "OFAC_SDN": "2026-10-21",
449 "OFAC_CONS": "2026-10-21",
450 "US_CSL": "2026-10-21",
451 "UN": "2026-10-21",
452 "EU": "2026-10-15",
453 "UK": "2026-10-16"
454 }
455 },
456 "evidenceChecked": [
457 {
458 "check": "registers",
459 "source": "Brønnøysund Register Centre (Enhetsregisteret)",
460 "sourceUrl": "https://virksomhet.brreg.no/oppslag/enheter/999000001",
461 "result": "found",
462 "detail": "sample: dissolved — matched by number",
463 "publishedOn": null,
464 "checkedAt": "2026-11-22T09:00:00+00:00"
465 },
466 {
467 "check": "domain",
468 "source": "RDAP",
469 "sourceUrl": "https://rdap.example/domain/fjordkyst-seafood.example",
470 "result": "found",
471 "detail": "sample",
472 "publishedOn": null,
473 "checkedAt": "2026-11-22T09:00:00+00:00"
474 },
475 {
476 "check": "domain",
477 "source": "the company's website",
478 "sourceUrl": "https://fjordkyst-seafood.example/",
479 "result": "found",
480 "detail": "sample",
481 "publishedOn": null,
482 "checkedAt": "2026-11-22T09:00:00+00:00"
483 },
484 {
485 "check": "media",
486 "source": "Google News RSS",
487 "sourceUrl": "https://news.google.com/rss/search?q=%22Fjordkyst%20Seafood%22",
488 "result": "not_found",
489 "detail": "sample: 0 headlines",
490 "publishedOn": null,
491 "checkedAt": "2026-11-22T09:00:00+00:00"
492 },
493 {
494 "check": "tradeRisk",
495 "source": "FATF black and grey lists",
496 "sourceUrl": "https://www.fatf-gafi.org/en/countries/black-and-grey-lists.html",
497 "result": "found",
498 "detail": "3 + 18 jurisdictions (sample)",
499 "publishedOn": "2026-10-30",
500 "checkedAt": "2026-11-22T09:00:00+00:00"
501 }
502 ]
503 }
504 },
505 {
506 "name": "Mekong Cashew Trading JSC",
507 "sample": true,
508 "country": "VN",
509 "website": "https://mekong-cashew.example",
510 "sampleScreening": {
511 "parents": [],
512 "sanctionsHits": [],
513 "listsChecked": {
514 "OFAC_SDN": "2026-10-21",
515 "OFAC_CONS": "2026-10-21",
516 "US_CSL": "2026-10-21",
517 "UN": "2026-10-21",
518 "EU": "2026-10-15",
519 "UK": "2026-10-16"
520 },
521 "register": null,
522 "domain": "mekong-cashew.example",
523 "domainCreated": "2018-07-09",
524 "domainAgeYears": 8.4,
525 "siteLastUpdated": "2026-10-28",
526 "employeeRange": "201-500",
527 "activitySignals": [
528 "domain registered 2018-07-09",
529 "page date 2026-10-28",
530 "site says 201-500 employees"
531 ],
532 "adverseMedia": [],
533 "adverseMediaVerdict": "none",
534 "countryFatfStatus": "increased_monitoring",
535 "countrySanctionsProgramme": {
536 "active": false,
537 "programmes": [],
538 "entries": 0,
539 "listsDated": {
540 "OFAC_SDN": "2026-10-21",
541 "OFAC_CONS": "2026-10-21",
542 "US_CSL": "2026-10-21",
543 "UN": "2026-10-21",
544 "EU": "2026-10-15",
545 "UK": "2026-10-16"
546 }
547 },
548 "evidenceChecked": [
549 {
550 "check": "registers",
551 "source": "VN",
552 "sourceUrl": "",
553 "result": "not_supported",
554 "detail": "no free official register API for this country in this version",
555 "publishedOn": null,
556 "checkedAt": "2026-11-22T09:00:00+00:00"
557 },
558 {
559 "check": "domain",
560 "source": "RDAP",
561 "sourceUrl": "https://rdap.example/domain/mekong-cashew.example",
562 "result": "found",
563 "detail": "sample",
564 "publishedOn": null,
565 "checkedAt": "2026-11-22T09:00:00+00:00"
566 },
567 {
568 "check": "domain",
569 "source": "the company's website",
570 "sourceUrl": "https://mekong-cashew.example/",
571 "result": "found",
572 "detail": "sample",
573 "publishedOn": null,
574 "checkedAt": "2026-11-22T09:00:00+00:00"
575 },
576 {
577 "check": "media",
578 "source": "Google News RSS",
579 "sourceUrl": "https://news.google.com/rss/search?q=%22Mekong%20Cashew%20Trading%22",
580 "result": "not_found",
581 "detail": "sample: 3 headlines read, 0 counted",
582 "publishedOn": null,
583 "checkedAt": "2026-11-22T09:00:00+00:00"
584 },
585 {
586 "check": "tradeRisk",
587 "source": "FATF black and grey lists",
588 "sourceUrl": "https://www.fatf-gafi.org/en/countries/black-and-grey-lists.html",
589 "result": "found",
590 "detail": "3 + 18 jurisdictions (sample)",
591 "publishedOn": "2026-10-30",
592 "checkedAt": "2026-11-22T09:00:00+00:00"
593 }
594 ]
595 }
596 }
597 ]
598};
599
600
601const run = await client.actor("rich_minds/counterparty-check-ai").call(input);
602
603
604console.log('Results from dataset');
605console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
606const { items } = await client.dataset(run.defaultDatasetId).listItems();
607items.forEach((item) => {
608 console.dir(item);
609});
610
611