1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "listings": [
10 {
11 "sku": "BTL-750",
12 "title": "Stainless Steel Water Bottle 750ml Double Wall Vacuum Insulated",
13 "description": "Keeps drinks cold for 24 hours and hot for 12 hours. Leak-proof, BPA-free lid. Fits most car cup holders.",
14 "variations": [{
15 "name": "Color",
16 "options": [
17 "Black",
18 "Silver",
19 "Pastel Pink",
20 ],
21 }],
22 "price": 29.9,
23 "currency": "MYR",
24 },
25 {
26 "sku": "SRM-30",
27 "title": "Hydrating Facial Serum with Hyaluronic Acid 30ml",
28 "description": "<p>Lightweight serum with <strong>2% hyaluronic acid</strong> and vitamin B5.</p><ul><li>For all skin types</li><li>Use 2-3 drops morning and night</li></ul>",
29 "protectedTerms": ["Hyaluronic Acid"],
30 "price": "RM 49.90",
31 },
32 ],
33 "sellerProfile": {
34 "sellerName": "Your Shop Sdn Bhd",
35 "sellerRegNo": "202401012345 (1234567-X)",
36 "sellerAddress": "12 Jalan Contoh, 50450 Kuala Lumpur",
37 "sellerEmail": "support@yourshop.my",
38 "sellerPhone": "+60 3-1234 5678",
39 "paymentMethods": "Online banking (FPX), credit/debit card, e-wallet",
40 "termsAndConditions": "7-day return for unused items; refund within 14 days.",
41 "shippingFee": 0,
42 "estimatedDelivery": "2-4 working days in Peninsular Malaysia",
43 },
44}
45
46
47run = client.actor("messnomore/sea-listing-localizer").call(run_input=run_input)
48
49
50print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
51for item in client.dataset(run.default_dataset_id).iterate_items():
52 print(item)
53
54