ApiFlight
Get flight details
Get details of a specific flight by ID.
AuthorizationBearer <token>
Go to Settings
-> Security
and create a new API key. Use the generated key as the bearer token.
In: header
Path Parameters
idnumber
The ID of the flight to retrieve.
Response Body
curl -X GET "https://your-instance.com/api/flight/get/0"
{
"success": true,
"flight": {
"id": 1,
"from": {
"id": 42,
"icao": "KJFK",
"iata": "JFK",
"name": "John F Kennedy International Airport",
"lat": 40.639447,
"lon": -73.779317,
"type": "large_airport",
"continent": "NA",
"country": "US",
"tz": "America/New_York"
},
"to": {
"id": 42,
"icao": "KJFK",
"iata": "JFK",
"name": "John F Kennedy International Airport",
"lat": 40.639447,
"lon": -73.779317,
"type": "large_airport",
"continent": "NA",
"country": "US",
"tz": "America/New_York"
},
"departure": "2021-09-01T23:00:00.000+00:00",
"arrival": "2021-09-02T10:00:00.000+00:00",
"seats": [
{
"userId": "user1",
"guestName": null,
"seat": "aisle",
"seatNumber": "1A",
"seatClass": "economy"
}
],
"airline": "BAW",
"flightNumber": "BA178",
"aircraft": "A388",
"aircraftReg": "G-VIIL",
"flightReason": "leisure",
"notes": "This is a test flight."
}
}
{
"success": false,
"message": "Flight id is not a number"
}
{
"success": "false",
"message": "Unauthorized"
}
{
"success": "false",
"message": "Forbidden"
}
{
"success": "false",
"message": "string"
}
Edit on GitHub
Last updated on