askFaqread-onlyuntrusted content
Answer a customer question from AJet's own published help content: baggage, pets, children and infants, check-in, seat and meal selection, special assistance and accessibility, discounts, invoices, refunds and…
query: string
availability.filterFlights
Filters the flight results the user is currently looking at, by stop count and departure time of day. Only changes what is displayed — no new search is made and nothing is booked. Call with no arguments to clear the…
direct: boolean?, connecting: boolean?, timeRanges: array?
availability.getSelectionread-onlyuntrusted content
Reads which flight and fare package the user has already selected on the results page, per direction (OUTBOUND / RETURN). Makes no request. Returns an empty selection if nothing is chosen yet.
availability.getShownFlightsread-onlyuntrusted content
Reads the flight results the user is currently looking at, in the order and with the filters and sort they see on screen. Makes no request and starts no new search. Use it to answer questions about the visible list…
availability.sortFlights
Sorts the flight results the user is currently looking at. Only changes the display order — no new search is made.
sortBy: string
getAirportInforead-onlyuntrusted content
Look up AJet airports. With no arguments it returns the full list of departure airports. With "query" it filters by IATA code, airport name, city or country. With "fromAirport" it returns the destinations reachable…
query: string?, fromAirport: string?
getCalendarPricesread-onlyuntrusted content
Get the cheapest AJet fare per day for one or more months on a given route. Useful for answering "which day is cheapest to fly". For each month "days" maps the day of the month to that day's cheapest fare in the…
origin: string, destination: string, months: array, currency: string?
getCheapestFaresread-onlyuntrusted content
Get the cheapest AJet one-way fares for the days around a given date on a route (a "flexible dates" view). Useful for "is it cheaper a day earlier or later". "samePriceAllDays" means no day is cheaper than another.…
origin: string, destination: string, departureDate: string, dateOffset: integer?, adults: integer?, currencyCode: string?
getCurrenciesread-onlyuntrusted content
Lists the currency codes AJet can show fares in, and which one the page is currently using. Use a listed code as "currencyCode" in the fare tools. Makes no request. Read-only.
getFlightDatesread-onlyuntrusted content
List the dates AJet actually flies a route, so a day can be picked before pricing it. Returns the available departure dates between startDate and endDate as YYYY-MM-DD, ready to pass to searchFlights or…
origin: string, destination: string, startDate: string, endDate: string?
getPassengerTypesread-onlyuntrusted content
List the passenger types AJet sells on a route, including discounted ones such as student or teacher, with the age limits that apply. Useful for "is there a student discount on this route". Types marked "special" need…
origin: string, destination: string
openCheapestDay
Find the cheapest day to fly in a given month on an AJet route and open the results for that day in the page the user is looking at, in one step. Use this for "when is it cheapest to fly in September, show me".…
origin: string, destination: string, month: string, adults: integer?, children: integer?, infants: integer?
openFlightSearch
Runs an AJet flight search in the page the user is looking at and opens the results, exactly as pressing Search would. Use this to show the user results; use searchFlights instead to read the data yourself. Refuses…
origin: string, destination: string, departureDate: string, returnDate: string?, adults: integer?, children: integer?, infants: integer?
searchFlightsread-onlyuntrusted content
Search AJet flight availability for a route and date. Returns flight options with flight number, times, duration, stops and the lowest available price, plus the total number of flights found. Only outbound flights are…
origin: string, destination: string, departureDate: string, returnDate: string?, adults: integer?, children: integer?, infants: integer?, currencyCode: string?