Flight Search API Documentation

api.flyfr.ee - Comprehensive flight data API

Authentication

All API requests require an X-API-Key header for authentication.

API Parameters
ParameterEndpointsTypeDefaultRequiredImageDescription
rangeStartDateAllstring-Required-Flight search start date (YYYY-MM-DD). For /offers and /offersAI: used with trip length to find all possible offers. For /flights: exact outbound date. Range: today+1 to today+365 days.
rangeEndDateAllstring-Required-Flight search end date (YYYY-MM-DD). For one-way flights: searches all dates between start and end. For /flights: exact inbound date. Max: startDate + 199 days.
originsAllarray[string]-Required-List of 3-digit IATA airport codes for departure cities, (offers and offersAI can have up to 100 codes, but for flights and links exactly 1)
destinationsAllarray[string]-Required-List of 3-digit IATA airport codes for arrival cities, (offers and offersAI can have up to 100 codes, but for flights and links exactly 1)
passengerType.adultsAllinteger1OptionalNumber of adult passengers, (sum of all must be between 1 and 9)
passengerType.childrenAllinteger0OptionalNumber of child passengers (2-11 years old), at most 2 per adult
passengerType.infantInSeatAllinteger0OptionalNumber of infants requiring their own seat (under 2 years), at most 2 per adult
passengerType.infantOnLapAllinteger0OptionalNumber of infants traveling on adult's lap (under 2 years), at most 2 per adult
itineraryTypeAllstringROUND-TRIPOptionalType of trip itinerary. Options: ROUND-TRIP, ONE-WAY, MULTI-CITY, MULTI-CITY is not implemented yet
cabinAllstringECONOMYOptionalPreferred cabin class. Options: ECONOMY, PREMIUM, BUSINESS, FIRST
numStopsAllstringANY-STOPSOptionalMaximum stops allowed. Options: NON-STOP, ONE-OR-FEWER-STOPS, TWO-OR-FEWER-STOPS, ANY-STOPS
currencyAllstringUSDOptionalISO 4217 currency code for pricing
languageAllstringenOptionalLanguage code for localized content
maxPriceAllinteger-OptionalMaximum price filter in selected currency
flightDurationAllinteger-OptionalMaximum total flight duration in minutes
showSeparateTicketsAllbooleanfalseOptionalInclude flights requiring separate tickets.
excludedAirlinesAllarray[string][]OptionalList of 2-digit IATA airline codes to exclude from results
onlyAirlinesAllarray[string][]OptionalList of 2-digit IATA airline codes to include exclusively
excludedAirportsAllarray[string][]OptionalList of 3-digit IATA airport codes to avoid for connections/layovers
onlyAirportsAllarray[string][]OptionalList of 3-digit IATA airport codes - if connections exist, they must be at these airports
maxLayoverAllinteger-OptionalMaximum layover time in minutes
minLayoverAllinteger-OptionalMinimum layover time in minutes - useful to avoid tight connections or explore layover cities like setting a layover of 1200 minutes to explore a city
avoidUSConnectionsAllbooleanfalseOptional-Exclude flights with connections through US airports
requestLocationAllstringUSOptionalRequest origin region - affects US connection handling. Options: US, EU
departHourStartAllinteger-OptionalEarliest acceptable departure hour (0-23, where 0 = midnight)
departHourEndAllinteger-OptionalLatest acceptable departure hour (0-23, where 23 = 11 PM)
arrivalHourStartAllinteger-OptionalEarliest acceptable arrival hour (0-23, where 0 = midnight)
arrivalHourEndAllinteger-OptionalLatest acceptable arrival hour (0-23, where 23 = 11 PM)
emissionsAllbooleanfalseOptionalFilter to show only low-emission flights (environmentally friendly options)
excludeBasicEconomyAllbooleanfalseOptionalExclude basic economy fares (works for flights within/between USA and Canada)
requestCheapestFlightsAllbooleanfalseOptionalPrioritize cheapest options (searches random OTAs) vs best flights
showAllFlightsAllbooleantrueOptionalReturn all available flights vs top results only (recommended: true for comprehensive results)
minTripLengthoffers, offersAIinteger-Mandatory for offers/offersAI-Minimum trip duration in days - filters offers based on stay length
maxTripLengthoffers, offersAIinteger-Mandatory for offers/offersAI-Maximum trip duration in days - filters offers based on stay length
sortByIndexflightsinteger1OptionalSort results by: 1=Top flights, 2=Price, 3=Departure time, 4=Arrival time, 5=Duration, 6=Emissions
outboundFlightLegsflights, linksarray[object]-flights: Optional, links: RequiredSelected outbound flight details (origin, date, destination, airline, flightNumber)
inboundFlightLegslinksarray[object]-OptionalSelected inbound flight details (required for round-trip bookings)
/offersPOST

Test Parameters

Required Parameters

Passengers

Trip Configuration

Mandatory for offers

Price & Duration

Airlines & Airports

Time Preferences

Special Options

Response Schema

{
  "offers": [
    {
      "startDate": "2024-01-15",
      "returnDate": "2024-01-22", 
      "price": 450,
      "tripLength": 7,
      "origin": "LAX",
      "destination": "LHR",
      "url": "https://booking-link.com/..."
    }
  ],
  "combinations": 1250,
  "average": 520,
  "minPrice": 380,
  "maxPrice": 890
}
/offersAIPOST

Test Parameters

Required Parameters

Passengers

Trip Configuration

Mandatory for offersAI

Price & Duration

Airlines & Airports

Time Preferences

Special Options

Response Schema

{
  "routes": {
    "LAX": {
      "LHR": {
        "7": [
          {
            "s": "2024-01-15",
            "r": "2024-01-22",
            "p": 450,
            "u": "https://booking-link.com/..."
          }
        ]
      }
    }
  },
  "combinations": 1250,
  "average": 520,
  "minPrice": 380,
  "maxPrice": 890
}
/flightsPOST

Test Parameters

Required Parameters

Passengers

Trip Configuration

Price & Duration

Airlines & Airports

Time Preferences

Special Options

Flights Options

Response Schema

/urlsPOST

Test Parameters

Required Parameters

Passengers

Trip Configuration

Price & Duration

Airlines & Airports

Time Preferences

Special Options

Response Schema

{
  "url": "https://www.google.com/travel/flights/search?tfs=CBwQAhooEgoyMDI0LTAxLTE1agcIARIDTEFYcgcIARIDTEhSGgoyMDI0LTAxLTIyagcIARIDTEhScgcIARIDTEFYcAGCAQsI____________AUABSAGYAQE"
}