Skip to main content
POST
/
api
/
flights
/
search
Search Flights
curl --request POST \
  --url http://localhost:8080/api/flights/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "origin": "DEL",
  "destination": "BOM",
  "departure_date": "2026-03-15T00:00:00Z",
  "adults": 1,
  "travel_class": "ECONOMY",
  "return_date": "2026-03-20T00:00:00Z",
  "children": 0,
  "infants": 0,
  "display_currency": "INR"
}
'
{
  "success": true,
  "data": {
    "search_id": "<string>",
    "flights": [
      {
        "id": "<string>",
        "total_price": 123,
        "currency": "<string>",
        "outbound": {
          "segments": [
            {
              "carrier_name": "<string>",
              "flight_number": "<string>",
              "origin": "<string>",
              "destination": "<string>",
              "departure_at": "2023-11-07T05:31:56Z"
            }
          ]
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
origin
string
required

IATA code of origin airport

Example:

"DEL"

destination
string
required

IATA code of destination airport

Example:

"BOM"

departure_date
string<date-time>
required
Example:

"2026-03-15T00:00:00Z"

adults
integer
required
Required range: x >= 1
Example:

1

travel_class
enum<string>
required
Available options:
ECONOMY,
PREMIUM_ECONOMY,
BUSINESS,
FIRST
Example:

"ECONOMY"

return_date
string<date-time>
Example:

"2026-03-20T00:00:00Z"

children
integer
Example:

0

infants
integer
Example:

0

display_currency
string
Example:

"INR"

Response

Flight search results

success
boolean
data
object