Discover/justfly.com API
live

justfly.com APIjustfly.com

Search JustFly flights, autocomplete airports, retrieve fare details, and fetch trending destination deals via a structured REST API.

Endpoints
4
Updated
14d ago
Try it
Search query for airport or city name (e.g. 'New York', 'LAX', 'London')
api.parse.bot/scraper/4b07d4ca-2aa3-49ed-9243-0201d6e696ad/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/4b07d4ca-2aa3-49ed-9243-0201d6e696ad/autocomplete_airport?query=Chicago' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Search for airports and cities by query string. Returns matching airports with IATA codes, city names, countries, and coordinates.

Input
ParamTypeDescription
queryrequiredstringSearch query for airport or city name (e.g. 'New York', 'LAX', 'London')
Response
{
  "type": "object",
  "fields": {
    "data": "array of matching airports/cities with Code, Name, Text, Type, CityName, CountryName, Airports (child airports for city results)",
    "status": "string, always 'success'"
  },
  "sample": {
    "data": [
      {
        "Code": "CHI",
        "Name": "Chicago FSS",
        "Text": "CHI - Chicago All Airports, United States",
        "Type": "City",
        "Region": "IL",
        "Airports": [
          {
            "Code": "ORD",
            "Name": "Chicago O'hare International",
            "Text": "ORD - Chicago O'hare International, Chicago, United States",
            "Type": "Airport",
            "CityCode": "CHI",
            "CityName": "Chicago",
            "IATACode": "ORD",
            "CountryCode": "US",
            "CountryName": "United States"
          }
        ],
        "CityCode": "CHI",
        "CityName": "Chicago",
        "IATACode": "CHI",
        "Latitude": 41.878,
        "Longitude": -87.63,
        "CountryCode": "US",
        "CountryName": "United States"
      }
    ],
    "status": "success"
  }
}

About the justfly.com API

The JustFly API covers 4 endpoints for querying live flight inventory, resolving airport IATA codes, and surfacing trending fare deals. The search_flights endpoint returns a search_id alongside paginated flight packages that include per-segment pricing, baggage info, and cabin class — everything you need to build a flight search or price-monitoring tool against JustFly's inventory.

Airport Lookup and Flight Search

The autocomplete_airport endpoint accepts a free-text query (city name, airport name, or IATA code) and returns an array of matching results. Each result includes Code, Name, CityName, CountryName, Type, and a nested Airports array for city-level results that expand into individual airport codes. This makes it straightforward to resolve user input into the IATA codes required by search_flights.

search_flights takes origin and destination IATA codes, a departure_date, and optional parameters including trip_type (roundtrip or oneway), return_date, seat_class (Economy, PremiumEconomy, Business, First), and adults. The response object includes a search_id, pagination metadata (total_pages, all_package_count, filtered_package_count), and a packages map keyed by package_id.

Flight Detail Retrieval

get_flight_details takes a search_id and package_id from a prior search_flights call and returns the full fare breakdown for that package. Response fields include tags, city_pairs (with individual segments and layovers), price, validating_carrier, baggage_info, and fare family options. Note that search_id references a cached search session — if the cache has expired, the detail call will not resolve, so detail lookups should follow search calls promptly.

Trending Deals

get_trending_destinations accepts an optional origin IATA code and an optional limit. It returns an array of deal objects each containing from, to, from_code, to_code, price, currency, from_date, to_date, and country. This endpoint is useful for building destination-discovery features or monitoring the cheapest roundtrip fares departing a specific airport.

Common use cases
  • Build a flight price tracker that monitors fare changes for specific routes using search_flights package pricing.
  • Power an airport autocomplete input field using Code, CityName, and CountryName from autocomplete_airport.
  • Display a 'cheapest destinations' widget on a travel site using get_trending_destinations deal objects.
  • Compare cabin class pricing across Economy, Business, and First for a given route and date.
  • Retrieve full fare family options and baggage allowances for a selected itinerary via get_flight_details.
  • Build a one-way vs. roundtrip price comparison tool using the trip_type parameter in search_flights.
  • Aggregate trending deals by country field to identify the cheapest international destinations from a given origin.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does JustFly have an official public developer API?+
JustFly does not publish an official developer API or documented public endpoints for third-party use. This Parse API provides structured programmatic access to JustFly flight and airport data.
What does `search_flights` return and how do I get more detail on a result?+
search_flights returns a search_id and a packages map. Each package entry contains pricing, segment summaries, and baggage info. To get fare family options, layover breakdown, and the full city_pairs detail, pass the search_id and a package_id from that map into get_flight_details.
Is there a time limit on using a `search_id` with `get_flight_details`?+
Yes. The search_id references a cached search session on JustFly's backend. If too much time passes between the search_flights call and the get_flight_details call, the cache may expire and the detail request will fail. Run detail lookups shortly after the initial search.
Does the API support multi-city itineraries?+
Not currently. The search_flights endpoint supports roundtrip and oneway trip types. Multi-city itinerary search is not exposed. You can fork this API on Parse and revise it to add a multi-city search endpoint.
Does `get_trending_destinations` return one-way deals or only roundtrip fares?+
The trending deals returned include from_date and to_date fields, indicating roundtrip fare windows. One-way trending deals are not currently exposed by this endpoint. You can fork the API on Parse and revise it to surface one-way trending fares if the underlying data supports it.
Page content last updated . Spec covers 4 endpoints from justfly.com.
Related APIs in TravelSee all →
culturetrip.com API
Discover travel inspiration and plan your next adventure by browsing curated travel articles, destination guides, and bookable trips organized by region and city. Search for specific destinations, compare trip dates and prices, and explore popular cities to find the perfect getaway.
sevenrooms.com API
Search for available restaurant tables across any SevenRooms venue, view venue details and open dates, and complete reservations all in one place. Whether you're planning ahead or booking last-minute, you can check real-time availability and secure your table at thousands of restaurants on the SevenRooms platform.
delta.com API
Look up Delta Airlines flight schedules, check real-time flight status, and retrieve detailed trip information to plan your travel. Find your nearest airport and access the data you need to monitor flights and make booking decisions.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
comedymothership.com API
Browse upcoming Comedy Mothership shows across different rooms, check real-time ticket availability, and get detailed information about Kill Tony events and seating options. Find venue details, FAQs, and track specific performances to plan your comedy night.
burningman.org API
Access comprehensive Burning Man information including Black Rock City event schedules, ticketing details, themed activities, playa events, volunteering opportunities, and mutant vehicle listings. Search global Burning Man events, stay updated with news and stories, and find preparation resources all in one place.
breckenridge.com API
Check real-time snow conditions, weather forecasts, lift operations, and trail status at Breckenridge Ski Resort to plan your day on the mountain. View live mountain cameras and get up-to-the-minute updates on slopes, lifts, and weather before you head out.
united.com API
Search United Airlines flights, check real-time flight status, and view detailed seat maps to plan your perfect trip. Compare fare options and use airport autocomplete to quickly find your departure and arrival cities.