1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "products": [
10 {
11 "sku": "DEMO-001",
12 "name": "Synthetic sample cup",
13 "price": "19.90",
14 "photoRefs": ["demo-001-front.jpg"],
15 },
16 {
17 "sku": "",
18 "name": "Synthetic sample bowl",
19 "price": "12.00",
20 "photoRefs": ["bowl.jpg"],
21 },
22 {
23 "sku": "DEMO-003",
24 "name": "",
25 "price": "",
26 "photoRefs": ["missing.jpg"],
27 },
28 {
29 "sku": "DEMO-004",
30 "name": "Synthetic sample plate",
31 "price": "24.50",
32 },
33 {
34 "sku": "DEMO-004",
35 "name": "Synthetic duplicate plate",
36 "price": "24.50",
37 },
38 ],
39 "photos": [
40 {
41 "fileName": "demo-001-front.jpg",
42 "sku": "DEMO-001",
43 },
44 {
45 "fileName": "bowl.jpg",
46 "sku": "",
47 },
48 {
49 "fileName": "plate-a.jpg",
50 "sku": "DEMO-004",
51 },
52 {
53 "fileName": "plate-b.jpg",
54 "sku": "DEMO-004",
55 },
56 ],
57}
58
59
60run = client.actor("atesen-software/catalog-photo-readiness-qa").call(run_input=run_input)
61
62
63print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
64for item in client.dataset(run.default_dataset_id).iterate_items():
65 print(item)
66
67