1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "schemaVersion": "1.1",
10 "thresholds": {
11 "acceptThreshold": 80,
12 "reviewThreshold": 50,
13 "thresholdOrder": "accept_gt_review",
14 },
15 "rows": [
16 {
17 "signalId": "signal-001",
18 "normalizedSignal": 96,
19 },
20 {
21 "signalId": "signal-002",
22 "normalizedSignal": 82,
23 },
24 {
25 "signalId": "signal-003",
26 "normalizedSignal": 61,
27 },
28 {
29 "signalId": "signal-004",
30 "normalizedSignal": 39,
31 },
32 ],
33}
34
35
36run = client.actor("zinin/us-brand-signal-confidence-gate").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43