Skip to main content

Flight Search

POST

/api/v1/generic-api-service/flight/search

The search endpoint searches for available flights between an origin and a destination for the given dates and passengers. It returns a search context (used by subsequent steps) and a list of flights, each containing its segments, priced offers/fares and, when requested, the available fare brands.

curl --location 'https://test-api.etscore.com/api/v1/generic-api-service/flight/search' \
--header 'Accept-Language: en-US' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"from": "AYT",
"to": "SAW",
"cityFrom": true,
"cityTo": true,
"departureDate": "2026-10-10",
"returnDate": "2026-10-30",
"passengers": {
"adults": 1,
"children": 0,
"infants": 0
},
"cabinClass": null,
"filters": {
"directOnly": false
},
"options": {
"includeFareBrands": true
}
}'