Airline


Retrieve Airline

POST/api/[...]/discord/airline

This endpoint allows you to retrieve airline information.

Supported Authentication Types

API TokenClient TokenGrant Token
YesYesNo

Response

{
    "status": "success",
    "request": {},
    "data": {
        "identifier": "HTA100",
        "name": "HTA",
        "prefix": "HTA",
        "iata_prefix": "HT",
        "slogan": "vAMSYS Testing VA",
        "website": "https://vamsys.co.uk",
        "register_link": "Not Set",
        "login_link": "Not Set",
        "support_url": null,
        "support_email": null,
        "logos": {
            "bright": "https://vamsys.io/assets/images/logo/vAMSYS-white-logo.png",
            "dark": "https://vamsys.io/assets/images/logo/vAMSYS-dark-logo.png"
        }
    }
}

Retrieve Airline Statistics

POST/api/[...]/discord/airline/statistics

This endpoint allows you to retrieve airline statistics.

Supported Authentication Types

API TokenClient TokenGrant Token
YesYesNo

Response

{
    "status": "success",
    "request": {},
    "data": {
        "latestPirep": {
            "id": 3959427,
            "createdAt": "2024-09-18 13:57:03",
            "airport": {
                "departure": {
                    "name": "Brussels Charleroi",
                    "icao": "EBCI",
                    "iata": "CRL"
                },
                "arrival": {
                    "name": "Madeira Funchal",
                    "icao": "LPMA",
                    "iata": "FNC"
                }
            },
            "points": {...},
            "flightTime": {
                "formatted": "03:17:12",
                "seconds": 11832
            },
            "performance": {...},
            "booking": {...},
            "acars": 4
        },
        "pireps": {
            "today": {
                "accepted": 158,
                "rejected": 0,
                "invalidated": 1,
                "manual": 25,
                "count": 184,
                "landingRate": -229,
                "fuelUsed": 2940856,
                "distanceFlown": 926273
            },
            "last24": {...},
            "yesterday": {...},
            "thirty": {...},
            "yearToDate": {...},
            "lastYear": {...},
            "allTime": {...}
        },
        "flightTime": {
            "today": {
                "formatted": "114:52:14",
                "raw": 413534
            },
            "last24": {...},
            "yesterday": {...},
            "thirty": {...},
            "yearToDate": {...},
            "lastYear": {...},
            "allTime": {...}
        },
        "points": {
            "today": {
                "regular": 15740,
                "bonus": 3303,
                "sum": 19043
            },
            "last24": {...},
            "yesterday": {...},
            "thirty": {...},
            "yearToDate": {...},
            "lastYear": {...},
            "allTime": {...}
        },
        "transport": {
            "today": {
                "passengers": 9830,
                "cargo": 72057
            },
            "last24": {...},
            "yesterday": {...},
            "thirty": {...},
            "yearToDate": {...},
            "lastYear": {...},
            "allTime": {...}
        },
        "pilots": {
            "today": {
                "new": 4,
                "deleted": 1
            },
            "last24": {...},
            "yesterday": {...},
            "thirty": {...},
            "yearToDate": {...},
            "lastYear": {...},
            "allTime": {...}
        },
        "generatedAt": "2024-09-18 14:00:41"
    }
}

Retrieve Live Flight Data

POST/api/[...]/discord/airline/active-flights

This endpoint allows you to retrieve active flights. It's the same set of data we use to draw maps on vAMSYS.io

Do note, v3 flight data is not returned.

Supported Authentication Types

API TokenClient TokenGrant Token
YesYesNo

Response

{
    "status": "success",
    "request": {},
    "data": {
        "flights": {
            "5291784": {
                  "bookingId": 5291784,
                  "phase": 4,
                  "pilot": {...},
                  "booking": {...},
                  "aircraft": {...},
                  "route": {...},
                  "departureAirport": {...},
                  "arrivalAirport": {...},
                  "progress": {
                    "routeDistance": 275,
                    "distanceRemaining": 234,
                    "departureTime": "18:26:00",
                    "timeRemaining": "00:34",
                    "estimatedArrivalTime": "19:43:00",
                    "currentPhase": "Climbing",
                    "groundSpeed": 411,
                    "magneticHeading": 167,
                    "altitude": 21041,
                    "location": {
                        "lat": "47.432112395628",
                        "lon": "16.599300215004"
                    },
                    "posreps": {...}
                    }
            }
            "5291785": {..},
            ...
        },
        "total": 158,
        "generatedAt": "2024-09-18 15:03:05"
    }
}