APIs / Trip.com / Hotels Rooms
Trip.com: Hotels Rooms
Hotels Rooms from Trip.com as JSON. 10 credits per successful call.
GET /v1/trip-com/hotels-rooms
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
hotel_id | string | Required | Any |
check_in | string | Required | Any |
check_out | string | Required | Any |
adults | integer | Optional | Any |
children_ages | string | Optional | Any |
currency | string | Optional | USD, EUR, GBP, JPY, KRW |
locale | string | Optional | en, en-gb, de, fr, ja, ko, zh-hk |
Example request
curl "https://api.perceptlayer.com/v1/trip-com/hotels-rooms?hotel_id=2081163&check_in=2027-01-07&check_out=2027-01-09&adults=2¤cy=EUR" \
-H "X-API-Key: $API_KEY"Run this endpoint in the playground with your own parameters. 10 credits per successful call; failed calls are free.