Import Flights

Warning

A subscription is required for full access to the imported data. While the data will be imported, access will be limited until a subscription is purchased. Some advanced features are not available with the free plan.

Overview

The new Flight Import feature in MyFlightLife simplifies the process of bringing travel history into the app.

Import Flights by using JSON

Flights can be uploaded using a supported JSON format that includes key details like airports, dates, and flight segments.

Bulk Upload

Up to 1,000 flights or 10 files can be imported over the lifetime of an account, making it ideal for managing extensive travel records.

Support for "App in the Air" Files

Exported files from "App in the Air" are fully supported and can be uploaded directly into the app without any need for conversion to JSON format.

JSON Structure

Flight Information

ParameterTypeRequiredDescription
airportsArrayY

List of airports with their IATA codes and whether they were visited.

Example: { iata: "DUB", visited: true }

with_returnBooleanYIndicates if the flight includes a return trip.
departure_onStringY

ISO 8601 timestamp of the departure date and time.

Example: 2020-02-15T08:35:00.000Z

NOTE: Do not use a timezone designator and define dates as generic and timezone-agnostic.

return_onStringY

ISO 8601 timestamp of the return date and time.

Example: 2020-02-15T08:35:00.000Z

NOTE: For one-way flights, the return date should be the same as the departure date.

NOTE: Do not use a timezone designator and define dates as generic and timezone-agnostic.

Flight Details

ParameterTypeRequiredDescription
flight_typeIntegerY

Type of the flight (e.g., leisure, business, etc.).

Available "Flight Types" listed in "Import Codes / Mapping" section.

legsArrayY

Details of individual flight segments.

If legs data is not available, an empty array [] can be provided.

Flight Legs

Each element in the legs array describes a single flight segment

ParameterTypeRequiredDescription
orderIntegerY

The sequence of the flight segment in the overall trip.

Example: 0, 1, etc.

airline_mfl_idStringY

The unique IATA identifier for the airline.

If data is not available, null can be provided.

airplane_mfl_idStringY

The unique IATA identifier for the airplane model used.

If data is not available, null can be provided.

flight_numberStringY

The flight number assigned to this segment.

If data is not available, null can be provided.

airplane_numberStringY

A unique number identifying the airplane.

If data is not available, null can be provided.

seatStringY

The seat assigned for this segment (if available).

If data is not available, null can be provided.

seat_typeIntegerYType of seat (e.g., economy, business, etc.). Available "Flight Seat Types" listed in "Import Codes / Mapping" section.
flight_class_typeIntegerYClass of the flight segment. Available "Flight Classes" listed in "Import Codes / Mapping" section.

Import Codes / Mapping

Flight Types

IDLabelDescription
10LeisureFlights taken for vacations, personal travel, or recreational purposes.
20BusinessFlights taken for professional or work-related activities.
30CrewFlights logged as part of airline or aviation crew duties.
40PrivateFlights taken on private aircraft for personal or business use.

Flight Classes

IDLabelDescription
10EconomyStandard class offering basic seating and amenities.
20Premium EconomyAn upgraded class with more space and better services than Economy.
30Business ClassA premium class offering more comfort, better seating, and enhanced services.
40First ClassThe highest luxury class with exclusive seating and top-tier services.
50PrivateCustom flights on private aircraft with no shared seating.
60CrewFlights as a Crew Member.
90OtherAny class that doesn’t fit into the standard categories.

Flight Seat Types

IDLabelDescription
10WindowSeats located next to the aircraft window.
20MiddleSeats located between window and aisle seats.
30AisleSeats located next to the aisle for easy access.
40PrivateExclusive seating in private aircraft or sections.
50CrewSeats designated for airline or aviation crew members.
90OtherAny seat type that doesn’t fall into the standard categories.

JSON Example

[
    {
      "flight":{
        "airports":[
          {
            "iata":"DUB",
            "visited":true
          },
          {
            "iata":"JFK",
            "visited":true
          }
        ],
        "with_return":false,
        "departure_on":"2020-01-15T08:35:00.000Z",
        "return_on":"2020-01-15T08:35:00.000Z"
      },
      "details":{
        "flight_type":10,
        "legs":[]
      }
    },
    {
      "flight":{
        "airports":[
          {
            "iata":"DUB",
            "visited":true
          },
          {
            "iata":"AMS",
            "visited":true
          },
          {
            "iata":"KBP",
            "visited":true
          }
        ],
        "with_return":true,
        "departure_on":"2020-02-15T08:35:00.000Z",
        "return_on":"2020-02-18T21:35:00.000Z"
      },
      "details":{
        "flight_type":10,
        "legs":[
          {
            "order":0,
            "airline_mfl_id":"AA",
            "airplane_mfl_id":"777",
            "flight_number":"AA0000",
            "airplane_number":"AA1111",
            "seat":"1A",
            "seat_type":90,
            "flight_class_type":90
          },
          {
            "order":1,
            "airline_mfl_id":"AA",
            "airplane_mfl_id":"777",
            "flight_number":"AA0000",
            "airplane_number":"AA1111",
            "seat":"1A",
            "seat_type":90,
            "flight_class_type":90
          },
          {
            "order":2,
            "airline_mfl_id":"AA",
            "airplane_mfl_id":"777",
            "flight_number":"AA0000",
            "airplane_number":"AA1111",
            "seat":"1A",
            "seat_type":90,
            "flight_class_type":90
          },
          {
            "order":3,
            "airline_mfl_id":"AA",
            "airplane_mfl_id":"777",
            "flight_number":"AA0000",
            "airplane_number":"AA1111",
            "seat":"1A",
            "seat_type":90,
            "flight_class_type":90
          }
        ]
      }
    }
]

© 2025 myflight.life. All rights reserved. | Dublin, Ireland

made in 🍀 with ❤️ to ✈️