Discover/hk.trip.com API
live

hk.trip.com APIhk.trip.com

Search flights and hotels on hk.trip.com, fetch guest reviews, and get trending destinations via 4 structured API endpoints returning live pricing and ratings.

Endpoints
4
Updated
14d ago
Try it
Origin airport or city code (e.g., HKG, NYC, PEK)
Trip type: 1 for one-way, 2 for round-trip
Departure date in YYYY-MM-DD format
Destination airport or city code (e.g., NRT, TYO, HKG)
Return date in YYYY-MM-DD format, used when trip_type is 2
api.parse.bot/scraper/9bcbfcea-6ec6-48ea-91e3-b149077443a0/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X POST 'https://api.parse.bot/scraper/9bcbfcea-6ec6-48ea-91e3-b149077443a0/search_flights' \
  -H 'X-API-Key: $PARSE_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "origin": "HKG",
  "trip_type": "2",
  "depart_date": "2026-05-15",
  "destination": "TYO",
  "return_date": "2026-05-22"
}'
All endpoints · 4 totalclick to expand

Search for flights between two cities. Returns flight itineraries with pricing, segments, and airline information.

Input
ParamTypeDescription
originrequiredstringOrigin airport or city code (e.g., HKG, NYC, PEK)
trip_typeintegerTrip type: 1 for one-way, 2 for round-trip
depart_daterequiredstringDeparture date in YYYY-MM-DD format
destinationrequiredstringDestination airport or city code (e.g., NRT, TYO, HKG)
return_datestringReturn date in YYYY-MM-DD format, used when trip_type is 2
Response
{
  "type": "object",
  "fields": {
    "currency": "string, currency code (e.g., HKD)",
    "lowestPrice": "number, lowest total price found",
    "recordCount": "integer, total number of flights found",
    "flightItineraryList": "array of flight itinerary objects with airline, price, segments, and flags"
  },
  "sample": {
    "data": {
      "currency": "HKD",
      "lowestPrice": 1671,
      "recordCount": 2,
      "flightItineraryList": [
        {
          "flags": [
            "SAME_AIRLINE_COMBINE"
          ],
          "price": 1671,
          "airline": "TW",
          "segments": [
            {
              "duration": 230,
              "flightNo": "TW644",
              "airlineCode": "TW",
              "arrivePoint": {
                "cityCode": "SEL",
                "cityName": "首爾",
                "terminal": "T1",
                "airportCode": "ICN"
              },
              "departPoint": {
                "cityCode": "HKG",
                "cityName": "香港",
                "terminal": "T1",
                "airportCode": "HKG"
              },
              "arriveDateTime": "2026-05-15 18:05:00",
              "departDateTime": "2026-05-15 13:15:00"
            }
          ]
        }
      ]
    },
    "status": "success"
  }
}

About the hk.trip.com API

The hk.trip.com API exposes 4 endpoints covering flight search, hotel search, hotel reviews, and trending destinations from Hong Kong's Trip.com travel marketplace. The search_flights endpoint returns full itinerary lists with per-flight pricing, airline data, and segment details, while search_hotels delivers hotel listings with ratings, room info, and location data — all in structured JSON ready to query programmatically.

Flight and Hotel Search

The search_flights endpoint accepts an origin and destination (IATA airport or city codes), a depart_date, and an optional trip_type (1 for one-way, 2 for round-trip). Responses include a flightItineraryList array with per-itinerary airline identifiers, segment breakdowns, pricing, and flags — plus a top-level lowestPrice and recordCount so you can surface the cheapest option without iterating the full list. For round-trip searches, pass a return_date alongside trip_type: 2.

The search_hotels endpoint takes a city_id, checkin, and checkout date pair, and an optional adults count. Each hotel object in the returned hotelList contains four sub-objects: hotelBasicInfo (name, star rating, thumbnail), commentInfo (aggregate score), positionInfo (address and coordinates), and roomInfo (rate and room-type snapshot). City IDs follow Trip.com's internal scheme — use get_hot_destinations to resolve readable city names to their numeric IDs before querying.

Reviews and Destination Discovery

get_hotel_reviews returns paginated guest reviews for a specific hotel identified by hotel_id. Each entry in commentList carries a content string, numeric rating, createDate, userInfo, and an imageList of attached photos. The totalCount field tells you how many pages to expect when paginating with the page parameter.

get_hot_destinations requires no inputs and returns destination groups, each containing a hotDestination list of city names and their corresponding IDs. This endpoint is the practical starting point when building city-aware hotel search flows — map names to IDs here, then pass them to search_hotels.

Common use cases
  • Build a flight price tracker comparing round-trip fares between HKG and multiple destinations using lowestPrice from search_flights.
  • Aggregate hotel ratings and review counts across a city by combining commentInfo from search_hotels with paginated commentList from get_hotel_reviews.
  • Populate a destination picker UI with city names and IDs from get_hot_destinations to drive hotel search queries.
  • Analyze guest review sentiment by ingesting content and rating fields from get_hotel_reviews across multiple properties.
  • Display cheapest available hotel room rates for a city break by querying roomInfo in search_hotels for a given checkin/checkout window.
  • Filter one-way versus round-trip flight availability using the trip_type parameter in search_flights for the same city pair.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Trip.com offer an official developer API?+
Trip.com operates a partner/affiliate API program for high-volume travel distribution partners, documented at https://pages.trip.com/intl/en/partner. Access is application-gated and not publicly self-serve. The Parse API provides immediate programmatic access to the same flight and hotel data without a partnership application.
What does `search_flights` return beyond price — can I get baggage or fare-class details?+
Each itinerary in flightItineraryList includes airline identifiers, flight segments, total pricing, and per-itinerary flags. Baggage allowance details and fare-class breakdowns are not currently exposed in the response shape. You can fork this API on Parse and revise it to add an endpoint targeting those details.
Does the API cover train or bus searches available on hk.trip.com?+
Not currently. The four endpoints cover flights, hotels, hotel reviews, and hot destinations. Train and bus route search is not included. You can fork this API on Parse and revise it to add the missing transport endpoints.
How does pagination work for hotel reviews?+
Pass an integer page parameter to get_hotel_reviews alongside the required hotel_id. The response includes a totalCount field indicating the total number of reviews, which you can use to calculate how many pages exist before iterating.
How do I find the correct `city_id` for a hotel search?+
Call get_hot_destinations with no parameters. It returns grouped destination lists, each entry containing a city name and its numeric ID. Pass that ID as city_id to search_hotels. The endpoint documents example IDs — 228 for Tokyo, 58 for Hong Kong, 30 for Shenzhen — as reference points.
Page content last updated . Spec covers 4 endpoints from hk.trip.com.
Related APIs in TravelSee all →
culturetrip.com API
Discover travel inspiration and plan your next adventure by browsing curated travel articles, destination guides, and bookable trips organized by region and city. Search for specific destinations, compare trip dates and prices, and explore popular cities to find the perfect getaway.
sevenrooms.com API
Search for available restaurant tables across any SevenRooms venue, view venue details and open dates, and complete reservations all in one place. Whether you're planning ahead or booking last-minute, you can check real-time availability and secure your table at thousands of restaurants on the SevenRooms platform.
delta.com API
Look up Delta Airlines flight schedules, check real-time flight status, and retrieve detailed trip information to plan your travel. Find your nearest airport and access the data you need to monitor flights and make booking decisions.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
comedymothership.com API
Browse upcoming Comedy Mothership shows across different rooms, check real-time ticket availability, and get detailed information about Kill Tony events and seating options. Find venue details, FAQs, and track specific performances to plan your comedy night.
burningman.org API
Access comprehensive Burning Man information including Black Rock City event schedules, ticketing details, themed activities, playa events, volunteering opportunities, and mutant vehicle listings. Search global Burning Man events, stay updated with news and stories, and find preparation resources all in one place.
breckenridge.com API
Check real-time snow conditions, weather forecasts, lift operations, and trail status at Breckenridge Ski Resort to plan your day on the mountain. View live mountain cameras and get up-to-the-minute updates on slopes, lifts, and weather before you head out.
united.com API
Search United Airlines flights, check real-time flight status, and view detailed seat maps to plan your perfect trip. Compare fare options and use airport autocomplete to quickly find your departure and arrival cities.