1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "offers": [
9 {
10 "id": "EXAMPLE-HOTEL",
11 "title": "Example beach hotel, 2 nights",
12 "listingType": "lodging",
13 "displayedPrice": 189,
14 "priceUnit": "per night",
15 "nights": 2,
16 "fees": [
17 {
18 "name": "Resort fee",
19 "amount": 35,
20 "per": "night",
21 "mandatory": True,
22 },
23 {
24 "name": "Taxes",
25 "amount": 51.03,
26 "government": True,
27 },
28 ],
29 "description": "Resort fee collected at the property.",
30 },
31 {
32 "id": "EXAMPLE-TICKET",
33 "title": "Example concert, 2 tickets",
34 "listingType": "ticket",
35 "displayedPrice": 79,
36 "priceUnit": "per ticket",
37 "quantity": 2,
38 "fees": [
39 {
40 "name": "Service fee",
41 "amount": 18.5,
42 "per": "ticket",
43 "mandatory": True,
44 },
45 {
46 "name": "Facility charge",
47 "amount": 4,
48 "per": "ticket",
49 "mandatory": True,
50 },
51 {
52 "name": "Taxes and fees",
53 "amount": 9.6,
54 },
55 ],
56 },
57 {
58 "id": "EXAMPLE-CABIN",
59 "title": "Example cabin, 3 nights (all-in price)",
60 "listingType": "lodging",
61 "displayedPrice": 642,
62 "totalPrice": 642,
63 "nights": 3,
64 "fees": [{
65 "name": "Cleaning fee",
66 "amount": 90,
67 "mandatory": True,
68 "includedInPrice": True,
69 }],
70 "description": "Total price includes all fees, before taxes.",
71 },
72 ] }
73
74
75run = client.actor("ultimatemc/hidden-fee-price-checker").call(run_input=run_input)
76
77
78print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
79for item in client.dataset(run.default_dataset_id).iterate_items():
80 print(item)
81
82