Public API

The Public API lets your airline show its own vAOMS data on its own website: a live flightboard or map, your pilot roster, your staff, your fleet with a page per aircraft, and headline totals. It can only read, never change anything, and it only returns what is listed on this page.


Your key

Every airline has its own key. Find it under Settings → Public API in your airline admin panel, along with the exact address to send requests to. You need the Manage Settings permission to see that page.

The key only tells vAOMS which airline's data to return, so it is safe to put in your website's code. If someone misuses it, use Generate new key on the same page: the old key stops working at once, so update your website straight away.

Making a request

Send the key in the X-VAOMS-Key header on every request. All endpoints are GET and return JSON.

const API_URL = 'https://…/v1'; // copy this from Settings → Public API
const API_KEY = 'your-key';

const response = await fetch(`${API_URL}/flights`, {
    headers: { 'X-VAOMS-Key': API_KEY },
});

const { data } = await response.json();

Requests from any website are allowed, so you can call the API straight from the visitor's browser.

Limits and refresh times

  • 60 requests per minute per key. Requests over that get a 429 response; wait a minute and try again.
  • Answers are refreshed every 10 minutes, except /flights, which is refreshed every 30 seconds. Asking more often than that returns the same answer, so poll /flights every 30–60 seconds at most.

Pilot privacy

  • Pilots are only ever shown by first name and pilot ID. Surnames, email addresses and VATSIM or IVAO IDs are never returned.
  • Any pilot can turn on Hide Me From the Airline Website in their Profile Settings. They are then left off /roster. Their flights still appear on /flights and in an aircraft's recent flights, but without a name or pilot ID.
  • Their flights still count towards /stats and an aircraft's totals, since those are only numbers.
  • Staff members marked as hidden in your staff list are left off /staff.

Endpoints

Endpoint Returns
GET /airline Your airline's name, prefix, slogan and links
GET /roster Accepted pilots, with rank, hours and flights
GET /staff Your staff list
GET /fleet Every aircraft in your fleet
GET /fleet/{registration} One aircraft, with its picture, location, totals and latest flights
GET /flights Flights in the air right now, with their position
GET /stats Totals for pilots, aircraft, flights and hours

Any value can be null when your airline has not filled it in.

GET /airline

{
    "data": {
        "name": "Example Air",
        "prefix": "EXA",
        "prefix_iata": "EX",
        "slogan": "Fly the friendly skies",
        "website": "https://example-air.com",
        "discord_url": "https://discord.gg/example",
        "forum_url": null,
        "launched_at": "2025-04-01"
    }
}

GET /roster

Sorted by pilot ID. status is active or inactive.

{
    "data": [
        {
            "pilot_id": "EXA0001",
            "first_name": "Sam",
            "hub": "EHAM",
            "rank": "Captain",
            "tier": "Gold",
            "hours": 412.5,
            "flights": 230,
            "joined_at": "2025-04-03",
            "status": "active"
        }
    ]
}

GET /staff

In the order set in your staff list.

{
    "data": [
        {
            "first_name": "Alex",
            "title": "Chief Executive Officer",
            "department": "Management",
            "image_url": "https://…/staff/alex.jpg",
            "is_owner": true
        }
    ]
}

GET /fleet

Sorted by registration. type is the aircraft type code.

{
    "data": [
        {
            "registration": "PH-EXA",
            "name": "City of Amsterdam",
            "type": "B738",
            "type_name": "Boeing 737-800",
            "passengers": 186
        }
    ]
}

GET /fleet/{registration}

One aircraft, by its registration. Upper or lower case both work, so /fleet/ph-exa finds PH-EXA. An unknown registration returns 404.

  • The image falls back to the aircraft type's image when the aircraft has none of its own.
  • status and location are only filled in when your airline uses Persistent Fleet State. status is one of Available, In Flight, Turnaround, Maintenance or Stored; location is the ICAO code of the airport the aircraft is at.
  • flights and hours count approved PIREPs only.
  • recent_flights lists the last 5 approved flights, newest first.
{
    "data": {
        "registration": "PH-EXA",
        "name": "City of Amsterdam",
        "type": "B738",
        "type_name": "Boeing 737-800",
        "passengers": 186,
        "manufacturer": "Boeing",
        "cargo": 2500,
        "image": "https://…/aircraft/ph-exa.jpg",
        "image_attribution": "Photo by Sam",
        "image_linkback": "https://example.com/photo",
        "status": "Available",
        "location": "EGLL",
        "flights": 128,
        "hours": 301.4,
        "recent_flights": [
            {
                "flight_number": "1234",
                "departure": "EHAM",
                "arrival": "EGLL",
                "pilot_first_name": "Sam",
                "pilot_id": "EXA0001",
                "landed_at": "2026-11-03T14:05:00.000000Z"
            }
        ]
    }
}

GET /flights

Every flight that sent a position in the last 2 minutes and has not shut down yet. Use it for a flightboard, or plot latitude and longitude on a map.

  • altitude is in feet, groundspeed in knots and heading in degrees true.
  • phase is one of Cockpit Prep/Boarding, Pushback, Taxi Out, Takeoff, Climb, Cruise, Descent, Approach, Final Approach, Landing or Taxi In.
{
    "data": [
        {
            "callsign": "EXA123",
            "flight_number": "1234",
            "departure": "EHAM",
            "arrival": "EGLL",
            "aircraft_type": "B738",
            "pilot_first_name": "Sam",
            "pilot_id": "EXA0001",
            "latitude": 52.1234,
            "longitude": 3.4567,
            "altitude": 36000,
            "groundspeed": 452,
            "heading": 254,
            "phase": "Cruise",
            "reported_at": "2026-11-03T13:21:40.000000Z"
        }
    ]
}

GET /stats

flights and hours count approved PIREPs only.

{
    "data": {
        "pilots": 312,
        "aircraft": 48,
        "flights": 18240,
        "hours": 41873.2
    }
}

Errors

Status Body Meaning
401 {"status": 401, "message": "MISSING_API_KEY"} No X-VAOMS-Key header was sent
401 {"status": 401, "message": "INVALID_API_KEY"} The key is wrong, or was replaced with a new one
404 {"message": "Not Found."} No such endpoint, or no aircraft with that registration
405 — Something other than GET was sent
429 — More than 60 requests in a minute

Related guides