1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "id": "camera",
12 "name": "Used camera",
13 "price": 75,
14 "category": "camera",
15 "cost": 30,
16 "shippingCharged": 8,
17 "shippingCost": 7,
18 },
19 {
20 "id": "sneakers",
21 "name": "Adult sneakers",
22 "price": 180,
23 "category": "sneakers",
24 "cost": 85,
25 "shippingCost": 8,
26 },
27 {
28 "id": "cards",
29 "name": "Trading card",
30 "price": 35,
31 "category": "cards",
32 "cost": 12,
33 "shippingCharged": 4,
34 "shippingCost": 3.5,
35 },
36 ],
37 "sellerType": {
38 "storeLevel": "none",
39 "topRatedPlus": False,
40 "promotedListingRate": 0,
41 },
42}
43
44
45run = client.actor("moggedhq/ebay-fee-calculator").call(run_input=run_input)
46
47
48print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
49for item in client.dataset(run.default_dataset_id).iterate_items():
50 print(item)
51
52