Skip to main content
Thirdwatchthirdwatch
Travel

Trip.com hotel scraper for prices by city and stay date

Thirdwatch exports hotel listings from Trip.com (Ctrip, 携程) for the dates and occupancy you choose. The price and currency come from the listing when available. Save the results as CSV or JSON from Apify.

Export a Singapore hotel search

Run this Python snippet to print JSON for a two-night stay starting two weeks from today. Paste its output into the Actor’s Input tab. Keep the returned stay dates and currency when comparing offers.

from datetime import date, timedelta
import json

check_in = date.today() + timedelta(days=14)
print(json.dumps({
    "city": "Singapore",
    "checkIn": check_in.isoformat(),
    "checkOut": (check_in + timedelta(days=2)).isoformat(),
    "guests": 2, "rooms": 1, "maxResults": 5
}, indent=2))

On November 6, 2026, the Singapore search returned Hotel Boss at a listed US$239 for November 20–22, with two adults and one room. This is a dated listing observation. Hotel Boss on Trip.com

按入住日期采集携程上海酒店价格

运行下面的 Python 示例,即可生成两位成人入住一间客房的查询参数。将生成的 JSON 粘贴到 Apify 的 Input 页面,运行后可将酒店列表导出为 CSV。比较房价时,请核对入住日期、离店日期和币种。列表未显示价格时,请保留空值。

from datetime import date, timedelta
import json

check_in = date.today() + timedelta(days=14)
print(json.dumps({
    "city": "Shanghai",
    "checkIn": check_in.isoformat(),
    "checkOut": (check_in + timedelta(days=2)).isoformat(),
    "guests": 2, "rooms": 1, "maxResults": 5
}, indent=2))

2026 年 11 月 6 日查询上海,两位成人、一间客房、11 月 20 日入住、22 日离店,返回的酒店名称为 yihotel (Shanghai Lujiazui Riverside Center Expo Park Branch),页面标价为 114 美元。实际预订价格以携程当时显示的房型和条款为准。 在 Trip.com 查看该酒店

View the Actor’s input fields on Apify

Fields you get

These fields can appear in the dataset. Availability depends on the source. See the Actor’s Apify listing for the full schema.

hotel_namehotel_idurlpricecurrencyratingreviews_countcheckin_datecheckout_date

Who buys this

Hotel revenue teams

Compare listings for the same dates, guests and room count. Record the collection time for each observation.

Travel data teams

Keep the hotel ID and source link when matching observations across runs. Ratings and review counts describe the listing at collection time.

Pay only for what you scrape

Per-result prices by Apify plan. The Actor’s Store pricing lists any run-start charges and additional billable events.

FREE
$0.05
/ result
BRONZE
$0.04
/ result
SILVER
$0.035
/ result
GOLD
$0.03
/ result

Common questions

Does a missing price mean a hotel is sold out?+

A missing value means the listing did not supply a usable price. Check the hotel page for room availability, taxes and booking terms.

How do I collect price history?+

Repeat the same search and save each dated dataset. This Actor collects listing snapshots. Keep the stay dates, currency, room count and occupancy together so observations are comparable.

What happens if my input dates are in the past?+

The Actor moves a past check-in to a future date. Use future stay dates for a deliberate comparison and verify checkin_date and checkout_date in the output.

Pairs well with

Run it in 30 seconds.

Sign in to Apify, paste a query, hit run. Free credits cover your first ~100 results. Pay only for what you keep.

Open on Apify
Last verified Nov 2026