✈️ Flights Database API

Welcome to the Flights Database API! This API provides aircraft mapping information for flight codes.

API Endpoints

GET
/api/aircraft

Returns all aircraft mappings in the database.

POST
/api/aircraft

Returns aircraft mappings for specific flight codes.

Request Body:

{
  "flightCodes": ["IC5302", "AI101", "6E1234"]
}

Example Usage

Get all aircraft:

curl https://your-app.vercel.app/api/aircraft

Get specific aircraft:

curl -X POST https://your-app.vercel.app/api/aircraft \
  -H "Content-Type: application/json" \
  -d '{"flightCodes": ["IC5302", "AI101"]}'

Sample Response

{
  "results": {
    "IC5302": {
      "aircraftType": "AT7",
      "displayName": "ATR 72",
      "manufacturer": "ATR"
    },
    "AI101": {
      "aircraftType": "B788",
      "displayName": "Boeing 787-8",
      "manufacturer": "Boeing"
    }
  }
}

Available Flight Codes


Privacy Policy