Trip 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.
What is the Trip 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.
curl -X GET 'https://api.parse.bot/scraper/2e3b4b01-36ff-45b1-8d79-7f4684575e71/search_flights?adults=1&infants=0&children=0&arrive_city=LAX&cabin_class=economy&depart_city=NYC&depart_date=2026-09-21' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for one-way flights between two cities. Returns flight details including segments, airlines, departure/arrival times, duration, stops, pricing, cabin class, and a booking URL for each flight. All matching flights are returned in one response sorted by directness by default.
| Param | Type | Description |
|---|---|---|
| adults | integer | Number of adult passengers (1-9) |
| infants | integer | Number of infant passengers (0-9) |
| children | integer | Number of child passengers (0-9) |
| arrive_cityrequired | string | Arrival city IATA code (e.g., LAX, ORD, CDG) |
| cabin_class | string | Cabin class for the flight search. |
| depart_cityrequired | string | Departure city IATA code (e.g., NYC, SFO, LHR) |
| depart_date | string | Departure date in YYYY-MM-DD format. Omitting defaults to 30 days from today. |
{
"type": "object",
"fields": {
"flights": "array of flight objects each containing segments, total_duration_minutes, stops, num_stops, cabin_class, price, is_direct, booking_url",
"search_summary": "object containing departure_city, departure_code, arrival_city, arrival_code, depart_date, total_results, lowest_price, currency"
}
}About the Trip API
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.
The Trip API is a managed, monitored endpoint for us.trip.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when us.trip.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official us.trip.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a flexible-date flight search tool that surfaces the cheapest travel days using
get_low_pricesdate-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_directflag returned per flight object. - Identify the lowest available fare on a given departure date using
search_summary.lowest_pricewithout parsing every result. - Support multi-passenger booking flows by passing
adults,children, andinfantscounts to price itineraries accurately. - Aggregate price calendars across multiple routes to recommend the cheapest destination for a given travel window.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 200 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
| Team | $300/mo | 20,000 | 300 req/min |
| Company | $1,000/mo | 100,000 | 500 req/min |
Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Trip.com have an official developer API?+
What does the `search_flights` endpoint return for connecting flights?+
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?+
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?+
How current is the pricing data returned by these endpoints?+
get_low_prices periodically on a schedule will give the most up-to-date picture of price movements.