1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "counterparties": [],
10 "maxDiscoveryChargeUsd": 0.5,
11 "sourceMode": "list",
12 "itemsList": [
13 {
14 "name": "Northwind Industrial Supplies GmbH",
15 "sample": True,
16 "country": "DE",
17 "vatNumber": "DE000000001",
18 "website": "https://northwind-industrial.example",
19 "sampleScreening": {
20 "legalName": "Northwind Industrial Supplies GmbH",
21 "lei": "529900SAMPLE00000001",
22 "leiStatus": "ISSUED",
23 "jurisdiction": "DE",
24 "legalAddress": "Hafenstrasse 12, 20457, Hamburg, DE",
25 "registrationNumber": "HRB 000001 (sample)",
26 "leiChosenBy": "rules",
27 "parents": [{
28 "relation": "direct",
29 "lei": "529900SAMPLE00000002",
30 "legalName": "Northwind Holding AG",
31 "verdict": "clear",
32 }],
33 "vatNumber": "DE000000001",
34 "vatValid": True,
35 "vatName": "NORTHWIND INDUSTRIAL SUPPLIES GMBH",
36 "vatAddress": "HAFENSTRASSE 12, 20457 HAMBURG",
37 "vatNameMatches": True,
38 "vatCheckedAt": "2026-10-23T08:00:00+00:00",
39 "sanctionsHits": [],
40 "listsChecked": {
41 "OFAC_SDN": "2026-10-21",
42 "OFAC_CONS": "2026-10-21",
43 "US_CSL": "2026-10-21",
44 "UN": "2026-10-21",
45 "EU": "2026-10-15",
46 "UK": "2026-10-16",
47 },
48 },
49 },
50 {
51 "name": "Oceanic Vantage Shipping FZE",
52 "sample": True,
53 "country": "AE",
54 "address": "Office 1407, Jebel Ali Free Zone, Dubai",
55 "sampleScreening": {
56 "parents": [],
57 "sanctionsHits": [
58 {
59 "list": "OFAC_SDN",
60 "entryId": "OFAC_SDN-SAMPLE-1",
61 "matchedName": "OCEANIC VANTAGE SHIPPING FZE",
62 "entryName": "OCEANIC VANTAGE SHIPPING FZE",
63 "entryType": "company",
64 "score": 100,
65 "weakAlias": False,
66 "assessment": "likely",
67 "decidingFields": [
68 "name",
69 "country",
70 "address",
71 ],
72 "reason": "name 100/100 and country AE agree, address shares jebel, dubai",
73 "adjudicatedBy": "rules",
74 "programmes": ["IRAN-EO13846"],
75 "countries": ["AE"],
76 "listedOn": "2024-03-14",
77 "sourceUrl": "https://sanctionssearch.ofac.treas.gov/",
78 "subject": "counterparty",
79 "foundVia": "name",
80 },
81 {
82 "list": "UK",
83 "entryId": "UK-SAMPLE-2",
84 "matchedName": "Oceanic Vantage Shipping FZE",
85 "entryName": "Oceanic Vantage Shipping FZE",
86 "entryType": "company",
87 "score": 100,
88 "weakAlias": False,
89 "assessment": "likely",
90 "decidingFields": [
91 "name",
92 "country",
93 ],
94 "reason": "name 100/100 and country AE agree",
95 "adjudicatedBy": "rules",
96 "programmes": ["The Iran (Sanctions) Regulations 2023"],
97 "countries": [
98 "AE",
99 "IR",
100 ],
101 "listedOn": "2024-05-02",
102 "sourceUrl": "https://sanctionslist.fcdo.gov.uk/docs/UK-Sanctions-List.csv",
103 "subject": "counterparty",
104 "foundVia": "name",
105 },
106 ],
107 "listsChecked": {
108 "OFAC_SDN": "2026-10-21",
109 "OFAC_CONS": "2026-10-21",
110 "US_CSL": "2026-10-21",
111 "UN": "2026-10-21",
112 "EU": "2026-10-15",
113 "UK": "2026-10-16",
114 },
115 },
116 },
117 {
118 "name": "Baltic Timber Export OU",
119 "sample": True,
120 "country": "EE",
121 "vatNumber": "EE100000000",
122 "sampleScreening": {
123 "parents": [],
124 "vatNumber": "EE100000000",
125 "vatValid": False,
126 "vatCheckedAt": "2026-10-23T08:00:00+00:00",
127 "sanctionsHits": [{
128 "list": "EU",
129 "entryId": "EU-SAMPLE-3",
130 "matchedName": "Baltik Timber Export LLC",
131 "entryName": "Baltik Timber Export LLC",
132 "entryType": "company",
133 "score": 89,
134 "weakAlias": False,
135 "assessment": "unlikely",
136 "decidingFields": ["country"],
137 "reason": "listed for BY, RU, the counterparty is in EE",
138 "adjudicatedBy": "rules",
139 "programmes": ["BLR"],
140 "countries": [
141 "BY",
142 "RU",
143 ],
144 "listedOn": "2023-02-25",
145 "sourceUrl": "https://eur-lex.europa.eu/",
146 "subject": "counterparty",
147 "foundVia": "name",
148 }],
149 "listsChecked": {
150 "OFAC_SDN": "2026-10-21",
151 "OFAC_CONS": "2026-10-21",
152 "US_CSL": "2026-10-21",
153 "EU": "2026-10-15",
154 "UK": "2026-10-16",
155 },
156 "listsUnavailable": ["UN"],
157 },
158 },
159 ],
160}
161
162
163run = client.actor("rich_minds/counterparty-check-ai").call(run_input=run_input)
164
165
166print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
167for item in client.dataset(run.default_dataset_id).iterate_items():
168 print(item)
169
170