1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "hotelUrls": [{
10 "url": "https://th.trip.com/hotels/bangkok-hotel-detail-1257190/jw-marriott-hotel-bangkok",
11 "name": "JW Marriott Bangkok",
12 }],
13 "checkinDate": "2026-10-01",
14 "checkoutDate": "2026-10-02",
15 "rooms": 1,
16 "adults": 2,
17}
18
19
20run = client.actor("datawebot/trip-hotel-scraper").call(run_input=run_input)
21
22
23print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
24for item in client.dataset(run["defaultDatasetId"]).iterate_items():
25 print(item)
26
27