Discover/us.trip.com API
live

us.trip.com APIus.trip.com

Search one-way flights and retrieve a 90-day low-price calendar from Trip.com. Returns segments, stops, pricing, duration, and cabin class via 2 endpoints.

Endpoints
2
Updated
11d ago
Try it
Number of adult passengers
Number of infant passengers
Number of child passengers
Arrival city IATA code (e.g., LAX, ORD, CDG)
Cabin class: economy, premium_economy, business, first
Departure city IATA code (e.g., NYC, SFO, LHR)
Departure date in YYYY-MM-DD format. Omitting defaults to 30 days from today.
api.parse.bot/scraper/2e3b4b01-36ff-45b1-8d79-7f4684575e71/<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 GET 'https://api.parse.bot/scraper/2e3b4b01-36ff-45b1-8d79-7f4684575e71/search_flights?arrive_city=ORD&depart_city=SFO&depart_date=2026-05-15' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 2 totalclick to expand

Search for one-way flights between two cities. Returns flight details including segments, airlines, departure/arrival times, duration, stops, pricing, and cabin class.

Input
ParamTypeDescription
adultsintegerNumber of adult passengers
infantsintegerNumber of infant passengers
childrenintegerNumber of child passengers
arrive_cityrequiredstringArrival city IATA code (e.g., LAX, ORD, CDG)
cabin_classstringCabin class: economy, premium_economy, business, first
depart_cityrequiredstringDeparture city IATA code (e.g., NYC, SFO, LHR)
depart_datestringDeparture date in YYYY-MM-DD format. Omitting defaults to 30 days from today.
Response
{
  "type": "object",
  "fields": {
    "flights": "array of flight objects each containing segments, total_duration_minutes, stops, num_stops, cabin_class, price, is_direct",
    "search_summary": "object containing departure_city, departure_code, arrival_city, arrival_code, depart_date, total_results, lowest_price, currency"
  },
  "sample": {
    "data": {
      "flights": [
        {
          "price": {
            "fare": 129.6,
            "currency": "USD",
            "total_price": 207,
            "product_name": "Economy",
            "average_price": 207,
            "taxes_and_fees": 76.6
          },
          "stops": "1 stop",
          "segments": [
            {
              "aircraft": "Airbus A321neo",
              "airline_code": "F9",
              "arrival_city": "Atlanta",
              "arrival_time": "2026-05-16 06:15:00",
              "aircraft_type": "32Q",
              "flight_number": "F91448",
              "departure_city": "San Francisco",
              "departure_time": "2026-05-15 22:15:00",
              "arrival_airport": "ATL",
              "arrival_terminal": "N",
              "duration_minutes": 300,
              "arrival_city_code": "ATL",
              "departure_airport": "SFO",
              "departure_terminal": "T1",
              "departure_city_code": "SFO"
            }
          ],
          "is_direct": false,
          "num_stops": 1,
          "cabin_class": "Economy class",
          "total_duration_minutes": 649
        }
      ],
      "search_summary": {
        "currency": "USD",
        "depart_date": "2026-05-15",
        "arrival_city": "Chicago",
        "arrival_code": "CHI",
        "lowest_price": 207,
        "total_results": 1,
        "departure_city": "San Francisco",
        "departure_code": "SFO"
      }
    },
    "status": "success"
  }
}

About the us.trip.com API

The Trip.com Flights API exposes 2 endpoints for querying flight availability and price trends from us.trip.com. The search_flights endpoint returns full itinerary details — segments, stop counts, total duration, cabin class, and per-flight pricing — for one-way routes between any two IATA-coded airports. The get_low_prices endpoint returns a date-indexed price calendar spanning roughly 90 days, making it straightforward to identify the cheapest travel windows on a given route.

Flight Search

The search_flights endpoint accepts a required departure city (depart_city) and arrival city (arrive_city) as IATA codes, along with optional parameters for depart_date (YYYY-MM-DD), cabin_class (economy, premium_economy, business, or first), and passenger counts (adults, children, infants). When depart_date is omitted, the search defaults to 30 days from today. Each result in the flights array includes a segments breakdown, total_duration_minutes, num_stops, is_direct flag, cabin_class, price, and the currency in use. The search_summary object provides the resolved city names, IATA codes, date, total result count, and the lowest_price across all returned options.

Low-Price Calendar

The get_low_prices endpoint returns a price-by-date array for a route, centered around a reference date and spanning approximately 90 days. Each entry in the prices array contains a date, a numeric price, a formatted price_display string, and the currency. Top-level fields include lowest_price (the cheapest date found in the window) and total_dates (how many dates have price data). If depart_date is omitted, the calendar defaults to starting 7 days from today. This endpoint is well-suited for flexible-date travel planning or fare-monitoring workflows.

Coverage and Data Shape

Both endpoints work with IATA city or airport codes — examples like NYC, LAX, CDG, and LHR are accepted. Pricing is returned in the currency applicable to the Trip.com US locale (typically USD). The search_flights response includes segment-level detail, which allows reconstructing layover information and per-leg carrier data. Results reflect one-way itineraries only; round-trip queries are not currently supported through these endpoints.

Common use cases
  • Build a flexible-date flight search tool that surfaces the cheapest travel days using get_low_prices date-price arrays.
  • Monitor fare trends on a specific route over a 90-day window and alert users when prices drop below a threshold.
  • Populate a flight comparison table with itinerary details — stops, duration, cabin class, and price — from search_flights.
  • Filter search results to direct-only flights using the is_direct flag returned per flight object.
  • Identify the lowest available fare on a given departure date using search_summary.lowest_price without parsing every result.
  • Support multi-passenger booking flows by passing adults, children, and infants counts to price itineraries accurately.
  • Aggregate price calendars across multiple routes to recommend the cheapest destination for a given travel window.
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 have an official developer API?+
Trip.com does not publish a public developer API for flight search or price data. Access to structured flight data from us.trip.com is available through this Parse API.
What does the `search_flights` endpoint return for connecting flights?+
Each flight object includes a segments array (covering individual legs), num_stops, total_duration_minutes, and an is_direct boolean. This lets you distinguish nonstop flights from connecting itineraries and reconstruct layover structure from the segment data.
Does the low-price calendar cover round-trip or multi-city routes?+
The get_low_prices endpoint covers one-way routes only, returning prices keyed by departure date for a single origin-destination pair. Round-trip and multi-city calendar data are not currently returned. You can fork this API on Parse and revise it to add a round-trip or multi-city pricing endpoint.
Is hotel or car rental data available through this API?+
Not currently. The API covers flight search results and a flight low-price calendar only. Trip.com also lists hotels, car rentals, and attraction tickets on its platform, but those are not exposed here. You can fork this API on Parse and revise it to add endpoints for hotel or other travel product data.
How current is the pricing data returned by these endpoints?+
Prices reflect availability at the time of the request. Airline fares change frequently, so results should be treated as point-in-time snapshots rather than guaranteed fares. For fare monitoring, calling get_low_prices periodically on a schedule will give the most up-to-date picture of price movements.
Page content last updated . Spec covers 2 endpoints from us.trip.com.
Related APIs in TravelSee all →
opentable.ca API
Search and discover restaurants on OpenTable, view detailed information like menus and reviews, and check real-time dining availability across metro areas. Find top-rated restaurants in your location and instantly see which tables are open for your preferred date and time.
fandango.com API
Search for movies and retrieve nearby theater listings with showtimes by ZIP code and date, plus showtimes for a specific movie at nearby theaters.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
turo.com API
Search for peer-to-peer car rentals across Turo by location and dates to browse available vehicles with pricing, specifications, and real-time availability. Get detailed information on specific cars to compare features and make rental decisions.
reservation.pc.gc.ca API
Access real-time campground availability and reservation data from the Parks Canada booking system. Search locations, retrieve available campsites and cabins, filter by equipment type, and review operating date schedules across the national park network. Includes detailed resource metadata and map-based availability overviews.
bahn.com API
Search German train schedules and stations, find connections between destinations, and compare ticket prices across Deutsche Bahn routes. Get real-time station information and transit association details to plan your train journey efficiently.
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.
thetrainline.com API
Search UK train stations and find the cheapest fares across date ranges, then generate direct booking links to complete your purchase on Trainline.com. Get real-time journey information to compare prices and book your tickets in seconds.
Trip.com Flights API – Search & Low Price Calendar · Parse