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.
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
Trip type, default ROUNDTRIP
Origin location id, e.g. SGN.AIRPORT, from a prior autocomplete result
Destination location id, same composite format as from
Origin country code
Destination country code
Departure date, YYYY-MM-DD
Return date, YYYY-MM-DD, required when type is ROUNDTRIP
Number of adults, 1-9, default 1
Number of children, 0-9
Cabin class, default ECONOMY
Result sort order, default BEST
Headers
API key required
Response
OK
Example response
{
"code": 200,
"msg": "OK"
}Changes
No recorded changes to this operation across all 3 revisions of this API.