Welcome to the Flights Database API! This API provides aircraft mapping information for flight codes.
/api/aircraft
Returns all aircraft mappings in the database.
/api/aircraft
Returns aircraft mappings for specific flight codes.
Request Body:
{
"flightCodes": ["IC5302", "AI101", "6E1234"]
}
curl https://your-app.vercel.app/api/aircraft
curl -X POST https://your-app.vercel.app/api/aircraft \
-H "Content-Type: application/json" \
-d '{"flightCodes": ["IC5302", "AI101"]}'
{
"results": {
"IC5302": {
"aircraftType": "AT7",
"displayName": "ATR 72",
"manufacturer": "ATR"
},
"AI101": {
"aircraftType": "B788",
"displayName": "Boeing 787-8",
"manufacturer": "Boeing"
}
}
}
IC5302
- ATR 72AI101
- Boeing 787-86E1234
- Airbus A320SG123
- Boeing 737-800