APIs / Trip.com / Hotels Search

Trip.com: Hotels Search

Hotels Search from Trip.com as JSON. 1–18 credits per successful call.

GET /v1/trip-com/hotels-search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
city_idstringRequiredAny
check_instringRequiredAny
check_outstringRequiredAny
adultsintegerOptionalAny
children_ages[]list of integerOptionalAny
roomsintegerOptional1
pageintegerOptionalAny
pagesintegerOptionalAny
guest_score_minintegerOptionalAny
free_cancellationbooleanOptionalAny
breakfastbooleanOptionalAny
stars[]list of integerOptionalAny
min_priceintegerOptionalAny
max_priceintegerOptionalAny
sortstringOptionalpopularity, price_asc, price_desc, top_reviewed, stars, distance
localestringOptionalen, en-gb, de, fr, ja, ko, zh-hk
currencystringOptionalUSD, EUR, GBP, JPY, KRW

Example request

Trip.com
GET/v1/trip-com/hotels-search?city_id=192&check_in=2027-03-14&check_out=2027-03-16&adults=2&stars[]=4&stars[]=5&currency=USD
{
  "success": true,
  "data": {
    "city_id": "192",
    "check_in": "2027-03-14",
    "check_out": "2027-03-16",
    "adults": 2,
    "currency": "USD",
    "locale": "en",
    "sort": "popularity",
    "page": 1,
    "total": 2413,
    "count": 12,
    "hotels": [
      {
        "position": 1,
        "hotel_id": "718146",
        "name": "Hotel Régence Etoile",
        "name_en": "Hotel Régence Etoile",
        "category": "Hotel",
        "stars": 4,
        "guest_score": 9.2,
        "guest_score_label": "Great",
        "review_count": 564,
        "city": "Paris",
        "city_id": "192",
        "address": "Champs Elysées",
        "zone": "Champs Elysées",
        "location_hint": "Near Arc de Triomphe de l’Etoile | Charles de Gaulle - étoile Metro Station",
        "latitude": 48.876537,
        "longitude": 2.292983,
        "price_per_night": 221,
        "original_price_per_night": 367,
        "total_price": 524.39,
        "currency": "USD",
        "nights": 2,
        "room_name": "Classic Room",
        "bed": "1 queen bed",
        "free_cancellation": true,
        "is_ad": false,
        "images": [
          "https://ak-d.tripcdn.com/images/0582t12000jbiuxe0A6C0_R_600_600_R5_D.jpg_.webp",
          "https://ak-d.tripcdn.com/images/200v11000000rkn07BFC6_R_600_600_R5_D.jpg_.webp",
          "https://ak-d.tripcdn.com/images/1mc3s12000dtpdp508E3C_R_600_600_R5_D.jpg_.webp"
        ],
        "url": "https://www.trip.com/hotels/detail/?hotelId=718146"
      },
      {
        "position": 2,
        "hotel_id": "730417",
        "name": "Hotel des Comédies",
        "name_en": "Hotel des Comédies",
        "category": "Hotel",
        "stars": 4,
        "guest_score": 9.2,
        "guest_score_label": "Great",
        "review_count": 130,
        "city": "Paris",
        "city_id": "192",
        "zone": "Near Palais Garnier|Le Marais",
        "location_hint": "Near Palais Garnier | Le Marais",
        "latitude": 48.871065,
        "longitude": 2.34991,
        "price_per_night": 98,
        "original_price_per_night": 156,
        "total_price": 253.94,
        "currency": "USD",
        "nights": 2,
        "room_name": "Standard Double Room",
        "bed": "1 queen bed or 2 single beds",
        "free_cancellation": false,
        "is_ad": false,
        "images": [
          "https://ak-d.tripcdn.com/images/1mc1g12000u940tbi281D_R_600_600_R5_D.jpg_.webp",
          "https://ak-d.tripcdn.com/images/1mc3l12000u94061pE573_R_600_600_R5_D.jpg_.webp",
          "https://ak-d.tripcdn.com/images/1mc3i12000u93zg02CF6E_R_600_600_R5_D.jpg_.webp"
        ],
        "url": "https://www.trip.com/hotels/detail/?hotelId=730417"
      },
      {
        "position": 3,
        "hotel_id": "717730",
        "name": "Norman Paris Hôtel & Spa",
        "name_en": "Norman Paris Hôtel & Spa",
        "category": "Hotel",
        "stars": 5,
        "guest_score": 9.3,
        "guest_score_label": "Great",
        "review_count": 55,
        "city": "Paris",
        "city_id": "192",
        "address": "Champs Elysées",
        "zone": "Champs Elysées",
        "location_hint": "Champs Elysées | Near Arc de Triomphe de l’Etoile",
        "latitude": 48.873745,
        "longitude": 2.300357,
        "price_per_night": 373,
        "original_price_per_night": 410,
        "total_price": 798.04,
        "currency": "USD",
        "nights": 2,
        "room_name": "Cozy Room",
        "bed": "1 queen bed",
        "free_cancellation": false,
        "is_ad": false,
        "images": [
          "https://ak-d.tripcdn.com/images/1mc5d12000dpe7bqtEEDB_R_600_600_R5_D.jpg_.webp",
          "https://ak-d.tripcdn.com/images/1mc5612000cfah2ml7B51_R_600_600_R5_D.jpg_.webp",
          "https://ak-d.tripcdn.com/images/1mc6912000c4abom9EC13_R_600_600_R5_D.jpg_.webp"
        ],
        "url": "https://www.trip.com/hotels/detail/?hotelId=717730"
      }
    ]
  },
  "meta": {
    "endpoint_family": "hotel_search",
    "request_id": "req_c053a719c0d3413799df9eff810fba17",
    "credits_charged": 1,
    "credits_remaining": 1793
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1–18 credits per successful call (1 credit for the first page in the default order; 3 per page from page 2, for each page read with pages, or with guest_score_min, free_cancellation, breakfast or another sort. At most 18); failed calls are free.

Response fields

data has these 7 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
city_idstring
check_instring
check_outstring
adultsinteger
currencystring
localestring
hotelsobject[]