1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "products": [
9 {
10 "id": 101,
11 "handle": "demo-tumbler",
12 "title": "Insulated Steel Travel Tumbler",
13 "body_html": "<p>A durable insulated steel tumbler for everyday use. Includes a non-slip lid and easy cleaning instructions for long-term product care.</p>",
14 "images": [{
15 "src": "https://example.org/a.jpg",
16 "alt": "",
17 }],
18 "variants": [{
19 "id": 1001,
20 "sku": "TUMBLER-01",
21 "price": "26.00",
22 "compare_at_price": "35.00",
23 "option1": "Silver",
24 }],
25 },
26 {
27 "id": 102,
28 "handle": "demo-mug",
29 "title": "Everyday Ceramic Mug",
30 "body_html": "<p>A reusable ceramic mug with a comfortable handle, durable glaze and microwave safe construction for daily kitchen use.</p>",
31 "images": [],
32 "variants": [{
33 "id": 1002,
34 "sku": "TUMBLER-01",
35 "price": "13.00",
36 "option1": "Default Title",
37 }],
38 },
39 ] }
40
41
42run = client.actor("practical_ai_lab_jp/pal-shopify-store-product-catalog-qa").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49