Skip to main content

Search Bookings API

Overview​

Performs live multi-vertical travel availability searches across Flights, Hotels, and Insurance.

  • Endpoint: /api/search/all (or /api/search/hotels, /api/search/flights, /api/search/insurance)
  • Method: GET
  • Headers:
    • Authorization: Bearer <token> (Optional/Standard JWT)

Query Parameters​

ParameterTypeRequiredDescription
typeEnumNoSearch vertical type: FLIGHT, HOTEL, INSURANCE, or ALL (Default: ALL)
originStringNoIATA origin airport code for flights (e.g. DEL)
destinationStringNoIATA destination airport code for flights (e.g. BOM)
travelDateStringNoFlight travel date in YYYY-MM-DD format
returnDateStringNoRound-trip return flight date in YYYY-MM-DD format
cabinClassEnumNoECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST (Default: ECONOMY)
adultsNumberNoAdult passenger count (Default: 1)
childrenNumberNoChild passenger count (Default: 0)
infantsNumberNoInfant passenger count (Default: 0)
directFlightOnlyBooleanNoFilter for direct flights only (Default: false)
isConnectingFlightBooleanNoFilter for connecting flights only (Default: opposite of directFlightOnly)
pftsEnumNoPassenger fare type special fare: REGULAR, STUDENT, SENIOR_CITIZEN (Default: REGULAR)
preferredAirlineString / ArrayNoPreferred airline IATA codes (comma-separated or array, max 10, e.g. 6E,AI)
cityStringNoCity name for hotel search (e.g. Mumbai)
cityCodeStringNoSpecific city code (e.g. BOM)
checkIn / checkInDateStringNoHotel check-in date in YYYY-MM-DD format (Must be a future date)
checkOut / checkOutDateStringNoHotel check-out date in YYYY-MM-DD format (Must be after checkIn)
roomsNumberNoNumber of hotel rooms (Min: 1, Max: 9, Default: 1)
guestsNumberNoNumber of adults per room (Min: 1, Max: 6, Default: 2)
childrenNumberNoNumber of children per room (Min: 0, Max: 4, Default: 0)
childAgesString / ArrayNoChild ages in years (0–17) comma-separated or array when children > 0 (e.g. 3,5)
hidsString / ArrayNoSpecific hotel IDs to search (Max 100)
currencyStringNo3-letter ISO currency code (Default: INR)
correlationIdStringNoUnique tracking ID for support tracing (auto-generated if omitted)
nationalityStringNoCountry ID for guest nationality (Default: 106 for India)
timeoutMsNumberNoSearch timeout in milliseconds (Default: 13000)
starRatingNumberNoHotel star rating filter (1 to 5)
insuranceTypeEnumNoDOMESTIC or INTERNATIONAL (Default: DOMESTIC)
startDateStringNoInsurance coverage start date
endDateStringNoInsurance coverage end date
paxCountNumberNoInsurance passenger count (Default: 1)
minPriceNumberNoMinimum price filter
maxPriceNumberNoMaximum price filter
customMinPriceNumberNoCustom minimum price filter (overrides minPrice)
customMaxPriceNumberNoCustom maximum price filter (overrides maxPrice)
pageNumberNoContent mapping page index (Min: 0, Default: 0)
sizeNumberNoContent mapping max hotel size limit (Min: 1, Max: 5000, Default: 2000)

Response Example (200 OK)​

{
"success": true,
"data": {
"type": "ALL",
"query": {
"type": "ALL",
"origin": "DEL",
"destination": "BOM",
"travelDate": "2026-10-15",
"city": "Mumbai",
"guests": 2,
"paxCount": 1
},
"results": {
"flights": {
"searchResult": {
"tripInfos": [
{
"sID": "FL-10023",
"totalPriceList": [{ "totalPrice": 4850 }]
}
]
}
},
"hotels": {
"searchResult": {
"his": [
{
"hotelId": "100000000012",
"name": "Fariyas Hotel",
"options": [
{
"optionId": "1d543655-e4fb-4718-bb01-6cb76004703f",
"optionType": "SRSM",
"roomInfo": [
{
"id": "10024815122",
"name": "Deluxe Room + Buffet Breakfast + 20% on Food and Soft beverages + Wi-Fi",
"adults": 2,
"children": 0
}
],
"inclusions": [],
"mealBasis": "Breakfast",
"pricing": {
"totalPrice": 29006.07,
"basePrice": 24221.81,
"discount": 0,
"taxes": 4737.06,
"mf": 40,
"mft": 7.2,
"currency": "INR"
},
"commercial": {
"type": "NET",
"commission": 0
},
"compliance": {
"gstType": "NA",
"panRequired": false,
"passportRequired": false,
"ivsfp": false
},
"cancellation": {
"isRefundable": true,
"penalties": [
{
"from": "2026-09-12T09:03:00",
"to": "2026-10-11T23:59:59",
"amount": 0
},
{
"from": "2026-10-11T23:59:59",
"to": "2026-10-17T00:00:00",
"amount": 29006.07
}
]
}
}
],
"heroImage": {
"is_hero_image": true,
"links": {
"original": {
"href": "https://i.travelapi.com/lodging/1000000/50000/45600/45510/eeb4c1ac_z.jpg"
}
}
}
}
]
}
},
"insurance": {
"searchResult": {
"plans": [
{
"planId": "INS-01",
"planName": "Domestic Secure Travel Shield"
}
]
}
}
}
},
"message": "Booking search completed successfully"
}

Hotel Enrichment Note​

Each hotel item in searchResult.his is automatically enriched by querying TripJack's static hotel detail API using hotel.hotelId.

  • heroImage: Contains the matching image object where is_hero_image === true directly from static details, or null if no hero image is designated.