↑ ↓ to move ↵ to open
Trip.com Travel API reference

Trip.com Flight Search

tripcom.flight.search

Search one-way Trip.com flights for a route and date, with passengers and cabin class, in the currency you choose.

At a glance

Endpoint ID
tripcom.flight.search
Price
2–5 credits per call; failed calls are free
Runs for up to
30 seconds
Request
POST /execute
Run an endpoint
MCP tool when pinned
tripcom__flight__search
Pin tools
OpenAPI
openapi.json
Download

Request

Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.

curl --request POST \  --url https://data.upscrape.com/execute \  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \  --header "Content-Type: application/json" \  --header "Prefer: wait=30" \  --data '{  "capability": "tripcom.flight.search",  "input": {    "adults": 1,    "cabin_class": "economy",    "currency": "USD",    "departure_date": "2026-11-10",    "destination": "PAR",    "locale": "en-US",    "origin": "LON"  }}'

Input

FieldTypeRequiredWhat it doesExample
departure_date string yes The flight date, YYYY-MM-DD. 2026-11-10
destination string yes Where you fly to: a city or airport code, such as PAR or CDG. PAR
origin string yes Where you fly from: a city or airport code, such as LON or LHR. LON
adults integer no Number of adults. The default is 1. 1
cabin_class string no Economy, premium economy, business or first. economy
children integer no Number of children.
currency string no Currency for prices, such as USD. USD
infants integer no Number of infants.
locale string no Language, such as en-US. en-US
max_results integer no How many offers to return; 0 returns all.

Response

A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.

This is results[0].data from a real run:

results[0].data
{  "children": 0,  "collected_at": "2026-10-16T12:26:47Z",  "collection_complete": true,  "infants": 0,  "product_id": "SHA_SHA-ALI_PIDReduce-5Je3UPxg20261016122647^rZ6Cx2OwtOTlPelR",  "returned": 43,  "source_result_count": 43,  "source_url": "https://us.trip.com/restapi/soa2/27015/FlightListSearchSSE",  "offers": [    {      "arrival_time": "2026-11-10 19:00:00",      "cabin": "Economy class",      "currency": "USD",      "departure_time": "2026-11-10 16:45:00",      "destination": "PAR",      "direct": true,      "duration_minutes": 75,      "itinerary_id": "c2ee10ce18d1d8ef92b59b338ce22737",      "origin": "LON",      "price_fare": 25.2,      "price_per_adult": 34.5,      "price_policy_id": "SHA_SHA-ALI_PIDReduce-5Je3UPxg20261016122647^List-x8sm8x",      "price_short_policy_id": "SHA_SHA-ALI_PIDReduce-5Je3UPxg20261016122647^List-x8sm8x^rZ6Cx2OwtOTlPelR^111000G0V1LONPAR0010101000RXLGWCDG000VO6U28407",      "price_tax": 9.3,      "price_total": 35,      "seats_available": 4,      "stops": 0,      "airline_codes": [        "U2"      ],      "destination_airports": [        "CDG"      ],      "flight_numbers": [        "U28407"      ],      "origin_airports": [        "LGW"      ]    },    {      "arrival_time": "2026-11-10 20:05:00",      "cabin": "Economy class",      "currency": "USD",      "departure_time": "2026-11-10 17:45:00",      "destination": "PAR",      "direct": true,      "duration_minutes": 80,      "itinerary_id": "9f1b7cea42f5abf24d8cbbbe7c0ef4e0",      "origin": "LON",      "price_fare": 14.7,      "price_per_adult": 34.8,      "price_policy_id": "SHA_SHA-ALI_PIDReduce-5Je3UPxg20261016122647^List-6ZQvca",      "price_short_policy_id": "SHA_SHA-ALI_PIDReduce-5Je3UPxg20261016122647^List-6ZQvca^rZ6Cx2OwtOTlPelR^111000G0V1LONPAR0010101000TLLTNCDG000XH6U22439",      "price_tax": 20.1,      "price_total": 35,      "seats_available": 3,      "stops": 0,      "airline_codes": [        "U2"      ],      "destination_airports": [        "CDG"      ],      "flight_numbers": [        "U22439"      ],      "origin_airports": [        "LTN"      ]    }  ]}

Fields

FieldTypeWhat it isExample
offers[].airline_codes array Codes of the airlines flying it. U2
offers[].arrival_time string Local arrival time. 2026-11-10 19:00:00
offers[].cabin string The cabin class. Economy class
offers[].currency string The currency of the prices. USD
offers[].departure_time string Local departure time. 2026-11-10 16:45:00
offers[].destination string The city or airport code you searched to. PAR
offers[].destination_airports array The airports it lands at. CDG
offers[].direct boolean Whether the flight is non-stop. true
offers[].duration_minutes integer Total travel time, in minutes. 75
offers[].flight_numbers array The flight numbers. U28407
offers[].itinerary_id string Trip.com's ID for this itinerary. c2ee10ce18d1d8ef92b59b338ce22737
offers[].origin string The city or airport code you searched from. LON
offers[].origin_airports array The airports it leaves from. LGW
offers[].price_fare number The fare before taxes. 25.2
offers[].price_per_adult number The price for one adult. 34.5
offers[].price_policy_id string SHA_SHA-ALI_PIDReduce-5Je3UPxg20261016122647^List-x8sm8x
offers[].price_short_policy_id string SHA_SHA-ALI_PIDReduce-5Je3UPxg20261016122647^List-x8sm8x^rZ6Cx2…
offers[].price_tax number Taxes and fees. 9.3
offers[].price_total integer The total price for everyone searched. 35
offers[].seats_available integer Seats left at this price, as Trip.com shows them. 4
offers[].stops integer How many stops the flight makes. 0
children integer Children in the search. 0
collected_at string When this result was collected. 2026-10-16T12:26:47Z
collection_complete boolean true
infants integer Infants in the search. 0
offers array The flights found, one per itinerary. 43 records
product_id string SHA_SHA-ALI_PIDReduce-5Je3UPxg20261016122647^rZ6Cx2OwtOTlPelR
returned integer How many offers this response holds. 43
source_result_count integer 43
source_url string The Trip.com page this was read from. https://us.trip.com/restapi/soa2/27015/FlightListSearchSSE

If a call fails

A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.

Other Trip.com Travel endpoints

Something missing or unclear? Ask the team that builds the Trip.com Travel endpoints.