1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "rows": [
9 {
10 "id": "001",
11 "title": "Blue ceramic mug",
12 "description": "A reusable ceramic mug, 300 ml.",
13 "link": "https://example.com/mug",
14 "image_link": "https://example.com/mug.jpg",
15 "availability": "in_stock",
16 "price": "99.95 EUR",
17 "gtin": "4006381333931",
18 "brand": "Example",
19 "condition": "new",
20 },
21 {
22 "id": "001",
23 "title": "",
24 "description": "A reusable ceramic mug, 300 ml.",
25 "link": "https://example.com/mug",
26 "image_link": "/bad.jpg",
27 "availability": "in_stock",
28 "price": "99.95 EUR",
29 "gtin": "4006381333932",
30 "brand": "Example",
31 "condition": "new",
32 "sale_price": "120 EUR",
33 },
34 {
35 "id": "custom",
36 "title": "Blue ceramic mug",
37 "description": "A reusable ceramic mug, 300 ml.",
38 "link": "https://example.com/mug",
39 "image_link": "https://example.com/mug.jpg",
40 "availability": "in_stock",
41 "price": "99.95 EUR",
42 "gtin": "",
43 "brand": "",
44 "condition": "new",
45 "identifier_exists": False,
46 },
47 ] }
48
49
50run = client.actor("danielmichalek/merchant-feed-quality-auditor").call(run_input=run_input)
51
52
53print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57