Flight information with airline, route (origin/destination), departure/arrival times, duration, aircraft, pricing, available seats, class, and status. Used for flight booking platforms, airline systems, and travel management applications.
https://api.mockly.codes/flights?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/flightsGet a collection of flights
/travel/flights/flights/:idGet a single flight by ID
/travel/flights/:id/flights/metaGet resource metadata and schema
/travel/flights/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/flights?q=laptopGET https://api.mockly.codes/flights?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 flights
fetch('https://api.mockly.codes/flights?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/flights?count=10'
)
data = response.json()curl "https://api.mockly.codes/flights?count=10"fetch('https://api.mockly.codes/flights?nocache=true')idintegerUnique identifier for the flight
random_intflight_numberstringFlight number or code (e.g., AA123, DL456)
flight_numberairlinestringAirline company operating the flight
airlineoriginstringCity or airport name of departure location
cityorigin_codestringIATA airport code for the origin airport (e.g., JFK, LAX, LHR)
airport_codedestinationstringCity or airport name of arrival location
citydestination_codestringIATA airport code for the destination airport
airport_codedeparture_timestringScheduled departure date and time
future_datedate-timearrival_timestringScheduled arrival date and time
future_datedate-timedurationintegerFlight duration in minutes
flight_durationaircraftstringAircraft model or type (e.g., Boeing 737, Airbus A320)
aircraftpricenumberFlight ticket price
flight_pricecurrencystringISO currency code for the price (e.g., USD, EUR, GBP)
currencyavailable_seatsintegerNumber of seats currently available for booking
random_intclassstringCabin class (e.g., Economy, Business, First)
flight_classstatusstringFlight status (e.g., scheduled, boarding, departed, arrived, delayed, cancelled)
flight_statuscountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request