OTA channel
Trip.com hotel rates API
Trip.com rates for a property: pre-tax room price natively, all-in after tax on the comparable field.
- Public rate
- ✓
- Member price
- –
- Award points
- –
- Native calendar
- –
- Comp set batch
- –
- Credits per shop
- 1
- Comp set, per hotel
- 0.25
- Calendar, per night
- shop
- ·`price_per_night` is Trip.com's pre-tax room price (`tax_included: false`); `price_per_night_after_tax` is the all-in figure.
- ·No member price is reported.
curl -s https://api.directrate.dev/v1/shop \
-H "x-api-key: $DIRECTRATE_API_KEY" \
-H "content-type: application/json" \
-d '{"chain":"ctrip","hotel_code":"<hotel_code>","checkin":"2026-11-10","los":1}'Find a Trip.com code first: GET /v1/hotels?chain=ctrip&q=<city> (1 credit).
# an OTA's hotel code is its own hotel id: the number in its URL, or
# the channel id a /parity call on the chain's hotel returns
curl -s https://api.directrate.dev/v1/parity \
-H "x-api-key: $DIRECTRATE_API_KEY" -H "content-type: application/json" \
-d '{"chain":"choice","hotel_code":"IL263","checkin":"2026-11-10","channels":["ctrip"]}'{
"chain": "ctrip",
"hotel": {
"code": "<hotel_code>",
"name": "…",
"currency": "USD"
},
"checkin": "2026-11-10",
"los": 1,
"status": "available",
"rates": [
{
"room_name": "…",
"rate_name": "…",
"rate_type": "bar",
"member_only": false,
"price_per_night": 0,
"price_per_night_after_tax": 0,
"tax_included": true,
"currency": "USD"
}
],
"lowest": {
"bar": 0,
"member": 0,
"bar_after_tax": 0,
"member_after_tax": 0
},
"shopped_at": "…",
"source": "live",
"cache_age_sec": 0
}ShopResponse — the full schema is in the API reference.
No snapshot response is shown for Trip.com on this page; the shape above is the contract every chain answers in. Run it live with a free key.
FAQ
Trip.com questions
Where do I get a Trip.com hotel id?
It is Trip.com's own hotel id — the number in the listing URL — or the channel id that POST /parity on the chain's hotel returns after resolving the id map from Google Hotels. GET /hotels/{chain}/{code}/ids returns the mapping on its own.
Does the Trip.com price include tax?
`price_per_night` is Trip.com's pre-tax room price (`tax_included: false`); `price_per_night_after_tax` is the all-in figure.
Can I get points or a calendar from Trip.com?
No — an OTA carries no award points and no native calendar, and a hotel-code search is not offered on it. Shop it directly, use it as a /parity channel, or /calendar it a night at a time (one shop per night).
All sources: coverage matrix · chains & coverage docs · weights.