1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchKeywords": [
10 "source-backed signal",
11 "buyer fit",
12 ],
13 "taskIntent": "buyer-ready-product-run",
14 "sourceMode": "startUrls",
15 "outputMode": "buyer-ready-records",
16 "startUrls": [{ "url": "https://www.wikidata.org/w/api.php?action=wbsearchentities&search=rosneft&language=en&format=json" }],
17 "requestTimeoutSecs": 30,
18 "maxRequestRetries": 2,
19 "sinceLastRun": False,
20 "deltaMode": True,
21}
22
23
24run = client.actor("zentrafoundry/opensanctions-counterparty-risk-screener-v2").call(run_input=run_input)
25
26
27print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31