Flights live pricing API (3.0)
/search/create
Authorizations:
Request Body schema: application/json
object (liveQuery) Query object for request. | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Responses
Request samples
- Payload
{- "query": {
- "market": "string",
- "locale": "string",
- "currency": "string",
- "queryLegs": [
- {
- "originPlaceId": {
- "iata": "string",
- "entityId": "string"
}, - "destinationPlaceId": {
- "iata": "string",
- "entityId": "string"
}, - "date": {
- "year": 0,
- "month": 0,
- "day": 0
}
}
], - "cabinClass": "CABIN_CLASS_UNSPECIFIED",
- "adults": 0,
- "childrenAges": [
- 0
], - "includedCarriersIds": [
- "string"
], - "excludedCarriersIds": [
- "string"
], - "includedAgentsIds": [
- "string"
], - "excludedAgentsIds": [
- "string"
], - "includeSustainabilityData": true,
- "nearbyAirports": true
}
}Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- 503
- default
{- "sessionToken": "string",
- "status": "RESULT_STATUS_UNSPECIFIED",
- "action": "RESULT_ACTION_UNSPECIFIED",
- "content": {
- "results": {
- "itineraries": {
- "property1": {
- "pricingOptions": [
- {
- "price": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}, - "agentIds": [
- "string"
], - "items": [
- {
- "price": {
- "amount": null,
- "unit": null
}, - "agentId": "string",
- "deepLink": "string",
- "fares": [
- null
]
}
], - "transferType": "TRANSFER_TYPE_UNSPECIFIED"
}
], - "legIds": [
- "string"
], - "sustainabilityData": {
- "isEcoContender": true,
- "ecoContenderDelta": 0
}
}, - "property2": {
- "pricingOptions": [
- {
- "price": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}, - "agentIds": [
- "string"
], - "items": [
- {
- "price": {
- "amount": null,
- "unit": null
}, - "agentId": "string",
- "deepLink": "string",
- "fares": [
- null
]
}
], - "transferType": "TRANSFER_TYPE_UNSPECIFIED"
}
], - "legIds": [
- "string"
], - "sustainabilityData": {
- "isEcoContender": true,
- "ecoContenderDelta": 0
}
}
}, - "legs": {
- "property1": {
- "originPlaceId": "string",
- "destinationPlaceId": "string",
- "departureDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "arrivalDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "durationInMinutes": 0,
- "stopCount": 0,
- "marketingCarrierIds": [
- "string"
], - "operatingCarrierIds": [
- "string"
], - "segmentIds": [
- "string"
]
}, - "property2": {
- "originPlaceId": "string",
- "destinationPlaceId": "string",
- "departureDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "arrivalDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "durationInMinutes": 0,
- "stopCount": 0,
- "marketingCarrierIds": [
- "string"
], - "operatingCarrierIds": [
- "string"
], - "segmentIds": [
- "string"
]
}
}, - "segments": {
- "property1": {
- "originPlaceId": "string",
- "destinationPlaceId": "string",
- "departureDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "arrivalDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "durationInMinutes": 0,
- "marketingFlightNumber": "string",
- "marketingCarrierId": "string",
- "operatingCarrierId": "string"
}, - "property2": {
- "originPlaceId": "string",
- "destinationPlaceId": "string",
- "departureDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "arrivalDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "durationInMinutes": 0,
- "marketingFlightNumber": "string",
- "marketingCarrierId": "string",
- "operatingCarrierId": "string"
}
}, - "places": {
- "property1": {
- "entityId": "string",
- "parentId": "string",
- "name": "string",
- "type": "PLACE_TYPE_UNSPECIFIED",
- "iata": "string",
- "coordinates": {
- "latitude": 0,
- "longitude": 0
}
}, - "property2": {
- "entityId": "string",
- "parentId": "string",
- "name": "string",
- "type": "PLACE_TYPE_UNSPECIFIED",
- "iata": "string",
- "coordinates": {
- "latitude": 0,
- "longitude": 0
}
}
}, - "carriers": {
- "property1": {
- "name": "string",
- "allianceId": "string",
- "imageUrl": "string",
- "iata": "string"
}, - "property2": {
- "name": "string",
- "allianceId": "string",
- "imageUrl": "string",
- "iata": "string"
}
}, - "agents": {
- "property1": {
- "name": "string",
- "type": "AGENT_TYPE_UNSPECIFIED",
- "imageUrl": "string",
- "feedbackCount": 0,
- "rating": 0,
- "ratingBreakdown": {
- "customerService": 0,
- "reliablePrices": 0,
- "clearExtraFees": 0,
- "easeOfBooking": 0,
- "other": 0
}, - "isOptimisedForMobile": true
}, - "property2": {
- "name": "string",
- "type": "AGENT_TYPE_UNSPECIFIED",
- "imageUrl": "string",
- "feedbackCount": 0,
- "rating": 0,
- "ratingBreakdown": {
- "customerService": 0,
- "reliablePrices": 0,
- "clearExtraFees": 0,
- "easeOfBooking": 0,
- "other": 0
}, - "isOptimisedForMobile": true
}
}, - "alliances": {
- "property1": {
- "name": "string"
}, - "property2": {
- "name": "string"
}
}
}, - "stats": {
- "itineraries": {
- "minDuration": 0,
- "maxDuration": 0,
- "total": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "stops": {
- "direct": {
- "total": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "ticketTypes": {
- "singleTicket": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNonNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}
}
}, - "oneStop": {
- "total": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "ticketTypes": {
- "singleTicket": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNonNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}
}
}, - "twoPlusStops": {
- "total": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "ticketTypes": {
- "singleTicket": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNonNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}
}
}
}, - "hasChangeAirportTransfer": true
}
}, - "sortingOptions": {
- "best": [
- {
- "score": 0,
- "itineraryId": "string"
}
], - "cheapest": [
- {
- "score": 0,
- "itineraryId": "string"
}
], - "fastest": [
- {
- "score": 0,
- "itineraryId": "string"
}
]
}
}
}/search/poll
Authorizations:
path Parameters
| sessionToken required | string Session token required for polling operations. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- 503
- default
{- "sessionToken": "string",
- "status": "RESULT_STATUS_UNSPECIFIED",
- "action": "RESULT_ACTION_UNSPECIFIED",
- "content": {
- "results": {
- "itineraries": {
- "property1": {
- "pricingOptions": [
- {
- "price": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}, - "agentIds": [
- "string"
], - "items": [
- {
- "price": {
- "amount": null,
- "unit": null
}, - "agentId": "string",
- "deepLink": "string",
- "fares": [
- null
]
}
], - "transferType": "TRANSFER_TYPE_UNSPECIFIED"
}
], - "legIds": [
- "string"
], - "sustainabilityData": {
- "isEcoContender": true,
- "ecoContenderDelta": 0
}
}, - "property2": {
- "pricingOptions": [
- {
- "price": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}, - "agentIds": [
- "string"
], - "items": [
- {
- "price": {
- "amount": null,
- "unit": null
}, - "agentId": "string",
- "deepLink": "string",
- "fares": [
- null
]
}
], - "transferType": "TRANSFER_TYPE_UNSPECIFIED"
}
], - "legIds": [
- "string"
], - "sustainabilityData": {
- "isEcoContender": true,
- "ecoContenderDelta": 0
}
}
}, - "legs": {
- "property1": {
- "originPlaceId": "string",
- "destinationPlaceId": "string",
- "departureDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "arrivalDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "durationInMinutes": 0,
- "stopCount": 0,
- "marketingCarrierIds": [
- "string"
], - "operatingCarrierIds": [
- "string"
], - "segmentIds": [
- "string"
]
}, - "property2": {
- "originPlaceId": "string",
- "destinationPlaceId": "string",
- "departureDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "arrivalDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "durationInMinutes": 0,
- "stopCount": 0,
- "marketingCarrierIds": [
- "string"
], - "operatingCarrierIds": [
- "string"
], - "segmentIds": [
- "string"
]
}
}, - "segments": {
- "property1": {
- "originPlaceId": "string",
- "destinationPlaceId": "string",
- "departureDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "arrivalDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "durationInMinutes": 0,
- "marketingFlightNumber": "string",
- "marketingCarrierId": "string",
- "operatingCarrierId": "string"
}, - "property2": {
- "originPlaceId": "string",
- "destinationPlaceId": "string",
- "departureDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "arrivalDateTime": {
- "year": 0,
- "month": 0,
- "day": 0,
- "hour": 0,
- "minute": 0,
- "second": 0
}, - "durationInMinutes": 0,
- "marketingFlightNumber": "string",
- "marketingCarrierId": "string",
- "operatingCarrierId": "string"
}
}, - "places": {
- "property1": {
- "entityId": "string",
- "parentId": "string",
- "name": "string",
- "type": "PLACE_TYPE_UNSPECIFIED",
- "iata": "string",
- "coordinates": {
- "latitude": 0,
- "longitude": 0
}
}, - "property2": {
- "entityId": "string",
- "parentId": "string",
- "name": "string",
- "type": "PLACE_TYPE_UNSPECIFIED",
- "iata": "string",
- "coordinates": {
- "latitude": 0,
- "longitude": 0
}
}
}, - "carriers": {
- "property1": {
- "name": "string",
- "allianceId": "string",
- "imageUrl": "string",
- "iata": "string"
}, - "property2": {
- "name": "string",
- "allianceId": "string",
- "imageUrl": "string",
- "iata": "string"
}
}, - "agents": {
- "property1": {
- "name": "string",
- "type": "AGENT_TYPE_UNSPECIFIED",
- "imageUrl": "string",
- "feedbackCount": 0,
- "rating": 0,
- "ratingBreakdown": {
- "customerService": 0,
- "reliablePrices": 0,
- "clearExtraFees": 0,
- "easeOfBooking": 0,
- "other": 0
}, - "isOptimisedForMobile": true
}, - "property2": {
- "name": "string",
- "type": "AGENT_TYPE_UNSPECIFIED",
- "imageUrl": "string",
- "feedbackCount": 0,
- "rating": 0,
- "ratingBreakdown": {
- "customerService": 0,
- "reliablePrices": 0,
- "clearExtraFees": 0,
- "easeOfBooking": 0,
- "other": 0
}, - "isOptimisedForMobile": true
}
}, - "alliances": {
- "property1": {
- "name": "string"
}, - "property2": {
- "name": "string"
}
}
}, - "stats": {
- "itineraries": {
- "minDuration": 0,
- "maxDuration": 0,
- "total": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "stops": {
- "direct": {
- "total": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "ticketTypes": {
- "singleTicket": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNonNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}
}
}, - "oneStop": {
- "total": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "ticketTypes": {
- "singleTicket": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNonNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}
}
}, - "twoPlusStops": {
- "total": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "ticketTypes": {
- "singleTicket": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNonNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}, - "multiTicketNpt": {
- "count": 0,
- "minPrice": {
- "amount": "string",
- "unit": "PRICE_UNIT_UNSPECIFIED"
}
}
}
}
}, - "hasChangeAirportTransfer": true
}
}, - "sortingOptions": {
- "best": [
- {
- "score": 0,
- "itineraryId": "string"
}
], - "cheapest": [
- {
- "score": 0,
- "itineraryId": "string"
}
], - "fastest": [
- {
- "score": 0,
- "itineraryId": "string"
}
]
}
}
}