1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "countFile": { "rows": [
10 {
11 "warehouse": "DEMO-WH",
12 "location": "A-01",
13 "sku": "SKU-001",
14 "qty": "8",
15 "unit": "EA",
16 "count_id": "CNT-001",
17 "counted_at": "2026-11-11T10:00:00Z",
18 },
19 {
20 "warehouse": "DEMO-WH",
21 "location": "A-01",
22 "sku": "SKU-002",
23 "qty": "12",
24 "unit": "EA",
25 "count_id": "CNT-002",
26 "counted_at": "2026-11-11T10:00:00Z",
27 },
28 {
29 "warehouse": "DEMO-WH",
30 "location": "A-01",
31 "sku": "SKU-003",
32 "qty": "4",
33 "unit": "EA",
34 "count_id": "CNT-003",
35 "counted_at": "2026-11-11T10:00:00Z",
36 },
37 ] },
38 "inventorySnapshotFile": { "rows": [
39 {
40 "warehouse": "DEMO-WH",
41 "location": "A-01",
42 "sku": "SKU-001",
43 "qty": "10",
44 "unit": "EA",
45 },
46 {
47 "warehouse": "DEMO-WH",
48 "location": "A-01",
49 "sku": "SKU-002",
50 "qty": "10",
51 "unit": "EA",
52 },
53 {
54 "warehouse": "DEMO-WH",
55 "location": "A-01",
56 "sku": "SKU-003",
57 "qty": "5",
58 "unit": "EA",
59 },
60 {
61 "warehouse": "DEMO-WH",
62 "location": "A-01",
63 "sku": "SKU-004",
64 "qty": "7",
65 "unit": "EA",
66 },
67 ] },
68 "unitCostsFile": { "rows": [
69 {
70 "sku": "SKU-001",
71 "unit": "EA",
72 "unit_cost": "2.50",
73 "currency": "USD",
74 },
75 {
76 "sku": "SKU-002",
77 "unit": "EA",
78 "unit_cost": "3.00",
79 "currency": "EUR",
80 },
81 ] },
82 "snapshotTime": "2026-11-11T10:00:00Z",
83}
84
85
86run = client.actor("afkdigital/newapi88-warehouse-cycle-count-variance").call(run_input=run_input)
87
88
89print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
90for item in client.dataset(run.default_dataset_id).iterate_items():
91 print(item)
92
93