trip.com
Trip.com API
Query public Trip.com data with GeckoAPI and receive structured JSON. Choose an operation to review its inputs, credit cost and response fields.
Check outbound economy class flights on Trip.com by airports, data and passengers. Returns companies, segments, local times and fares in JSON. Cost: 5 credits per consultation.
GeckoAPI is independent of Trip.com. This integration reads public data; it does not grant access to private accounts or account management operations.
Available operations
Search flights
trip.com:plp
Check outbound economy class flights on Trip.com by airports, data and passengers. Returns companies, segments, local times and fares in JSON. Cost: 5 credits per consultation.
5 credits per request
These are standard credit costs. Account-specific pricing is shown in the dashboard. Each operation has its own supported inputs and regional coverage.
Coverage and limitations
Prices and availability reflect the time of the request and can change before purchase. Displayed totals may be rounded; the per-passenger breakdown preserves the received values.
Make your first request
The example uses search flights. Replace YOUR_API_KEY with your server-side API key. Copy supported inputs from the reference for the operation you choose.
curl -X POST https://api.geckoapi.com.br/v1/extract \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"target": "trip.com",
"type": "plp",
"from": "GRU",
"to": "GIG",
"departureDate": "2026-10-17",
"numAdults": 1,
"numChildren": 0,
"numInfants": 0,
"currency": "BRL",
"lang": "pt-BR"
}' Example JSON response
Abbreviated example from the same operation. Arrays and nested objects are shortened here; the endpoint reference includes the full documented schema. Source content retains its original language.
{
"requestId": "99999999-1111-4111-8111-999999999999",
"executionId": "99999999-2222-4222-8222-999999999999",
"data": {
"source": "trip.com",
"type": "plp",
"parser": "1.0.0",
"url": "https://br.trip.com/flights/showfarefirst?dcity=gru&acity=gig&ddate=2026-10-17&triptype=ow&class=y&quantity=1&childqty=0&babyqty=0&curr=BRL",
"requestUrl": "https://br.trip.com/flights/showfarefirst?dcity=gru&acity=gig&ddate=2026-10-17&triptype=ow&class=y&quantity=1&childqty=0&babyqty=0&curr=BRL",
"extractedAt": "2026-09-17T15:05:38.190Z",
"searchType": "ONE_WAY",
"from": "GRU",
"to": "GIG",
"departureDate": "2026-10-17",
"numAdults": 1,
"numChildren": 0,
"numInfants": 0,
"currency": "BRL",
"lang": "pt-BR",
"cabin": "Economy",
"success": true,
"totalFlightOptions": 1
}
} Integrate with REST or MCP
Call POST /v1/extract from your backend, or use the operation-specific tool on POST /v1/mcp. The API reference includes both request formats. Keep credentials in your backend and handle missing fields, pagination and errors according to that operation's rules.
Ready to test the Trip.com API?
Open the documented example in the sandbox and inspect the response before integrating it into your application.
