APIs / Trip.com / Flights Search
Trip.com: Flights Search
Flights Search from Trip.com as JSON. 1–3 credits per successful call.
GET /v1/trip-com/flights-search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
from | string | Required | Any |
to | string | Required | Any |
date | string | Required | Any |
return_date | string | Optional | Any |
policy_id | string | Optional | Up to 300 characters |
adults | integer | Optional | Any |
cabin_class | string | Optional | economy, premium_economy, business |
currency | string | Optional | USD, EUR, GBP, JPY, KRW |
Example request
curl "https://api.perceptlayer.com/v1/trip-com/flights-search?from=LON&to=NYC&date=2027-03-14&adults=1&cabin_class=economy¤cy=USD" \
-H "X-API-Key: $API_KEY"Run this endpoint in the playground with your own parameters. 1–3 credits per successful call (1 credit one way, 3 with return_date); failed calls are free.