Booking

Search Booking.com flights

Returns Booking.com flight offers between two locations given as from and to (such as SGN.AIRPORT), for a depart date. type is ROUNDTRIP (default, needs return) or ONEWAY. Also takes adults (1 to 9), children, cabin_class and sort. Offers carry price, currency and segments with legs; the response adds total_count and min_price.

get/booking-flights/search

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/booking-flights/search
  • Auth: API key in header x-api-key

Query parameters

type'ROUNDTRIP' | 'ONEWAY'

Trip type, default ROUNDTRIP

fromstring required

Origin location id, e.g. SGN.AIRPORT, from a prior autocomplete result

tostring required

Destination location id, same composite format as from

from_countrystring

Origin country code

to_countrystring

Destination country code

departstring required

Departure date, YYYY-MM-DD

returnstring

Return date, YYYY-MM-DD, required when type is ROUNDTRIP

adultsinteger

Number of adults, 1-9, default 1

childreninteger

Number of children, 0-9

cabin_classstring

Cabin class, default ECONOMY

sortstring

Result sort order, default BEST

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.