# Introduction

The aviowiki REST API gives access to all static and dynamic data stored in our database.

The base path of all endpoints is `https://api.aviowiki.com`.\
TLS (HTTPS) is required to access all resources.&#x20;

Throughout the documentation, we will give examples of requests using [cURL](https://curl.haxx.se/).

### Quick Start

To get you started, we’ll try a super easy search function using one of our *Free Endpoints*.

This code will retrieve a list of airports that match the search query “Los Angeles”.

```bash
curl -X GET \
"https://api.aviowiki.com/free/airports/search?query=London"
```

{% content-ref url="/pages/-MSI4r5osHHe0E79TPWr" %}
[Limitations](/free-endpoints/limitations)
{% endcontent-ref %}

### Testing environment

aviowiki offers a testing environment that can be accessed by customers and prospect customers to test their integration, including contribution to aviowiki, without affecting Production data.

Our Test environment also has a [frontend](https://testapp.aviowiki.com) associated, which can be used to visually check the data transacted on the API.

The base path for the Test environment is `https://testapi.aviowiki.com`.

Access to this environment is free of charge. To request access please[ send us an email](mailto:support@aviowiki.com?subject=Test%20environment%20access%20request\&body=Good%20day%2C%0AI%20would%20like%20to%20request%20access%20to%20your%20Test%20environment.%0AI%20would%20like%20to%20use%20aviowiki%20to%20%5Badd%20your%20use%20case%5D.%0A%0ABest%20regards%2C%0A).

{% hint style="danger" %}
Data in the Test environment is not intended for use in any production environment. Data in this environment is not verified by our Data team and can be incorrect, and incomplete.
{% endhint %}

{% hint style="warning" %}
Data in the Test environment is not a reflection of the data available in our Production environment. For any qualitative or quantitative assessment of the data available in production, please [send us an email](mailto:support@aviowiki.com?subject=Data%20quality%20assessment\&body=Good%20day%2C%0AI%20would%20like%20to%20receive%20more%20details%20about%20the%20quality%20and%20coverage%20of%20your%20data.%0AI%20would%20like%20to%20use%20aviowiki%20to%20%5Badd%20your%20use%20case%5D.%0A%0ABest%20regards%2C%0A).
{% endhint %}


# Authentication

In order to access Authenticated endpoints and to bypass the limitations of the rate-limiting imposed on Free Endpoints, calls need to be authenticated using an [API Token](/authentication/api-tokens).

Before an [API Token](/authentication/api-tokens) can be issued, a [User](/authentication/users) needs to be created, either via the web frontend, or via the API.

Authentication is obtained by passing the [API Token](/authentication/api-tokens) as `authorization` Header with type `Bearer`.

```
curl --request GET \
  --url 'https://testapi.aviowiki.com/airports/search?query=London' \
  --header 'Authorization: Bearer 8320d910-ec23-46ea-beda-a9015ea05871'
```

{% hint style="info" %}
Whenever in this documentation we demonstrate API calls using cURL that require authentication, we will use randomly generated API Tokens that do not correspond to any user in our system and will return an error `403` if used against our system.
{% endhint %}


# Users

aviowiki has an internal User management system that performs the functions of Authentication and Authorisation, as well as other administrative functions.

[API Tokens](/authentication/api-tokens) are issued for and assigned to a specific User, and follow the same [Authorisation](/authentication/authorisation) rules as the User who owns them.

Users are identified internally by their User [AID](/conventions/aviowiki-ids), with namespace `USR`. For example `USR-AA11-22BB`.

When creating an account, users are required to provide a `login` and `password` .

`login` should be in the form of an email address.&#x20;

`password` doesn't have any specific level of complexity required, however we **strongly** encourage people to be responsible with their passwords.\
If you need to have a memorable password (one you can remember without the help of a [Password Manager](https://en.wikipedia.org/wiki/Password_manager), consider using a [passphrase](https://en.wikipedia.org/wiki/Passphrase) which is [easy to remember, but difficult to guess](https://xkcd.com/936/).\
However the cases in which you really need to use a memorable password are nowadays quite limited. We always recommend to use a [Password Manager](https://en.wikipedia.org/wiki/Password_manager) where possible.

### User object

When retrieving information about a user from the API, you will receive a user object which follows the structure shown below:

```
{
  "aid": "USR-AA11-22BB",
  "name": "Demo User",
  "login": "demo@example.com",
  "password": null,
  "roles": [
    "USER"
  ],
  "reward": 0
}
```

`aid` indicates the [AID](/conventions/aviowiki-ids) of the user.

`name` is a plaintext name that the user chose at the time of sign-up.

`login` the login credential to authenticate the user.

`password` is always returned `null` in all responses.

`roles` is a list of [Authorisation roles](/authentication/authorisation) assigned to the user.

`reward` is the total count of [reward points](/reward-points) collected by the user.

For more user actions see:

{% content-ref url="/pages/-MSKFx3qkk6\_W0IW3VzG" %}
[Broken mention](broken://pages/-MSKFx3qkk6_W0IW3VzG)
{% endcontent-ref %}


# API Tokens

API Tokens are strings that allow to authenticate API calls.

### Format

They are issued and used in the form of UUID represented in [canonical format](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format), for example `123e4567-e89b-12d3-a456-426614174000`.

### Usage

API Tokens should be used with bearer authentication. They need to be passed with the request as `authorization` Header with type `Bearer`.

For example:

```bash
curl --request GET \
  --url 'https://testapi.aviowiki.com/airports/search?query=London' \
  --header 'Authorization: Bearer 123e4567-e89b-12d3-a456-426614174000'
```

### API Token types

There are two types of API Tokens, `API` or `API_FREE`.

`API_FREE` tokens allow access only to [Free Endpoints](/free-endpoints/limitations), without rate limitations. \
Such Tokens can be issued autonomously by every user as they do not require any contractual agreement in place, other than accepting the regular [Terms and Conditions](https://www.aviowiki.com/terms/).

`API` tokens allow access to all endpoints.\
At the moment, these Tokens can only be issued by an aviowiki administrator, and an agreement need to be signed between the User and aviowiki. Please [get in touch](mailto:hello@aviowiki.com) if you require an `API` token.


# Authorisation

1. General
2. List of roles and their uses
3. how to request a change in role

All [API Tokens](/authentication/api-tokens) are associated with a [User](/authentication/users) and follow the same authorisation limitations as the associated User.

Authorisation roles available to a specific user are listed in the `roles` property of the [User](/authentication/users) object.

Newly created users always have role `USER` associated.

Some functionalities of our API require additional levels of authorisation. For example, to retrieve the position of an aircraft.

### Available Roles

| Role Name           | Access allowed                                                                                   |
| ------------------- | ------------------------------------------------------------------------------------------------ |
| `USER`              | All basic functionalities, except for functionalities that require a specific role listed below. |
| `AIRCRAFT_POSITION` | Allows access to endpoints in the `/aircraft` namespace.                                         |
| `ADMIN`             | aviowiki administrators.                                                                         |


# Conventions


# Data format

All data exchanged with the aviowiki API, both as part of a request’s body or of a reply’s body, are formatted using [JSON](https://www.json.org/json-en.html).

You can find full details on individual objects in the Data Models section.

### Units of measure

Aviowiki mostly uses the [International System of Units](https://en.wikipedia.org/wiki/International_System_of_Units) for data served via the API.

The main deviation from this is the use of Celsius Degrees in place of Kelvin, for temperatures. This minor variation reflects the more operational use of our data, as compared to the scientific focus of the ISU.

As a general overview, these are the units of measurement used for different use cases:

| Measure          | Unit            |
| ---------------- | --------------- |
| Length           | Metres          |
| Mass             | Kilos           |
| Temperature      | Celsius degrees |
| Coordinates      | Decimal degrees |
| Horizontal Speed | Metres/Second   |
| Vertical Speed   | Metres/Second   |

For full details about the format of each field, refer to the definition in the relevant data model.


# aviowiki IDs

Every object represented in our database, which is individually addressable, is assigned a unique identifier that we call **AID**, or **aviowiki ID**.

![Composition of the AIDs](/files/-MSOVVm9qM9SmZVpOqig)

AIDs are formed of two parts: the namespace (A) and the identifier (B).

The **namespace** is a way to quickly determine what type of object an AID refers to. For example, AIDs starting with `APT` refer to an airport, while those starting with `RWY` refer to a runway. A list of the namespaces used can be found [at the bottom of this page](#undefined).

The **identifier** is a unique combination of eight letters or numbers, all capital (in Regular Expression:`[0-9A-Z]`).

Every namespace, therefore, allows a total amount of 2,821,109,907,456 addressable objects.

To avoid confusion and improve readability we follow these rules when displaying AIDs:

* Always use block capital letters
* Use a font type that makes easy distinctions between similar characters, like the number zero and the letter O
* Separate the namespace portion from the identifier with a dash
* Break down the identifier portion with a dash after 4 characters

### List of namespaces used

| Namespace | Object                                                                      |
| --------- | --------------------------------------------------------------------------- |
| USR       | [User](/authentication/users)                                               |
| APT       | [Airport](/data-models/airport)                                             |
| RWY       | [Runway](/data-models/runway)                                               |
| ACF       | Aircraft                                                                    |
| PRV       | [Provider](/data-models/provider)                                           |
| RGN       | [Region](/data-models/region)                                               |
| ONA       | [Airport Operational Note](/data-models/operational-note/operational-notes) |
| ONC       | Country Operational Note                                                    |
| ONR       | Region Operational Note                                                     |
| PVP       | Provider Product                                                            |
| FPR       | Fuel Product                                                                |
| FCO       | Fuel Cost                                                                   |
| FIL       | File Reference                                                              |
| RAU       | Region Authority                                                            |
| RAC       | Region Authority Contact                                                    |
| AAU       | [Airport Authority](/data-models/authority#airport-authority)               |
| AAC       | Airport Authority Contact                                                   |
| CAU       | [Country Authority](/data-models/authority#country-authority)               |
| CAC       | Country Authority Contact                                                   |


# Pagination

Many endpoints in aviowiki return a large list of results. To facilitate navigation through these, as well as providing a mechanism for lazy loading, such endpoints return a Paged List.

Paged Lists divide the results into pages. Each page has a `number`, which is its index starting from `0`, and a certain `size`, which is the number of results in that page.

To simplify calculations and evaluation of Paged Lists, the `totalPages` and `totalResults` properties are also provided. Respectively they indicate how many pages in total exist and how many results are available.

It is worth noting that the `number` of the last page is always equal to `totalPage - 1`. This is because `number` starts counting from `0`.

The list of results in a Paged List is contained in the property `content`.

### Example

```
{
  "page": {
    "number": 0,
    "size": 10,
    "totalPages": 3,
    "totalResults": 26
  },
  "content": [...]
}
```


# Errors

{% hint style="warning" %}
This page is under construction. Please consult the [legacy documentation](https://www.aviowiki.com/docs/airports/data-models/error/) on our website.
{% endhint %}


# Reward Points

For every contribution that users send to aviowiki, users are awarded a certain amount of Reward Points. One point is accrued for every field that is verified and accepted by our Data Team.

Users can check their accrued Reward Points on the web app by going to the [Menu > User Profile > General](https://app.aviowiki.com/user).


# Introduction

At aviowiki we believe that certain public institutions should provide openly accessible aviation data free of charge.

They are not doing it.

This is our way to give back to the Industry.

Our Open Data contains basic but necessary information about all airports in our database. It is the most complete professional aviation database that you can find on the internet.

### Open Data is free

You don't need to pay anything to access our Open Data.

### Open Data is easy

You can retrieve our Open Data via the API using a [free API token](https://app.aviowiki.com/user/tokens), or by making unauthenticated API calls.

Check all details in the [Free Endpoints](/free-endpoints/limitations) section of this documentation.

We also offer a convenient download of the full Open Data set. This is updated every 24 hours and it is a mere 8MB.

You can download this set from <https://exports.aviowiki.com/free_airports.json.zip>

Or in a command line, type:

```bash
curl -O https://exports.aviowiki.com/free_airports.json.zip
```

### How can I use it

Open Data is licensed under the Creative Common License with Attribution 4.0 International (CC BY 4.0).

Full terms of the license can be accessed at <https://creativecommons.org/licenses/by/4.0/>

<img src="/files/nN9wTIRtY5dXoKk7paxt" alt="" data-size="line">


# Definition

The following properties are defined as "*Open Data*" regardless of how they are retrieved.

For example, if you are a customer paying for our premium data, using the following properties will fall under the license of Open Data.

<table data-header-hidden><thead><tr><th>Property</th><th width="229.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>Property</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td><code>aid</code></td><td>string</td><td>A string with the AID of the airport, with <code>APT</code> as namespace</td></tr><tr><td><code>icao</code></td><td>string, <code>null</code></td><td>A string with the 4-letters <a href="https://en.wikipedia.org/wiki/ICAO_airport_code">ICAO code</a> of the airport, or<code>null</code> if none is assigned</td></tr><tr><td><code>iata</code></td><td>string, <code>null</code></td><td>A string with the 3-letters <a href="https://en.wikipedia.org/wiki/IATA_airport_code">IATA code</a> of the airport, or <code>null</code> if none is assigned.</td></tr><tr><td><code>faa</code></td><td>string, <code>null</code></td><td>A string with the <a href="https://en.wikipedia.org/wiki/Location_identifier#FAA_identifier">FAA code</a>, or <code>null</code> if none is assigned.</td></tr><tr><td><code>coordinates</code></td><td>object, <code>null</code></td><td>A Coordinates object which represents the location of the <a href="https://en.wikipedia.org/wiki/Airport_reference_point">Aerodrome Reference Point</a>.<br>This is <code>null</code> when the information is not known.</td></tr><tr><td><code>country</code></td><td>object, <code>null</code></td><td>A Country object which represents the country at which an airport is located.<br><code>null</code> if this is not known.</td></tr><tr><td><code>timeZone</code></td><td>string, <code>null</code></td><td>The timezone of the airfield as noted in the <a href="https://en.wikipedia.org/wiki/Tz_database">IANA Time Zone Database</a>.<br><code>null</code> indicates that this information is not available.</td></tr><tr><td><code>name</code></td><td>string, <code>null</code></td><td>The name of the airport. This should be the official name of the airport written in Latin characters.</td></tr><tr><td><code>servedCity</code></td><td>string, <code>null</code></td><td>A string containing the name of the city served by the airport. In some countries, like the USA, this includes the state. For example: <code>Los Angeles, CA</code>.<br>This is <code>null</code> when the information is not known.</td></tr></tbody></table>


# Airport

Airports are root objects, meaning it does not have a parent object.

AIDs identifying airports have `APT` as their namespace.

An airport identifies a landing site, regardless of its form, usage or amount of traffic. For example, a heliport next to a hospital will be modelled by an Airport object.

Separate landing surfaces within the same establishment, for example, different runways or helipads within the same airport, are identified as [Runways](/data-models/runway), not as separate Airports.

Below is a description of all properties of the Airport object:

| **Property**                                                                                                       | **Type**        | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aid`                                                                                                              | string          | A string with the AID of the airport, with `APT` as namespace                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `icao`                                                                                                             | string, `null`  | A string with the 4-letters ICAO code of the airport, or`null` if none is assigned                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `iata`                                                                                                             | string, `null`  | A string with the 3-letters IATA code of the airport, or `null` if none is assigned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><code>faa</code><br><span data-gb-custom-inline data-tag="emoji" data-code="26a0">⚠️</span>Being deprecated</p> | string, `null`  | A string with the FAA code, or `null` if none is assigned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `localIdentifier`                                                                                                  | string, `null`  | <p>An identifier issued by the local authority, which is not recognised as an official ICAO or IATA code.<br>The name of the code for each country can be found in Country.<code>localIdentifierName</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `coordinates`                                                                                                      | object, `null`  | <p>A <a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a> object which represents the location of the <a href="https://en.wikipedia.org/wiki/Airport_reference_point">Aerodrome Reference Point</a>.<br>This is <code>null</code> when the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `elevation`                                                                                                        | number, `null`  | <p>A decimal number representing the elevation of the airport expressed in meters. Two decimal positions are provided, for precise conversion to feet.<br><br>This is <code>null</code> when the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `variation`                                                                                                        | number, `null`  | <p>A decimal number representing the <a href="https://en.wikipedia.org/wiki/Magnetic_declination">magnetic variation</a> at the airport. This is expressed in degrees, with two decimal positions. Positive for East variation and Negative for West variation.<br>This is <code>null</code> when the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `country`                                                                                                          | object          | A [Country](/data-models/country) object which represents the country at which an airport is located.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `timeZone`                                                                                                         | string, `null`  | <p>The time-zone of the airfield as noted in the <a href="https://en.wikipedia.org/wiki/Tz_database">IANA Time Zone Database</a>.<br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `name`                                                                                                             | string          | The name of the airport. This should be the official name of the airport written in Latin characters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `servedCity`                                                                                                       | string, `null`  | <p>A string containing the name of the city served by the airport.</p><p><br>This is <code>null</code> when the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `servedCityGoverningDistrict`                                                                                      | string, `null`  | <p>A <a href="/pages/-MUP3MbAxRd8xQy0tsME">Governing District</a> object indicating the Governing District of the <code>servedCity</code>.</p><p></p><p>This is <code>null</code> when the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `administrativeCity`                                                                                               | string, `null`  | <p>A String containing the name of the city where the airport is situated (not the major city that it serves, as in <code>servedCity</code>)</p><p></p><p>This is <code>null</code> when the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `administrativeCityGoverningDistrict`                                                                              | string, `null`  | <p>A <a href="/pages/-MUP3MbAxRd8xQy0tsME">Governing Distric</a> object indicating the Governing District of the <code>administrativeCity</code>.</p><p></p><p>This is <code>null</code> when the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `type`                                                                                                             | string, `null`  | <p>A string that describes the type of airport. Possible values are:</p><ul><li><code>AIRPORT</code> a defined area, often certified by a local authority, with infrastructure to support commercial operations, and at least one runway in service.</li><li><code>HELIPORT</code> a location uniquely designated to the operation of helicopters or other <a href="https://en.wikipedia.org/wiki/VTOL">VTOL aircraft</a>.</li><li><code>AIRSTRIP</code> an area prepared for the operation of aircraft. This differs from <code>AIRPORT</code> in that the quality of the landing surface and surrounding infrastructure may not be guaranteed, surveyed or certified by a suitable authority.</li><li><code>WATER</code> a site used by aircraft on floats. This may be defined by buoys or other markings, or not.</li></ul><p><code>null</code> indicates that the information is not known.</p>                                                                                                                                                                                                                                                                            |
| `operator`                                                                                                         | string, `null`  | <p>A string that identifies the type of operator that runs the airport. Possible values are:</p><ul><li><code>PUBLIC</code> an airport that is operated by a governmental body or by a private or public company on behalf of a governmental body, in the public interest (i.e. London Heathrow).</li><li><code>PRIVATE</code> an airport that is operated by an individual or a company, for revenue or not, where there is no involvement of public bodies in the decision making.</li><li><code>MILITARY</code> an airport that is operated by a military or paramilitary entities, such as Air Force, Army, Coast Guard, State Police, etc. Access to such airport may be granted under rules set by the operating entity.</li><li><code>JOINT</code> an airport that is at least in part operated by a military or paramilitary body. The aerodrome may have a dedicated military side, or military interests in other forms, like training grounds.</li></ul><p><code>null</code>  indicates that the information is not known.</p>                                                                                                                                       |
| `accessibleFor`                                                                                                    | list, `null`    | <p>A list of strings that identifies what type of traffic has access to the airport.<br><br>This is <code>null</code> when the information is not known.<br><br>Each element of the list is a string of possible value:</p><ul><li><code>SCHEDULED</code> Civil flights of a scheduled nature. Usually notified to Air Traffic Control with ICAO flightplan of type <code>S</code></li><li><code>NON\_SCHEDULED</code> Civil flights of non-scheduled commercial nature. Usually notified to Air Traffic Control with an ICAO flightplan of type <code>N</code>.</li><li><code>GENERAL\_AVIATION</code> Civil flights of a private nature. Usually notified to Air Traffic Control with an ICAO flightplan of type <code>G</code>.</li><li><code>TRAINING</code> Civil flights performed for training.</li><li><code>BUSINESS\_AVIATION</code> Civil flights of a private or commercial nature. These are usually operated with aircraft of any type or size, but generally in configurations of less than 19 passengers.</li><li><code>MILITARY</code> Any type of military traffic.</li><li><code>HELICOPTER</code> Any type of flight operated by a VTOL aircraft.</li></ul> |
| `ifr`                                                                                                              | boolean, `null` | <p>Indicates if the airport is capable and authorised to accept flights operating under Instrument Flight Rules.<br><br><code>true</code> if IFR flights are accepted, <code>false</code> otherwise.<br><br><code>null</code> if the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `mandatoryHandling`                                                                                                | boolean, `null` | <p>Indicates if local regulations mandate that visiting aircraft utilise a ground handling company.<br><br><code>true</code> if the use of a ground handling company is mandated, <code>false</code> otherwise.<br><br><code>null</code> if the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `mandatoryQualification`                                                                                           | boolean, `null` | <p>Indicates if local regulations mandate that pilots are qualified before operating at the airport.<br><br><code>true</code> if pilots require a qualification, <code>false</code> otherwise.<br><br><code>null</code> if the information is not known.<br><br>When this property is <code>true</code>, the properties <code>qualificationLink</code> and <code>qualificationNotes</code> may contain additional information.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `qualificationLink`                                                                                                | string, `null`  | <p>A URL that points to a page explaining the process for pilots to obtain the qualification required to operate at the airport.<br><br><code>null</code> indicate that this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `qualificationNotes`                                                                                               | string, `null`  | <p>Free-text notes about the mandatory qualification that must be obtained before operating at the airport.<br><br><code>null</code> if this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `nonScheduledPermission`                                                                                           | string, `null`  | <p>Indicates what kind of permission is required for non-scheduled flights (of either a private or commercial nature) to operate on the airport.<br>Possible values are:</p><ul><li><code>NONE</code> if no permission is required</li><li><code>UNAVAILABLE</code> if the airfield is not available for non-scheduled traffic.</li><li><code>PPR</code> if permission is required, and once obtained it does not restrict the aircraft to operate at a certain time during the day.</li><li><code>SLOT</code> if permission is requires, and once obtained it does restrict the aircraft to operate at a certain time, for which the permission was issued.</li></ul><p><code>null</code> indicates that this information is not available.<br><br>If this property is not <code>null</code> additional information may be available in the <code>nonScheduledPermissionNotes</code> property.</p>                                                                                                                                                                                                                                                                             |
| `nonScheduledPermissionNotes`                                                                                      | string, `null`  | Free text with an explanation of the permission that needs to be obtained by non-scheduled flights to operate.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `paxLimit`                                                                                                         | number, `null`  | <p>The maximum number of passengers seats allowed for each aircraft operating at the airfield.<br><br>When this is set to <code>999</code> there are no restrictions imposed.<br><br><code>null</code> indicates that the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `weightLimit`                                                                                                      | number, `null`  | <p>The highest MTOM (Maximum Take-off Mass, or Weight) allowed for an aircraft operating at the airfield.<br>Values are expressed in Kilos.<br><br>When this is set to <code>9999999</code> there are no restrictions imposed.<br><br><code>null</code> indicates that the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `wingspanLimit`                                                                                                    | number, `null`  | <p>The largest wingspan allowed for an aircraft operating at the field.<br>Values are expressed in meters.<br><br>When this is set to <code>999</code> there are no restrictions imposed.<br><br><code>null</code> indicates that the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `referenceWeatherStation`                                                                                          | string, `null`  | <p>If an airfield is known to not publish weather reports, or if the weather reports are not published 24h a day, the identifier of a different location can be specified here to indicate which nearby station best describes the weather conditions at the airfield.<br><br>The value of this field is the AID of a nearby airport that is known to issue weather reports 24h a day.<br><br><code>null</code> indicates that this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |


# Authority

Authorities represent institutions that have some sort of power on an [Airport](/data-models/airport), [Country](/data-models/country) or [Region](/data-models/region).

These could be, for example, the Airport Operator, or a Country's [Civil Aviation Authority](https://en.wikipedia.org/wiki/National_aviation_authority).

Depending on whether an Authority depends on an Airport, Country or Region, different values are available for some of its properties.

### Common properties

| Property | Type   | Description                                                                                                                                                                                                                                                                                                                                       |
| -------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name     | string | A free-text name for this Authority                                                                                                                                                                                                                                                                                                               |
| type     | string | <p>The type of Authority, based on its parent entity.</p><ul><li><code>AIRPORT</code> for <a href="/pages/-MUPsaZXrb3NHiz3Xb6p#airport-authority">Airport Authority</a></li><li><code>COUNTRY</code> for <a href="/pages/-MUPsaZXrb3NHiz3Xb6p#country-authority">Country Authority</a></li><li><code>REGION</code> for Region Authority</li></ul> |

### Airport Authority

Airport Authorities represent Authorities that have jurisdiction over an Airport.

In addition to the Common Properties, they have the following properties and possible values

| Property         | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aid`            | String | The [AID](/conventions/aviowiki-ids) with namespace `AAU`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `type`           | String | <p>The type of authority represented.<br>Possible values are:</p><ul><li><code>OWNER</code> The Airport owner or their representative. </li><li><code>OPERATOR</code> A body that has the operational responsibility of the Airport.</li><li><code>CUSTOMS</code> A body that is charged with Customs procedures at the Airport.</li><li><code>HEALTH</code> A body that is charged with Health, and Quarantine procedures at the Airport.</li><li><code>BRIEFING</code> For the Aerodrome's briefing office.</li><li><code>REPORTING</code> For the <a href="https://ext.eurocontrol.int/lexicon/index.php/Air_traffic_services_reporting_office">ATS Reporting Office</a> (ARO).</li><li><code>WEATHER</code> For the Aerodrome Metererological Observation Office.</li><li><code>AIR\_TRAFFIC</code> For any entity providing Air Traffic Services on the Airport.</li><li><code>SECURITY</code> For entities providing landside and airside security.</li><li><code>FIRE</code> For the <a href="https://www.skybrary.aero/index.php/Rescue_and_Fire_Fighting_Services">Aircraft Rescue and Fire-Fighting Services</a> (ARFF)</li></ul> |
| `landsideArea`   | List   | <p>A list of <a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a> that identify the landside area where the Authority is located, for example their offices.<br></p><p>Defaults to <code>null</code> if the information is not known.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `airsideArea`    | List   | <p>A list of <a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a> that identify the airside area where the Authority is located, for example a dedicated ramp space for customs clearance.<br><br>Defaults to <code>null</code> if the information is not know</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `parent`         | String | An [Airport](/data-models/airport) AID for the parent Airport.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `customsDetails` | Object | <p>This additional property is present for Airport Authorities of <code>type</code> <code>CUSTOMS</code>, which are discussed further in <a href="/pages/-MUPsaZXrb3NHiz3Xb6p#customs-authority">Customs Airport Authority</a>.<br><br>Defaults to <code>null</code> if the information is not know</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

### Customs Airport Authority

These are [Airport Authorities](/data-models/authority#airport-authority) of `type` `CUSTOMS`, for which some additional properties are specified.

The additional properties are useful to programmatically assess the feasibility of entry into a country at a specific Airport, based on the flight routing, persons' nationality and Visa types.

These properties are found in the `customsDetails` object of an [Airport Authority](/data-models/authority#airport-authority).

{% hint style="warning" %}
In most countries, the eligibility of a person to enter the country depends on the assessment of the Border Officer that processes the entry.

Information in our database are purely for reference purpose, and Aircraft Operators, Crew Members and Passengers should assess their individual status before attempting to enter a country.
{% endhint %}

| Property                       | Type         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `allowFlightsFromCountries`    | list, `null` | A list of [Countries](/data-models/country) from which flights are allowed to be cleared by Customs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `allowFlightsFromRegions`      | list, `null` | A list of [Regions](/data-models/region) from which flights are allowed to be cleared by Customs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `allowCrewFromCountries`       | list, `null` | A list of [Countries](/data-models/country) from which crew members are allowed to be cleared by Customs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `allowCrewFromRegions`         | list, `null` | A list of [Regions](/data-models/region) from which crew members are allowed to be cleared by Customs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `allowPassengersFromCountries` | list, `null` | A list of [Countries](/data-models/country) from which passengers are allowed to be cleared by Customs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `allowPassengersFromRegions`   | list, `null` | A list of [Regions](/data-models/region) from which passengers are allowed to be cleared by Customs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `services`                     | list, `null` | <p>A list of services provided by the Customs Authority at this Airport. Possible values are:</p><ul><li><code>INTERNATIONAL\_RUBBISH</code> For the disposal of rubbish originated internationally.</li><li><code>AGRICULTURE\_CHECK</code> For any <a href="https://en.wikipedia.org/wiki/Sanitary_and_phytosanitary_measures_and_agreements">phytosanitary</a> check available.</li><li><code>PAYMENT\_OF\_FEES</code>For the payment of any customs fee on arrival.</li><li><code>CREW\_VISA\_ON\_ARRIVAL</code>For the ability to obtain a crew visa upon arrival.</li><li><code>PAX\_VISA\_ON\_ARRIVAL</code>For the ability to obtain a passenger visa upon arrival.</li></ul> |
| `visaProcessed`                | list, `null` | <p>A list of visa types that can be processed at this location. Possible values are:</p><ul><li><code>CREW</code> For visas dedicated to crew members.</li><li><code>IMMIGRANT</code> For visas intended for immigration purposes.</li><li><code>NON\_IMMIGRANT\_WORK</code>  For visas that allow temporary work in the country.</li><li><code>TOURISM</code> For visas that allow temporary stay for leisure.</li><li><code>ELECTRONIC</code> For any type of electronic visa and travel authorities.</li><li><code>DIPLOMATIC</code> For diplomatic visas and other diplomatic authorities.</li></ul>                                                                              |

### Country Authority

These are Authorities that have jurisdiction over an entire [Country](/data-models/country).

Below are additional properties to the [common properties](/data-models/authority#common-properties) already described above.

| Property | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| -------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aid`    | string | The [AID](/conventions/aviowiki-ids) in namespace `CAU`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `type`   | string | <p>The type of Country Authority being described. Possible values are:</p><ul><li><code>CIVIL\_AVIATION</code> The entity responsible for <a href="https://en.wikipedia.org/wiki/National_aviation_authority">Civil Aviation</a> regulation in the country.</li><li><code>MILITARY\_AVIATION</code> The entity responsible for Military Aviation regulation in the country, or for Civil Aviation approvals that require Military clearance.</li><li><code>AIR\_TRAFFIC</code> The entity responsible for the Air Traffic Services in the Country.</li><li><code>LICENSING</code> The entity responsible for crew, aircraft and operators licensing in the country.</li><li><code>LANDING\_RIGHTS</code> The entity responsible to authorise operations of foreign aircraft in the country.</li><li><code>HEALTH</code> The entity charged with Health, and Quarantine procedures in the Country.</li><li><code>CUSTOMS</code> The entity charged with Customs procedures in the Country.</li><li><code>IMMIGRATION</code> The entity charged with immigration approvals in the Country.</li></ul> |
| `parent` | object | A [Country](/data-models/country) object for the parent Country.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

### Region Authority

These are Authorities that have jurisdiction over an entire [Region](/data-models/region).

Below are additional properties to the [common properties](/data-models/authority#common-properties) already described above.

| Property | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| -------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aid`    | string | The [AID](/conventions/aviowiki-ids) in namespace `RAU`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `type`   | string | <p></p><p>The type of Country Authority being described. Possible values are:</p><ul><li><code>CIVIL\_AVIATION</code> The entity responsible for <a href="https://en.wikipedia.org/wiki/National_aviation_authority">Civil Aviation</a> regulation in the region.</li><li><code>MILITARY\_AVIATION</code> The entity responsible for Military Aviation regulation in the region, or for Civil Aviation approvals that require Military clearance.</li><li><code>AIR\_TRAFFIC</code> The entity responsible for the Air Traffic Services in the region.</li><li><code>LICENSING</code> The entity responsible for crew, aircraft and operators licensing in the region.</li><li><code>LANDING\_RIGHTS</code> The entity responsible to authorise operations of foreign aircraft in the region.</li><li><code>HEALTH</code> The entity charged with Health, and Quarantine procedures in the region.</li><li><code>CUSTOMS</code> The entity charged with Customs procedures in the region.</li><li><code>IMMIGRATION</code> The entity charged with immigration approvals in the region.</li></ul><p></p> |
| `parent` | object | A [Region](/data-models/region) object for the parent Region.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |


# Availability

## Availability

The Availability model provides information about the availability of the Location for aircraft movements, Aerodrome Rescue and Fire Fighting service, Aerodrome Air Traffic Services and Customs and Immigration facilities.

In the aviowiki API the following naming is used to identify these separate services:

* `movement` for the availability of the location for take-off and landing without any further guarantee of service
* `arff` for Aerodrome Rescue and Fire Fighting services
* `atc` for Air Traffic Services
* `ciq` for Customs, Immigration and Quarantine facilities

### Example <a href="#example" id="example"></a>

A query for the availability of a Location will return the following JSON data:

```
{
  "openingIndicator": "SEE_TIMES",
  "arff": [
    {
      "validFrom": "2021-05-17T00:00:00",
      "validTo": "2021-05-17T23:59:59.999999999",
      "status": "FULL",
      "info": {
        "icaoCatAirplane": "VIII",
        "faaCatAirplane": null,
        "faa139Certified": null,
        "catHelicopters": null,
        "waterQuantity": null,
        "complementaryQuantity": null,
        "arffVehicles": null,
        "dischargeCapacity": null,
        "extensionAvailable": null,
        "extensionNotice": null,
        "extensionUpToIcao": null,
        "firestationRemote": null,
        "firestationNotes": null
      }
    }
  ],
  "atc": [
    {
      "validFrom": "2021-05-17T00:00:00",
      "validTo": "2021-05-17T23:59:59.999999999",
      "status": "FULL",
      "info": {
        "enRtfAvailable": true,
        "afisOnly": false
      }
    }
  ],
  "ciq": [
    {
      "validFrom": "2021-05-17T00:00:00",
      "validTo": "2021-05-17T23:59:59.999999999",
      "status": "FULL"
    }
  ],
  "movement": [
    {
      "validFrom": "2021-05-17T00:00:00",
      "validTo": "2021-05-17T06:00:59.999999999",
      "status": "CLOSED"
    },
    {
      "validFrom": "2021-05-17T06:01:00",
      "validTo": "2021-05-17T23:30:59.999999999",
      "status": "FULL"
    },
    {
      "validFrom": "2021-05-17T23:31:00",
      "validTo": "2021-05-17T23:59:59.999999999",
      "status": "LIMITED",
      "notes": null,
      "openFor": [
        {
          "flightTypes": [
            {
              "rules": [],
              "filing": [],
              "airframe": [],
              "status": [
                "HUMANITARIAN",
                "FIREFIGHTING",
                "STATE",
                "HOSPITAL",
                "MEDEVAC",
                "SAR"
              ],
              "purpose": [],
              "direction": null
            }
          ],
          "priorNoticeRequired": 0,
          "costsInvolved": false,
          "other": null
        },
        {
          "flightTypes": [],
          "priorNoticeRequired": 0,
          "costsInvolved": false,
          "other": "Available for emergency diversion"
        }
      ]
    }
  ]
}
```

Each of `movement`, `arff`, `atc`, and `ciq` have a `blocks` property which is a list of time-referenced blocks that contain information on the availability of the individual service.

### Time reference <a href="#time-reference" id="time-reference"></a>

The API allows selecting if times returned are with reference to UTC or to Local Time. By default, all times for the Availability Blocks are with reference to the Local Time of the airport being queried.

When Availability times are entered in the aviowiki database, not all times are absolute, as some availability models depend on sunrise and sunset times. Whenever Availability Blocks are returned via the API, all such cases are resolved and times are always provided in an exact form, taking into account sunrise and sunset times where applicable.

### Availability `blocks` <a href="#availability-blocks" id="availability-blocks"></a>

Different services require different properties to express their availability, however, all Availability Blocks have these properties in common:

* `validFrom` is an ISO formatted date-time string that indicates when the block starts
* `validTo` is an ISO formatted date-time string that indicates when the block ends
* `status` is an enumeration that describes the current status of the facility. This can be&#x20;
  * `FULL` to indicate that the facility is fully available as described by the object,
  * `LIMITED` to indicate that the facility is available under certain conditions that cannot be described by the model, or
  * `CLOSED` to indicate that the facility is not available.

### `movement` Availability <a href="#movement-availability" id="movement-availability"></a>

Movement Availability indicates the availability for an aircraft to physically land or take-off at a location, with no guarantee of any other service being rendered.

In addition to the common Availability Block properties, Movement Availability Blocks with `status` of `LIMITED` also include the following properties:

* `openFor` a list of machine-readable conditions when Movement Availability can be considered equivalent to `FULL` .
* `notes` a string that describes any additional limitation to those listed in `openFor` and that can be `null` if none additional exists.

#### Modelling of `LIMITED` blocks in Movement Availability

The `openFor` property is a list of conditions that describe for who, and under what conditions an [Airport](/data-models/airport) could be available.

Each exception is described in the `flightType` object and has some additional conditions associated, to explain how access to the airport is possible.

Below a simplified structure of a Movement Availability block with `LIMITED` status:

```
{
  "movement": [
    {
      "validFrom": "2021-05-17T23:31:00",
      "validTo": "2021-05-17T23:59:59.999999999",
      "status": "LIMITED",
      "notes": null,
      "openFor": [
        {
          "flightTypes": [
            {
              "rules": [],
              "filing": [],
              "airframe": [],
              "status": [],
              "purpose": [],
              "direction": null
            }
          ],
          "priorNoticeRequired": 0,
          "costsInvolved": false,
          "other": null
        }
      ]
    }
  ]
}
```

The properties that define a flight object, under `flightTypes` are:

| Property    | Type           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `rules`     | List           | <p>The flight rules under which the flight operates. Possible options are:</p><ul><li><code>VFR</code> for <a href="https://www.skybrary.aero/index.php/Visual_Flight_Rules_(VFR)">Visual Flight Rules</a>. ICAO <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> <code>V</code>.</li><li><code>VFR\_TO\_IFR</code> for flights departing under Visual Flight Rules and transitioning to <a href="https://www.skybrary.aero/index.php/Instrument_Flight_Rules_(IFR)">Instrument Flight Rules</a>. ICAO <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> <code>Z</code>.</li><li><code>IFR</code> for <a href="https://www.skybrary.aero/index.php/Instrument_Flight_Rules_(IFR)">Instrument Flight Rules</a>. ICAO <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> <code>I</code>.</li><li><code>IFR\_TO\_VFR</code> for flights departing under <a href="https://www.skybrary.aero/index.php/Instrument_Flight_Rules_(IFR)">Instrument Flight Rules</a> and transitioning to <a href="https://www.skybrary.aero/index.php/Visual_Flight_Rules_(VFR)">Visual Flight Rules</a>. ICAO <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> <code>Y</code>.</li></ul><p>An empty list indicates that there are no specific status requirements for flights. I.e. any flight, regardless of the rules it operates under, can operate</p> |
| `filing`    | List           | <p>The type of flight. Possible options are:</p><ul><li><code>SCHEDULED</code> for flights that operate according to a repetitive schedule. ICAO <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> <code>S</code>.</li><li><code>NON\_SCHEDULED</code> for commercial flights that operate on an on-demand basis. ICAO <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> <code>N</code>.</li><li><code>GENERAL\_AVIATION</code> for non-commercial flights that operate on an on-demand basis. ICAO <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> <code>G</code>.</li><li><code>MILITARY</code>for flights operated by military organisations. ICAO <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> <code>M</code>.</li><li><code>OTHER</code> for any flight that does not fall under the above categories. ICAO <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> <code>X</code>.</li></ul><p>An empty list means that there are not specific requirements for this field. I.e. any flight, regardless of the type of flightplan, can operate</p>                                                                                                                                                                                                                                                      |
| `airframe`  | List           | <p>The category of aircraft being used. Possible options are:</p><ul><li><code>AEROPLANE</code> for all heavier than the air, fixed-wing aircraft.</li><li><code>VTOL</code> for all heavier than the air, rotary wing aircraft.</li></ul><p>An empty list indicates that there are no specific status requirements for flights. I.e. any flight, regardless of airframe type, can operate</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `status`    | List           | <p>Any special status as defined in ICAO Doc 4444, and mentioned in the <a href="https://www.skybrary.aero/index.php/Flight_Plan">Flightplan</a> Field 18 under <code>STS/</code>. Possible options  are:</p><ul><li><code>HUMANITARIAN</code> for a flight operating on a humanitarian mission.</li><li><code>FIREFIGHTING</code> for a flight operating on a firefighting mission.</li><li><code>STATE</code> for a flight engaged in military, customs or police services.</li><li><code>HEAD\_OF\_STATE</code> for a flight that carries a personality regarded to as the Head of a State.</li><li><code>HOSPITAL</code> for a medical flight declared by medical authorities.</li><li><code>MEDEVAC</code> for a life critical medical emergency evacuation.</li><li><code>SAR</code> for a flight engaged in a Search And Rescue mission.</li></ul><p>An empty list indicates that there are no specific status requirements for flights. I.e. any flight, regardless of its status, can operate</p>                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `purpose`   | List           | <p>The purpose for which the flight is operated. Possible options are:</p><ul><li><code>TRAINING</code> for any training flight.</li><li><code>CARGO</code> for flights that transport goods.</li><li><code>AIRLINE</code> for scheduled or unscheduled flights that transport passengers and are typically available for sale on a per-seat basis. (i.e. holiday charters, flag-carriers, and low-cost airlines).</li><li><code>BUSINESS</code> for flights that are operated to transport private individuals on business trips.</li><li><code>LEISURE</code> for any flight operated for leisure or pleasure, and that do not fall in any other category. </li><li><code>FERRY</code> for any flight operated for the purpose of moving the aircraft from one airport to another.</li><li><code>AERIAL\_WORK</code> for flights operated for hire  or rewars on certain specialised services. For example, agriculture, construction, photography, surveying, observation and patrol, and aerial advertisement.</li></ul><p>An empty list indicates that there are no specific flight purpose requirements for flights. I.e. any flight, regardless of its purpose, can operate.</p>                                                                                                                                                                                                                                           |
| `direction` | String, `null` | <p>The direction in which the flight operates, either:</p><ul><li><code>DEPARTURE</code> for departing flights, or</li><li><code>ARRIVAL</code> for arriving flights.</li></ul><p><code>null</code> indicates that both departures and arrivals are allowed.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

Each `openFor` object contains further properties to describe the conditions that need to be satisfied for the airport to be available to the flights listed.

These additional properties are:

| Property              | Type           | Description                                                                                                                                                                                                |
| --------------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `priorNoticeRequired` | Number, `null` | The number of hours, ahead of the movement time, required to give notice of a movement. `0` indicates that notice is required, but availability is immediate. `null` indicates that no notice is required. |
| `costsInvolved`       | Boolean        | Indicates if there are additional costs involved in accessing the airport for the specific type of flight.                                                                                                 |
| `other`               | String         | Any additional condition that cannot otherwise be described.                                                                                                                                               |

### `ciq` Availability <a href="#ciq-availability" id="ciq-availability"></a>

CIQ (Customs Immigration and Quarantine) Availability indicates the availability of Customs and Immigration facilities to process aircraft, crew, passengers and cargo as required by local regulations.

The `info` object for CIQ Availability can only contain `notes`, if applicable.

### `atc` Availability <a href="#atc-availability" id="atc-availability"></a>

ATC (Air Traffic Control) Availability indicates the availability of Air Traffic Services to support aircraft during the final descent, landing and ground movement.

The `info` object for ATC Availability have the following properties in addition to the base model described before:

* `afisOnly` a boolean which when `true` indicates that only AFIS (Aerodrome Flight Information Service) is provided.
* `enRtfAvailable` a boolean which when `true` indicates that English Radiotelephony is available. This simply means that the radio operator can speak English.

### `arff` Availability <a href="#arff-availability" id="arff-availability"></a>

ARFF (Airport Rescue and Fire Fighting) Availability indicates the availability of Rescue and Fire Fighting services to attend in case of an emergency.

The `info` object for ARFF Availability have the following properties in addition to the base model described before:

* `icaoCatAirplane` indicates the ICAO Rescue and Fire Fighting category for airplanes (not helicopters). Possible values are `NONE`, `I`, `II`, `III`, `IV`, `V`, `VI`, `VII`, `VIII`, `IX`, `X`. `null` means the information is not available.
* `faaCatAirplane` indicates the FAA category. Possible values are `NONE`, `A`, `B`, `C`, `D`, `E`. `null` indicates that the information is not available.
* `faa139Certified` boolean that indicates if the airport is certified according to 14 CFR §139. If true, it means the basis for the ARFF certification are the US rules, which don’t allow for immediate conversion of `faaCatAirplane` to `icaoCatAirplane`. If `true` it indicates that `icaoCatAirplane` was a value calculated based on the values of `waterQuantity`, `complementaryQuantity`, `arffVehicles`, and `dischargeCapacity`.
* `catHelicopters` indicates the ARFF value for helicopters. Possible values are `NONE`, `I`, `II`, `III`, `IV`. `null` if the information is not available.
* `waterQuantity` the total water capacity of all ARFF vehicles available, in litres.
* `complementaryQuantity` the total capacity of Complimentary Extinguishing Agent available, in kilograms. null if the information is not available.
* `arffVehicles` the number of ARFF vehicles available. `null` if the information is not available.
* `dischargeCapacity` the total discharge capacity of all ARFF vehicles available, in litres per minute. `null` if the information is not available.
* `extensionAvailable` boolean which indicates if an upgrade of the ARFF to a higher category can be arranged. `null` if the information is not available.
* `extensionNotice` amount of hours required to obtain ARFF extension before departure or arrival. `null` if the information is not available.
* `extensionUpToIcao` the maximum ARFF obtainable with extension. This is only available in ICAO format. Possible values are as per `icaoCatAirplane`. `null` if the information is not available.
* `firestationRemote` boolean which indicates if the ARFF service is offered by a remote fire station, not located at the airfield, for example, a village fire station. `null` if the information is not available.
* `firestationNotes` if `firestationRemote` is `true`, this text field allows notes about the location and performance of the remote fire station, for example, to indicate the response time.

### The `openingIndicator` flag <a href="#the-openingindicator-flag" id="the-openingindicator-flag"></a>

This indicator is produced by the backend and takes into consideration all 4 availabilities at the current time.

Possible values are:

* `OPEN` to indicate that all facilities are fully available.
* `SEE_TIMES` to indicate that some, potentially non-critical, facilities are not fully available and that the user should check full details.
* `CLOSED` to indicate that either `movemet` or all facilities are not available.
* `UNKNOWN` to indicate that there is not enough information to determine the current opening status of the location.

For client implementation, it is recommended that only `OPEN` and `CLOSED` statuses are used for decision-making, and that any other status is analyzed in more details or referred to a human for exception management.


# Aircraft

{% hint style="info" %}

## To be published soon

This page will be published soon on our new shiny open documentation!

If you would like to request a static copy of the documentation for this endpoint, please write us an email to <support@aviowiki.com>
{% endhint %}


# Aircraft Position

The Aircraft Position object specifies the physical location of an aircraft that is seen by our network. The same object is used independently of the source of the data, making it possible to receive information from multiple sources, like ground- and satellite-based ADS-B, ADS-C, Eurocontrol and FAA, all in one consistent format.

The Aircraft Position object is broken down into a part with information about the Aircraft, and a child object with the Position information.

```
{
  "icao24": "4D212D",
  "registration": "9H-VJT",
  "blocked": false,
  "position": {
    "baroAltitude": 0,
    "groundSpeed": 0,
    "course": null,
    "verticalRate": null,
    "coordinates": {
      "latitude": 42.69123,
      "longitude": 23.400879
    },
    "observed": "2021-05-21T12:52:09.36603",
    "onGround": true,
    "callsign": "VJT817T",
    "squawk": "1054",
    "technology": "ADSB"
  }
}
```

| Property       | Type           | Description                                                                                                                                                                                                                                         |
| -------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `icao24`       | String         | The ICAO 24bit address of the transponder in hexadecimal format.                                                                                                                                                                                    |
| `registration` | String, `null` | <p>The aircraft registration marks, as commonly displayed in the country of registration. For example <code>G-AVIO</code>, or <code>N372AW</code> . </p><p></p><p>A value of <code>null</code> indicates that the information is not available.</p> |
| `blocked`      | Boolean        | Indicates if the aircraft is included in the [FAA LADD](https://ladd.faa.gov/) blocking list. This is only for information, as aviowiki is not required to hide these aircraft from public view.                                                    |

### The Position object

The Position object contains information on an individual position tracked by our network.

| Property       | Type           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| -------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `baroAltitude` | Number, `null` | <p>The barometric altitude as reported by the aircraft's transponder, in metres.</p><p></p><p><code>null</code> indicates that this information is not available, or that the aircraft is on the ground, when <code>onGround</code> is <code>true</code>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `verticalRate` | Number, `null` | <p>The rate of climb/descent as reported by the aircraft's transponder, in metres per second. This can  be negative, which indicates a </p><p></p><p><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `groundSpeed`  | Number, `null` | <p>The ground speed as reported by the aircraft's navigation system, in metres per second.</p><p></p><p><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `course`       | Number, `null` | <p>The True Course as reported by the aircraft's navigation system, in degrees (<code>0</code> to <code>359</code>).</p><p></p><p><code>null</code> indicates that this information is not available.</p><p></p><p>Be aware that this information is only reliable when the aircraft is moving.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `coordinates`  | Object         | A [Coordinates](/data-models/coordinates) object that describes the geographical position of the aircraft.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `observed`     | String         | <p>The UTC time at which this position was received by us. This is usually just a few milliseconds after the aircraft transmits the information. </p><p>Time is formatted in ISO format.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `onGround`     | Boolean        | <p>Indicates if the transponder is transmitting that the aircraft is on the ground. This parameter works differently for different types of aircraft avionics. In some aircraft it is commanded by a pressure switch on the main landing gear, in others it is derived by the avionics' software. Not all transponders offer this information.</p><p></p><p><code>null</code> indicates that this information is not available, because it either was not provided by the aircraft or it was not possible to reliably derive.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `technology`   | String         | <p>The source of the position report. Possible values are:</p><ul><li><code>ADSB</code>: for positions by a Mode S or ADS-B transponder, using a 24-bit ICAO address, and received by a ground receiver.</li><li><code>ADSB\_SAT</code>: for positions by an ADS-B transponder, using a 24-bit ICAO address, and received by satellite.</li><li><code>ADSC</code>: for a position received monitoring the ADS-C satellite downlink</li><li><code>MLAT</code>:  for a Multilateration position, calculated by arrival time differences using multiple receivers, outliers and varying accuracy is expected</li><li><code>MODE\_S</code>: for ModeS data from the plane's transponder (no position transmitted)</li><li><code>ADSB\_NT</code>: for positions from an ADS-B equipped “non-transponder” emitter e.g. a ground vehicle, using a 24-bit ICAO address, and received by a  ground receiver.</li><li><code>ADSB\_REBROADCAST</code>: for rebroadcast of ADS-B messages originally sent via another data link e.g. UAT, using a 24-bit ICAO address</li><li><code>TISB</code>: for traffic information about a non-ADS-B target identified by a 24-bit ICAO address, e.g. a Mode S target tracked by secondary radar</li><li><code>ADSB\_OTHER</code>: for positions from an ADS-B transponder using a non-ICAO address, e.g. anonymized addresses issued by the FAA.</li><li><code>ADSR\_OTHER</code>: for rebroadcast of ADS-B messages originally sent via another data link e.g. UAT, using a non-ICAO address</li><li><code>TISB\_OTHER</code>: for traffic information about a non-ADS-B target using a non-ICAO address</li><li><code>TISB\_TRACKFILE</code>: for traffic information about a non-ADS-B target using a track/file identifier, typically from primary or Mode A/C radar</li><li><code>OTHER</code>: miscellaneous data received via Basestation receivers or in SBS format. Quality and source is generally unknown.</li></ul> |


# Coordinates

This object represents geographical coordinates in Latitude and Longitude.

Throughout our API we provide coordinates using decimal degrees with a precision of up to 7 decimal places. This guarantees a worse accuracy of 1.1112 centimetres at the Equator.

Decimal coordinates represent degrees of latitude and longitude. Negative values indicate South for Latitude and West for Longitude.

All coordinates make reference to the [WGS84](https://en.wikipedia.org/wiki/World_Geodetic_System) model.

| **Property** | **Type** | **Description**                                                                                                             |
| ------------ | -------- | --------------------------------------------------------------------------------------------------------------------------- |
| `latitude`   | number   | <p>The decimal latitude, with up to seven decimal places.<br>Unsigned means positive, for North.<br>Negative for South.</p> |
| `longitude`  | number   | <p>The decimal longitude, with up to seven decimal places.<br>Unsigned means positive, for East.<br>Negative for West.</p>  |

For example:

```
{
   "latitude" : 40.639925,
   "longitude" : -73.7786944
}
```

represent the Coordinates object for New York JFK airport.


# Region

Regions define political or geographical groupings of countries or territories.

For example, the [European Union](https://en.wikipedia.org/wiki/European_Union) is defined as a list of countries, while [Europe](https://en.wikipedia.org/wiki/Europe) is defined geographically by a series of polygons.

There is one special region that includes all countries in the world and has special AID `RGN-WRLD-WIDE`

The Region object includes the following properties:

| Property       | Type         | Description                                                                                                                                                                                   |
| -------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aid`          | string       | The aviowiki ID for this Region, with naspace `RGN`                                                                                                                                           |
| `name`         | string       | The name assigned to the Region.                                                                                                                                                              |
| `countries`    | list, `null` | <p>A list of <a href="/pages/-MUP3Jkil0DeGQKvY9rY">Countries</a> that are included in the Region.<br><code>null</code> indicates that the Region is not defined by any Country.</p>           |
| `multipolygon` | list, `null` | <p>A list of polygons, that are on their own a list of Coordinates that define the vertices of the polygon.<br><code>null</code> indicates that the Region is not defined by any polygon.</p> |

For example

```
{
  "aid": "RGN-DOCS-TEST",
  "name": "Test Region",
  "countries": [
    {
      "iso2": "FO",
      "iso3": "FRO",
      "isoNumeric": 234,
      "name": "Faroe Islands",
      "officialName": null,
      "localIdentifierName": null
    }
  ],
  "multipolygon": [
    [
      [
        3.7792969,
        80.9491884
      ],
      [
        41.0449219,
        80.9422728
      ],
      [
        18.984375,
        73.4033377
      ]
    ]
  ]
}
```

Represents a Region that includes Faroes Islands as a Country, and Svalbard as a geographical area enclosed in a triangle.


# Country

The Country object provides information on world territories that are generally recognised to have sovereignty.

When countries are referenced externally, the [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166) Alpha-3 code should be used as it serves as a unique identifier.

| **Property**          | **Type**       | **Description**                                                                                                                         |
| --------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `name`                | string         | The common name of the country in English.                                                                                              |
| `officialName`        | string         | The official name of the country in English. This is sometimes different from `name`                                                    |
| `iso2`                | string         | The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166) Alpha-2 code.                                                                    |
| `iso3`                | string         | The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166) Alpha-3 code.                                                                    |
| `isoNumeric`          | number         | The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166) Numeric number.                                                                  |
| `localIdentifierName` | string, `null` | The name of the identifier that this country issues to airports that don't have an official ICAO or IATA code, or in addition to these. |

**Example:**

```
{
      "iso2": "MX",
      "iso3": "MEX",
      "isoNumeric": 484,
      "name": "Mexico",
      "officialName": "United Mexican States"
    }
```


# Governing District

The Governing District object represents the information for identifying the principal provinces or states of the US and Canada referenced in the [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) standards.

<table><thead><tr><th width="237.66666666666669">Property</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>code</code></td><td>string</td><td>An alphanumeric code consisting of the 2 letter country code and a string of up to three alphanumeric characters. This code can be used to uniquely identify a country subdivision.</td></tr><tr><td><code>administrativeType</code></td><td>string</td><td>The type of subdivision in each country. For example, this could be a <code>Parish</code>, <code>Province</code>, <code>Emirate</code> or <code>District</code>.</td></tr><tr><td><code>name</code></td><td>string</td><td>The name of the subdivision.</td></tr></tbody></table>

{% hint style="warning" %}
This object is reserved for future use, and it is currently defaulted to `null` in most API responses.
{% endhint %}


# Runway

Runways a children elements of an [Airport](/data-models/airport). They don’t have any child element themselves.

Runways are assigned [AIDs](/conventions/aviowiki-ids) in the `RWY` namespace.

A Runway represents a landing surface in one of its usable directions, if applicable. For example, at an airport with one runway oriented North/South and usable in both directions, there will be two `RWY` elements, one representing the northbound take-off and landing direction and the other its southbound counterpart.

| **Property**                   | **Type**        | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------------------------ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aid`                          | string          | A string with the AID of the airport, with `RWY` as namespace                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `identifier`                   | string, `null`  | <p>The runway identifier, for example <code>35L</code>.<br><br>Can be <code>null</code> if <code>helipad</code> is <code>true</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `helipad`                      | boolean, `null` | <p><code>true</code> to indicate that this surface is dedicated to the movement of <a href="https://en.wikipedia.org/wiki/VTOL">VTOL aircraft</a>.<br><br><code>null</code> indicates that the information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `trueBearing`                  | number, `null`  | <p>The runway bearing with reference to <a href="https://en.wikipedia.org/wiki/True_north">True North</a>.<br><br><code>null</code> indicates that the information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `surface`                      | string, `null`  | <p>The type of material that constitutes the surface of the runway.<br><br>Possible values are:<br>– <code>ASPHALT</code> indicates any mineral aggregate bound with asphalt, including bituminous asphalt or tarmac.<br>– <code>CONCRETE</code> indicates any aggregate bonded together with a fluid cement.<br>– <code>GRAVEL</code> indicates any loose aggregation of rock fragments.<br>– <code>DIRT</code> indicates any prepared or semi-prepared surface with an earthy surface.<br>– <code>GRASS</code> indicates any prepared or semi-prepared surface with a grass cover.<br>– <code>SNOW</code> indicates any compact or loose snow cover, which is meant for usage with specific landing gears.<br>– <code>WATER</code> indicates any marked or unmarked body of water, or portion thereof, which is meant for floatplanes or amphibious aircraft operations.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `thresholdCoordinates`         | number, `null`  | <p>A <a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a> object that indicates the beginning of the surface being described, on the centerline.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `thresholdElevation`           | number, `null`  | <p>A number indicating the elevation in meters of the runway threshold at the location indicated by <code>thresholdCoordinates</code>. Precision is up to two decimal places.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `slope`                        | number, `null`  | <p>A number indicating the slope in the direction of landing and take-off. This is expressed in decimal percentage.<br>For example, <code>0.03</code> means an uphill slope of 3%, and <code>-0.04</code> a downhill slope of 4%.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `grooved`                      | boolean, `null` | <p>If <code>true</code> it indicates that the runway surface has been <a href="https://en.wikipedia.org/wiki/Runway#Pavement_surface">grooved</a> to improve friction in wet conditions. <code>false</code> indicates that this process was not undertaken.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `tora`                         | number, `null`  | <p>The <a href="https://www.skybrary.aero/index.php/Takeoff_Run_Available_(TORA)">Take-Off Run Available</a> expressed in meters with precision up to two decimal positions.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `toda`                         | number, `null`  | <p>The <a href="https://www.skybrary.aero/index.php/Take_Off_Distance_Available_(TODA)">Take-Off Distance Available</a> expressed in meters with precision up to two decimal positions.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `asda`                         | number, `null`  | <p>The <a href="https://www.skybrary.aero/index.php/Accelerate_Stop_Distance_Available_(ASDA)">Accelerate Stop Distance Available</a> expressed in meters with precision up to two decimal positions.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `lda`                          | number, `null`  | <p>The <a href="https://en.wikipedia.org/wiki/Runway#Declared_distances">Landing Distance Available</a> expressed in meters with precision up to two decimal positions.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `width`                        | number, `null`  | <p>The runway width expressed in meters with precision up to two decimal positions.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `pcnNumerical`                 | number, `null`  | <p>The numerical portion of the <a href="https://www.skybrary.aero/index.php/Pavement_Classification_Number_(PCN)">Pavement Classification Number</a>, which indicates the load-carrying capacity of the pavement.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `pcnType`                      | string, `null`  | <p>Indicates the type of pavement as reported in the <a href="https://www.skybrary.aero/index.php/Pavement_Classification_Number_(PCN)">Pavement Classification Number</a>.<br>Possible values are:<br>– <code>R</code> for Rigid, most typically concrete<br>– <code>F</code> for flexible, most typically asphalt<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `pcnStrength`                  | string, `null`  | <p>Indicates the strength of the subgrade, as reported in the <a href="https://www.skybrary.aero/index.php/Pavement_Classification_Number_(PCN)">Pavement Classification Number</a>.<br>Possible values are:<br>– <code>A</code> High Strength – for example, concrete-stabilised clay<br>– <code>B</code> Medium Strength<br>– <code>C</code> Low Strength<br>– <code>D</code> Ultra-Low Strength – for example, uncompacted soil<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `pcnTirePressure`              | string, `null`  | <p>Indicates the maximum tire pressure that the pavement can support, ad reported in the <a href="https://www.skybrary.aero/index.php/Pavement_Classification_Number_(PCN)">Pavement Classification Number</a>.<br>Possible values are:<br>– <code>W</code> Unlimited – no tyre pressure limit<br>– <code>X</code> High – maximum tyre pressure of 1.75 MPa<br>– <code>Y</code> Medium – maximum tyre pressure of 1.25 MPa<br>– <code>Z</code> Low – maximum tyre pressure of 0.5 MPa<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `pcnMethod`                    | string, `null`  | <p>Indicates the method through which the value of <code>pcnNumerical</code> was obtained.<br>Possible values are:<br>– <code>T</code> to indicate technical evaluation<br>– <code>U</code> to indicate usage – a physical testing regime.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `visualApproachSlopeIndicator` | string, `null`  | <p>Indicates what type of <a href="https://www.skybrary.aero/index.php/Visual_Approach_Slope_Indicator_Systems_(VASIS)">Visual Approach Slope Indicator System</a> is used for the surface.<br>Possible values are:<br>– <code>NONE</code> No VASIS is installed or available.<br>– <code>P2L</code> PAPI with 2 lights installed left of the runway<br>– <code>P2R</code> PAPI with 2 lights installed right of the runway</p><p>– <code>P2B</code> PAPI with 2 lights installed both sides of the runway<br>– <code>P4L</code> PAPI with 4 lights installed left of the runway<br>– <code>P4R</code> PAPI with 4 lights installed right of the runway</p><p>– <code>P4B</code> PAPI with 4 lights installed both sides of the runway<br>– <code>PSIL</code> Pulsating/Steady burning VASI installed left of the runway<br>– <code>PSIR</code> Pulsating/Steady burning VASI installed right of the runway<br>– <code>S2L</code> Simplified Abbreviated VASI with 2 lights installed left of the runway<br>– <code>S2R</code> Simplified Abbreviated VASI with 2 lights installed right of the runway<br>– <code>V2L</code> VASI with 2 lights installed left of the runway<br>– <code>V2R</code> VASI with 2 lights installed right of the runway</p><p>– <code>V4L</code> VASI with 4 lights installed left of the runway<br>– <code>V4R</code> VASI with 4 lights installed right of the runway<br>– <code>V6L</code> VASI with 6 lights installed left of the runway<br>– <code>V6R</code> VASI with 6 lights installed right of the runway<br>– <code>V12</code> VASI with 12 lights installed on both sides<br>– <code>V16</code> VASI with 16 lights installed on both sides<br><br><code>null</code> indicates that this information is not available.</p> |
| `approachLightConfiguration`   | string, `null`  | <p>Indicates what type of Approach Light System is installed.<br>Possible values are:<br>– <code>NONE</code> Indicates that no ALS is installed</p><p>– <code>MALS</code>1,400 Foot Medium Intensity Approach Lighting System<br>– <code>MALSR</code> 1,400 foot medium intensity approach lighting system with runway alignment indicator lights<br>– <code>MALSF</code> 1,400 foot medium intensity approach lighting system with sequenced flashers<br>– <code>SALS</code> short approach lighting system</p><p>– <code>SALSF</code> short approach lighting system with sequenced flashing lights.<br>– <code>SSALS</code> simplified short approach lighting system<br>– <code>SSALR</code> simplified short approach lighting system with runway alignment indicator lights<br>– <code>SSALF</code> simplified short approach lighting system with sequenced flashers<br>– <code>ODALS</code> omnidirectional approach lighting system<br>– <code>ALSF1</code> standard 2,400 foot high-intensity approach lighting system with sequenced flashers, category I configuration<br>– <code>ALSF2</code> standard 2,400 foot high-intensity approach lighting system with sequenced flashers, category II or III configuration<br>– <code>ICAO1\_HIALS</code> ICAO-compliant configuration 1, High-Intensity Approach Lighting System<br>– <code>ICAO2\_HIALS</code> ICAO-compliant configuration 2 High-Intensity Approach Lighting System<br>– <code>LDIN</code> Lead-in lighting<br>– <code>REIL</code> Runway End Identification Lights<br>– <code>RAIL</code> Runway Alignment Indicator Lights<br><br><code>null</code> indicates that this information is not available.</p>                                                                               |
| `thresholdLights`              | boolean, `null` | <p><code>true</code> indicates that the surface has Threshold Lights installed. <code>false</code> that such lights are not installed.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `touchDownZoneLights`          | boolean, `null` | <p><code>true</code> indicates that the surface has Touch-Down Zone Lights installed. <code>false</code> that such lights are not installed.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `centerLights`                 | boolean, `null` | <p><code>true</code> indicates that the surface has Centerline Lights installed. <code>false</code> that such lights are not installed.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `centerLightsSpacing`          | number, `null`  | <p>Indicates the distance in meters between individual Lights along the Centerline. Precision is up to two decimal places.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `edgeLights`                   | boolean, `null` | <p><code>true</code> indicates that the surface has Edge Lights installed. <code>false</code> that such lights are not installed.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `endLights`                    | boolean, `null` | <p><code>true</code> indicates that the surface has End Lights installed. <code>false</code> that such lights are not installed.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `instrumental`                 | boolean, `null` | <p><code>true</code> indicates that the runway has at least one instrumental approach that serves the landing direction being described. <code>false</code> that only visual approach is available.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `precision`                    | boolean, `null` | <p><code>true</code> indicates that the runway has at least one instrumental precision approach that serves the landing direction being described. <code>false</code> that only non-precision approaches are available.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `separate`                     | boolean, `null` | <p><code>true</code> indicates that the runway constitutes a separate landing surface from other runways. This runway may overlay or cross other runways in such a way that if one of the runways is blocked, it will not prevent operations on the other runway. This satisfies the criteria of JAR-OPS-1.192(9) for physical separation.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `standardPattern`              | boolean, `null` | <p><code>true</code> indicates that the runway has a standard left-hand traffic pattern. <code>false</code> indicates that a right-hand pattern is in use.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `parent`                       | string          | The AID of the parent [Airport](/data-models/airport).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |


# Provider

Providers are children elements of an [Airport](/data-models/airport).

Providers can optionally have children elements, that are [Products](/data-models/generic-product) and describe goods or services offered for sale or hire by the Provider.

A Provider represents an entity at or nearby an [Airport](/data-models/airport) that provides some service that can be useful to aircraft operations or aircraft crew members.

All Providers have [AIDs](/conventions/aviowiki-ids) in the `PRV` namespace.

It is worth noting that **Handling** Providers have additional properties to extend the Provider model. These are contained in the `handlingProvider` property. Details are discussed [further down on this page.](/data-models/provider#handling-provider)

### Generic Provider <a href="#generic-provider" id="generic-provider"></a>

| **Property**        | **Type**       | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ------------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aid`               | string         | A string with the AID of the airport, with `PRV` as namespace.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `category`          | string         | <p>Represents what the nature of the business for this provider is.<br><br>Possible values are:<br>– <code>HANDLING</code> For all ground handling providers. Providers with this category will be extended by property <code>handlingProvider</code><br>– <code>FUEL</code> For all fuel providers. Providers in this category will be extended by property <code>fuelProvider</code><br>– <code>DEICING</code> For companies offering aircraft de-icing and anti-icing.<br>– <code>CATERING</code> For companies offering food packed for carriage and consumption on-board an aircraft.<br>– <code>PRIVATE\_TRANSFER</code> For companies offering transport by road with private-hire vehicles (cars, minibus, bus), as opposed to regular taxi companies.<br>– <code>TAXI</code> For regularly licensed taxi companies.<br>– <code>CAR\_RENTAL</code> For companies offering vehicles for hire without a driver.<br>– <code>HOTEL</code> For all hotels and accommodation facilities.<br>– <code>RESTAURANT</code> For food businesses that have premises dedicated to hosting guests for on-site dining. These locations may also offer takeaway catering.<br>– <code>CAFETERIA</code> For food businesses that mainly focus on hot and soft drinks and light refreshments to be consumed on-site or taken away.<br>– <code>AIRCRAFT\_CLEANING</code> For companies dedicated to carrying out aircraft interior and/or exterior cleaning.<br>– <code>LAUNDRY</code> For companies dedicated to washing laundry. This may include aircraft laundry as well as clothes and uniforms and could be self-service or fully serviced.<br>– <code>DISH\_WASHING</code> For companies dedicated to washing aircraft crockery and cutlery.<br>– <code>MAINTENANCE</code> For companies certified to carry out aircraft maintenance.<br>– <code>AIRCRAFT\_SERVICING</code> For companies able to support aircraft with minor services, like tire pressure checking and inflation, towing, oxygen refill, power carts, air start, etc. These companies may or may not be certified by the competent authority, depending on the regulatory framework.<br>– <code>TAX\_REFUND</code> For services that facilitate claiming of taxes for international customers. These may governmental agencies or commercial establishments.<br>– <code>SUPERMARKET</code> For grocery shops.<br>– <code>AIRCRAFT\_SUPPLIES</code> For businesses dedicated to the warehousing sales and distribution of aircraft spare parts and consumables.</p> |
| `name`              | string         | The name of the business.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `email`             | string, `null` | <p>The email address of the business.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `phone`             | string, `null` | <p>The phone number of the business during regular business hours.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `vhf`               | number, `null` | <p>The frequency in Mhz for voice communication between the aircraft and the Provider. This is in the range of 118.000 and 136.975.<br><br><code>null</code> if this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `outOfHoursPhone`   | string, `null` | <p>The phone number of the business outside of regular business hours.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `website`           | string, `null` | <p>The website of the business, pointing to the page most relevant for this location.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `sita`              | string, `null` | <p>The SITA address to communicate with this business at this location, or the most relevant location.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `aftn`              | string, `null` | <p>The AFTN address to communicate with this business at this location, or the most relevant location.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `streetName`        | string, `null` | <p>The street address, including any numbering, for the business. This should be the most relevant address where the business can receive customers, suppliers and deliveries.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `locality`          | string, `null` | <p>The city of the business address, as used for postal routing.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `municipality`      | string, `null` | <p>The state, province, county, or administrative region in which the locality is situated.<br>For example, <code>Ontario</code>, <code>Alberta</code>, or <code>California</code>.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `governingDistrict` | string, `null` | This object is reserved for future use, and it is currently defaulted to `null` in all API responses.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `postalCode`        | string, `null` | <p>The postal code, according to the standard of the country.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `country`           | object, `null` | <p>A <a href="/pages/-MUP3Jkil0DeGQKvY9rY">Country</a> object representing where the business is physically located. This may be different from the jurisdiction of incorporation of the business.<br><br><code>null</code> indicates that this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `paymentMethods`    | list, `null`   | <p>A list of payment methods that can be used at the Provider. These are intended available without prior arrangement with the provider and accepted for all customers.<br>Possible values are:<br>– <code>VISA</code> Visa debit and credit cards<br>– <code>MASTERCARD</code> Mastercard debit and credit cards<br>– <code>AMERICAN\_EXPRESS</code> American Express cards<br>– <code>DINERS\_CLUB</code> Diners Club cards<br>– <code>JCB</code> JCB cards<br>– <code>DISCOVER</code> Discover cards<br>– <code>WORLD\_FUEL\_SERVICES</code> World Fuel Services card or Release<br>– <code>COLT</code> Colt card or Release<br>– <code>UVAIR</code> UVair Fueling Card or Release<br>– <code>AVFUEL</code> AVCARD or Release<br>– <code>AIRBP</code> AirBP card or Release<br>– <code>TOTAL</code> Total card or Release<br>– <code>SHELL</code> Shell card or Release<br>– <code>OTHER\_CARNET</code> other carnets not listed above.<br>– <code>OTHER\_RELEASE</code> other releases not listed above.<br>– <code>INVOICE</code> the Provider will send an invoice to the customer for later payment.<br>– <code>CASH</code> cash in the local currency, and possibly in other international currencies.</p><p>– <code>BITCOIN</code> Bitcoin on-chain transactions.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `featuredOrder`     | number, `null` | <p>This number indicates to clients in which order to display providers of the same <code>category</code> to the end users.<br>The position in this list depends on a series of commercial, data quality and usage factors.<br><br><code>-1</code> indicates a provider that should always be displayed on top, as “Featured”. These providers have been checked by our curators team and reliability of the data is highest. Only one provider per <code>category</code> at the same location can have this set to <code>-1</code>.<br><br>Any other value from <code>0</code> upwards indicates a decreasing position under the featured provider, if any. For clarification, <code>0</code> should be displayed before <code>1</code> and <code>1</code> before <code>2</code>.<br><br><code>null</code> indicates that the provider has not been vetted by our team, and the accuracy of the data is not guaranteed.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `logo`              | reserved       | This will contain methods to retrieve the logo of the Provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `pictures`          | reserved       | This will contain methods to retrieve pictures for the Provider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `parent`            | string         | The AID of the [Airport](/data-models/airport) to which this Provider belongs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `handlingProvider`  | object, `null` | <p>If <code>category</code> is <code>HANDLING</code>, this is an object that describes properties specific to Handling companies. Full details can be found in the next paragraphs.<br><br><code>null</code> if <code>category</code> is any other value.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `fuelProviders`     | object, `null` | <p>If <code>category</code> is <code>FUEL</code>, this is an object that describes properties specific to Fuel companies. Full details can be found in the next paragraphs.<br><br><code>null</code> if <code>category</code> is any other value.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

### Handling Provider <a href="#handling-provider" id="handling-provider"></a>

| **Property**             | **Type**       | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ------------------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `serviceLevel`           | string, `null` | <p>The type of service offered by this Provider. Possible options are:</p><ul><li><code>HANDLER</code> for a ground handler that usually serves airlines, or a non-GA/BA specific ground handler.</li><li><code>FBO</code> for a specific GA/BA ground handler.</li><li><code>SUPERVISION</code> for a local representative offering airside support to GA/BA flights using equipment of another ground handler.</li><li><code>SUPPORT</code> for any remote arrangement that facilitates the operations of GA/BA flights.</li></ul><p><code>null</code> if this information is not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `accountsEmail`          | string, `null` | <p>The email address of the Accounting department. This is where the Provider prefers to receive emails related to accounting and financial matters.<br><br><code>null</code> if this information was not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `accountsPhone`          | string, `null` | <p>The phone number of the Accounting department. This is where the Provider prefers to receive calls related to accounting and financial matters.<br><br><code>null</code> if this information was not available.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `paxMeetingCoordinates`  | object, `null` | <p>A <a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a> object illustrating where passengers can meet with a representative of this Handling Provider. This should be in a public area accessible to private vehicles.</p><p></p><p><code>null</code> if this information is not available. </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `aircraftParkingPolygon` | list, `null`   | <p>A list of <a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a> objects which delimit the area where aircraft served by this Handling Provider are usually parked.<br><br><code>null</code> if this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `fboBuildingPolygon`     | list, `null`   | <p>A list of Coordinates objects which delimit the area of the main building from which this Handling Provider perform its core services.<br><br><code>null</code> if this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `terminalServices`       | list, `null`   | <p>A list of services offered by this Handling Provider at their premises for passengers’ convenience.<br><br>Possible values are:<br><br>– <code>DEDICATED\_TERMINAL</code> a dedicated area in an own building, or part of another building, where passengers are physically separated from the airline passengers.<br>– <code>CUSTOMS\_ON\_SITE</code> a customs checkpoint on site, or the possibility to arrange one on request.<br>– <code>SECURITY\_ON\_SITE</code> a security screening point on site, or the possibility to arrange one.<br>– <code>AIRSIDE\_BOARD\_TO\_BOARD</code> the possibility to transfer a passenger from an airline flight to a GA/BA flight, or vice versa, meeting the passenger at a location airside.<br>– <code>LANDSIDE\_CONNECTION\_ASSISTANCE</code> the possibility to transfer a passenger from an airline flight to a GA/BA flight, or vice versa, meeting the passenger at a location landside.<br>– <code>AIRLINE\_MEET\_AND\_GREET</code> the possibility to receive an airline passenger to facilitate airport procedures. It is not specified if this happens landside or airside.<br>– <code>CREW\_COURTESY\_CAR</code> the availability of a car to be used by the crew for the period of time their aircraft is serviced by this Provider.<br>– <code>CAR\_RENTAL</code> a dedicated car-rental point, or the possibility of having rented cars picked-up at the location of this Provider.<br>– <code>CREW\_TRANSFER</code> transfer for the crew members, usually to and from their hotel, arranged by this Provider.<br>– <code>CONFERENCE\_ROOMS</code> the availability of rooms equipped to allow meetings at the premises of the Provider.<br>– <code>CREW\_SHOWERS</code> the availability of shower facilities and changing rooms for crew members to use.<br>– <code>PASSENGER\_SHOWERS</code> the availability of shower facilities and changing rooms for passengers to use.<br>– <code>CREW\_SNOOZE\_ROOM</code> a room equipped in such a way that allows crew members to take short periods of sleep.<br>– <code>PASSENGER\_SNOOZE\_ROOM</code> a room equipped in such a way that allows passengers to take short periods of sleep.<br>– <code>CHILDREN\_AREA</code> a safe area dedicated to children’s play.<br>– <code>COMPLIMENTARY\_REFRESHMENTS</code> the availability of refreshments for the users of this Provider.<br>– <code>CONCIERGE\_SERVICES</code> the availability of ancillary services arranged by the Provider on behalf of the user.<br>– <code>CREW\_CAR\_PARK</code> car park dedicated to the crew members of an aircraft using this Provider.<br>– <code>PASSENGER\_CAR\_PARK</code> car park dedicated to the passengers of an aircraft using this Provider.<br>– <code>TAX\_REFUND</code> the availability on site of a service that facilitates claiming of taxes for international customers. This may be a governmental agency or a commercial establishment.<br>– <code>SHOPS\_ON\_SITE</code> shops on the premises of the Provider. These may be convenience stores, gift shops, or other generic shops.<br>– <code>RESTAURANTS\_ON\_SITE</code> restaurants on the premises of the Provider that serve food and have space for dining in.<br>– <code>CATERING\_COLD\_STORAGE</code> the possibility of storing catering supplies in a refrigerated compartment or room.<br>– <code>LUGGAGE\_STORAGE</code> the possibility of storing customer luggage for a definite period of time.<br><br><code>null</code> if this information was not added.</p> |
| `aircraftServices`       | list, `null`   | <p>A list of aircraft services offered by this Handling Provider.<br><br>Possible values are:<br>– <code>DEDICATED\_PARKING</code> parking for the aircraft in a design area which is used exclusively by the Provider.<br>– <code>SELF\_MANEUVERING\_PARKING</code> parking that allows taxi in and taxi out without assistance from external vehicles.<br>– <code>TOW\_TRUCK</code> a dedicated vehicle to move the aircraft on the airport surface without the aircraft’s own power.<br>– <code>LUGGAGE\_CARTS</code> trolleys to move large amounts of luggage to and from the aircraft.<br>– <code>WHEELCHAIR\_LOADER\_BIZJET</code> a vehicle dedicated to the movement of Passengers with Reduced Mobility and with an interface suitable to business jets.<br>– <code>WHEELCHAIR\_LOADER\_AIRLINER</code> a vehicle dedicated to the movement of Passengers with Reduced Mobility and with an interface suitable to airliners.<br>– <code>LUGGAGE\_BELT</code> a belt on wheels to mechanically lift luggage from the ground to the aircraft’s luggage compartment.<br>– <code>AIRLINE\_CONTAINER\_LOADER</code> a vehicle to load, lift and manoeuvre <a href="https://en.wikipedia.org/wiki/Unit_load_device">ULD containers</a>.<br>– <code>POTABLE\_WATER</code> a vehicle or other means to load potable water into the aircraft, via a suitable aircraft interface.<br>– <code>VACUUM\_TOILET\_SERVICE</code> a vehicle or other means to empty a waste tank for toilets operating with a vacuum system.<br>– <code>CHEMICAL\_TOILET\_SERVICE</code> the availability of adequate means to empty a waste tank for chemical toilets, including the supply of adequate consumables to make the toilet serviceable again.<br>– <code>TKS\_FLUID</code> availability of TKS anti-icing fuel.<br>– <code>DEICING</code> availability of de-icing and anti-icing equipment and fluids.<br>– <code>OXYGEN\_UPLOAD</code> equipment and trained personnel to refill the on-board oxygen system.<br>– <code>TYRE\_INFLATION</code> equipment and trained personnel to check tyre pressure and inflate tyres.<br>– <code>GPU\_115V\_440HZ</code> availability of AC Ground Power at a voltage of 115v and frequency of 440Hz.<br>– <code>GPU\_28V</code> availability of DC Ground Power at a voltage of 28v.<br>– <code>GPU\_12V</code> availability of DC Ground Power at a voltage of 12v.<br>– <code>AIR\_STARTER</code> equipment and trained personnel to conduct turbine engine air start. The aircraft interface is not specified.<br>– <code>CREW\_LADDER</code> a portable ladder available to the crew for inspecting parts of the aircraft that are not immediately available from the ground.<br>– <code>AIRCRAFT\_STAIRS</code> movable stairs, usually used for airliners or larger aircraft that do not carry a built-in ladder.<br>– <code>FORKLIFT</code> a vehicle and an operator able to forklift palletized cargo.<br>– <code>CABIN\_COOLING\_HEATING\_CART</code> a unit that can provide heated or chilled air to the aircraft cabin. The aircraft interface is not specified.<br><br><code>null</code> if this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                    |
| `fuelProducts`           | list, `null`   | <p>A list of <a href="/pages/-MUP3YqiH2KxeCi2h_Cv">Fuel Products</a> that are available for sale by the Provider.<br>Other Generic Products may also be available for this Provider and may be retrieved using the relevant endpoint.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |


# Generic Product

A Generic Product is any product that is not a [Fuel Product](/data-models/fuel-product).

Generic Products can represent anything as easy as a can of coke sold by a [Handling Provider](/data-models/provider#handling-provider), to more complex structures like a parking fee charged per hour per ton of MTOM.

Prices entered in aviowiki should always be intended as guidance, and do not constitute contractual obligation between the Provider and clients or prospects. They are, however, an extremely useful tool to compare pricing at different Providers, and better estimate the cost of a trip.

| `aid`          | string          | A string with the AID of the Product, with `PVP` as namespace.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| -------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `name`         | string          | The name of the good or service being sold.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `description`  | string, `null`  | <p>A brief description of the good or service being sold.<br><br><code>null</code> if this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `price`        | number, `null`  | <p>The unit price.<br><br>A value of <code>0</code> indicates that the service is free of charge.<br><br><code>null</code> if this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `currency`     | string, `null`  | <p>The <a href="https://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> 3-letters currency code.<br><br><code>null</code> if this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `taxInclusive` | boolean, `null` | <p>Boolean indicating if the price shown is inclusive of all local taxes or not.<br><br><code>true</code> if the price includes all taxes, <code>false</code> otherwise.<br><br><code>null</code> if this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `unit`         | string, `null`  | <p>The unit for which the <code>price</code> is specified.<br><br>Possible values are:<br>– <code>LTR</code> for <a href="https://en.wikipedia.org/wiki/Litre">liters</a><br>– <code>LBS</code> for <a href="https://en.wikipedia.org/wiki/Pound_(mass)">pounds</a><br>– <code>KG</code> for <a href="https://en.wikipedia.org/wiki/Kilogram">kilograms</a><br>– <code>USG</code> for <a href="https://en.wikipedia.org/wiki/Gallon#US_liquid_gallon">US Gallons</a><br>– <code>IMP</code> for <a href="https://en.wikipedia.org/wiki/Gallon#Imperial_gallon">Imperial Gallons</a><br>– <code>PIECE</code> to indicate one piece<br>– <code>QRT</code> for <a href="https://en.wikipedia.org/wiki/Quart#US_liquid_quart">US Quarts</a><br>– <code>PINT</code> for <a href="https://en.wikipedia.org/wiki/Pint#Imperial_pint">Imperial Pints</a><br>– <code>NIGHT</code> for a local night, for example when expressing hotel stays<br>– <code>H24</code> for a period of 24 hours<br>– <code>HOUR</code> for each hour<br>– <code>MINUTE</code> for each minute<br>– <code>CALENDAR\_DAY</code> for each calendar day<br>– <code>CALENDAR\_MONTH</code> for each calendar month<br>– <code>METER</code> for linear <a href="https://en.wikipedia.org/wiki/Metre">metres</a><br>– <code>SET</code> to indicate a single set, for example if the Product is usually sold as a bundle.<br><br>More details about the <code>unit</code> can be included in the description, for example to specify the duration of a <code>NIGHT</code>, or the content of a <code>SET</code>.<br><br><code>null</code> indicates that this information was not added.</p> |
| `quantity`     | number, `null`  | <p>The quantity of <code>unit</code> that the <code>price</code> refers to.<br><br>This can be useful to create intermediate measure. For example, to describe <code>price</code> of a 6 hours parking: <code>unit</code> will be <code>HOUR</code> and <code>quantity</code> <code>6</code>.<br><br><code>null</code> indicates that this information was not added.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `parent`       | string          | The AID of the parent [Provider](/data-models/provider).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

### Example

```
{
    "name": "Grana Padano",
    "description": "Hard Italian Cheese PDO. Can be served grated or in pieces.",
    "currency": "EUR",
    "quantity": 1.00,
    "unit": "KG",
    "price": 69.95,
    "taxInclusive": false,
    "parent": "PRV-56CW-HX5K",
    "aid": "PVP-TFBJ-KTEU"
  }
```


# Fuel Product

The Fuel Product can describe any product used as fuel for an aircraft.

The units of measure available are volumetric since the billed amounts are always metered by volume.

| **Property**            | **Type**        | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aid`                   | string          | A string with the AID of the Fuel Product, with `FPR` as namespace.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `name`                  | string          | A label for this fuel product.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `description`           | string, `null`  | A free text description for this product. This should not be used to enter information in contradiction with other properties in this or other models.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `type`                  | string          | <p>A string indicating the type of fuel product being described.<br><br>Possible values are:<br>– <code>JET\_A</code> for JET A fuel<br>– <code>JET\_A1</code> for JET A-1 fuel<br>– <code>JET\_B</code> for JET B fuel<br>– <code>TS1</code> for TS-1 fuel<br>– <code>AVGAS\_100\_130</code> for AvGas 100/130<br>– <code>AVGAS\_100LL</code> for AvGas 100LL<br>– <code>AVGAS\_91\_96UL</code> for AvGas 91/96UL<br>– <code>JP5</code> for military kerosene JP-5<br>– <code>JP8</code> for military kerosene JP-8<br>– <code>MO\_GAS</code> for regular automotive gasoline<br>– <code>DIESEL</code> for regular automotive diesel<br><br><code>null</code> if this information was not added.</p> |
| `price`                 | number          | The unit price for this Fuel Product.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `currency`              | string          | The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letters currency code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `unit`                  | string          | <p>The unit of measure to which the <code>price</code> refers.<br><br>possible values are:<br>– <code>LTR</code> for <a href="https://en.wikipedia.org/wiki/Litre">liters</a><br>– <code>USG</code> for <a href="https://en.wikipedia.org/wiki/Gallon#US_liquid_gallon">US Gallons</a><br>– <code>IMP</code> for <a href="https://en.wikipedia.org/wiki/Gallon#Imperial_gallon">Imperial Gallons</a></p>                                                                                                                                                                                                                                                                                              |
| `limitedAvailability`   | boolean, `null` | <p><code>true</code> indicates that this Fuel Product is available in limited quantity only and that, therefore, operators should make reasonable prior arrangements before planning on uplifting it.<br><br><code>false</code> if the stock level allows usual uplifts to happen without prior arrangement.<br><br>This property only indicates stock levels, and any other prior arrangement required for payment or other purposes is not taken into consideration.</p>                                                                                                                                                                                                                            |
| `minimumVolume`         | number, `null`  | A number between `0` and `999999 that`indicates the minimum volume to which the price is applicable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `maximumVolume`         | number, `null`  | A number between `0` and `999999 that`indicates the minimum volume to which the price is applicable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `selfService`           | boolean, `null` | <p>A boolean which indicates if the fuel is applicable to self-service only.</p><p><code>true</code> indicates that the price is for full service only.</p><p><code>false</code> indicates that the price includes service.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `minimumHandlingWaiver` | number, `null`  | <p>Indicates the minimum amount in <code>unit</code> required to waive handling charges.</p><p>It is a number from <code>0</code> to <code>999999</code>, where <code>999999</code> indicates that handling charges are always applicable.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `parent`                | string          | The AID of the [Provider](/data-models/provider) which offers this Fuel Product.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

### Example <a href="#example" id="example"></a>

```

{
  "type": "JET_A1",
  "unit": "USG",
  "currency": "USD",
  "price": 3.47,
  "limitedAvailability": false,
  "selfService": false,
  "minimumVolume": 0,
  "maximumVolume": 200,
  "minimumHandlingWaiver": 50,
  "aid": "FPR-8P21-2ZOY",
  "parent": "PRV-234K-APDB"
}
```


# Fuel Fee

{% hint style="warning" %}
This object is reserved for future use, and it is currently defaulted to `null` in all API responses.
{% endhint %}


# Webhook

The webhook object is passed using the `POST` REST verb to an URL indicated by the User, to notify a customer's system about events happening in the aviowiki data.

Events represent changes in data, and some information is given to assist the receiving service to select the best course of action to be taken.

The POST requests include a JSON Body and a digital signature in the Header.&#x20;

A webhook notification is made up of a root Notification object and of a Data object, which contains details about the specific notification being sent.

### Notification object

The Notification object is the root object of the JSON passed in the Body of the `POST` request sent to the webhook.

Its properties are:

| Property    | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ----------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `timestamp` | String | The ISO 8601 timestamp of when the change occurred                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `event`     | String | <p>The type of event that this notification refers to. Possible options are:</p><ul><li><code>DATA\_CHANGE</code> for changes in all static datasets. For more information refer to <a href="/pages/-MaTUzycIyo2PNWLinGB#data-changes-notifications">Data Changes Notifications</a>.</li><li><code>FLIGHT\_UPDATE</code> for events detected during a flight. For more information refer to <a href="#flight_update-notifications">Flight Update Notifications</a>.</li></ul> |
| `data`      | Object | A Data object that describes the change being notified. This object's content varies based on the `event`  type. For full details refer to the following paragraphs.                                                                                                                                                                                                                                                                                                          |

### `DATA_CHANGE` notifications

Notifications with `event` `DATA_CHANGE` alert the client about changes in a static dataset, like a new airport being published, or a change in a runway length.

An example of a `DATA_CHANGE` notification is shown below

```
{
  "timestamp": "2021-05-24T15:27:04",
  "event": "DATA_CHANGE",
  "data": {
    "type": "AIRPORT",
    "aid": "APT-1234-ABCD",
    "action": "EDIT",
    "url": "https://api.aviowiki.com/airports/APT-1234-ABCD"
  }
}
```

The Data object in these notifications contains the following properties:

| Property | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| -------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type`   | String | <p>The type of data object that the change affects. Possible options are:</p><ul><li><code>AIRPORT</code> </li><li><code>AIRPORT\_AVAILABILITY</code></li><li><code>RUNWAY</code></li><li><code>PROVIDER</code></li><li><code>PROVIDER\_AVAILABILTY</code></li><li><code>REGION</code></li><li><code>AIRPORT\_NOTES</code></li><li><code>COUNTRY\_NOTES</code></li><li><code>PROVIDER\_PRODUCT</code></li><li><code>FUEL\_PRODUCT</code></li><li><code>FUEL\_COST</code></li><li><code>AIRPORT\_AUTHORITY</code></li><li><code>AIRPORT\_AUTHORITY\_CONTACT</code></li><li><code>COUNTRY\_AUTHORITY</code></li><li><code>COUNTRY\_AUTHORITY\_CONTACT</code></li></ul> |
| `aid`    | String | The AID of the entity affected by this change.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

### `FLIGHT_UPDATE` notifications

Notifications with `event` `FLIGHT_UPDATE` alert the client about changes in the status of an aircraft moving. This data is computed by aviowiki using flight tracking data based on Mode-S, ADS-B and ADS-C messages.

As an example, the body of such notification would look similar to the below

```
{
  "event": "FLIGHT_UPDATE",
  "timestamp": "2022-05-27T09:39:55.501951673",
  "data": {
    "type": "FLIGHT",
    "url": "https://api.aviowiki.com/flights/88bc0cf1-4480-4d4a-b121-136f442e8dfa",
    "id": "88bc0cf1-4480-4d4a-b121-136f442e8dfa",
    "action": "LANDING"
  }
}
```

The Data object in these notifications contains the following properties

| Property | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type`   | String | This is currently a static value always set to `FLIGHT` to indicate that the notification relates to a flight status change.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `id`     | String | The unique id of the flight. This is in UUID Version 4 format. A flight is created when the first event is detected by aviowiki.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `url`    | String | The API URL to retrieve full information about the flight.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `action` | String | <p>Describe the action that the flight has executed and that is being notified.</p><p></p><p>Options currently implemented are:</p><ul><li><code>TAKE\_OFF</code> to indicate the lift-off.</li><li><code>LANDING</code> to indicate the touch-down</li></ul><p>Options reserved but not currently implemented are:</p><ul><li><code>OFF\_BLOCK</code></li><li><code>ON\_BLOCK</code></li><li><code>APPROACH</code></li><li><code>OFF\_ROUTE</code></li><li><code>RETURN\_TO\_STAND</code></li><li><code>INITIATE\_EMERGENCY</code></li><li><code>END\_EMERGENCY</code></li><li><code>DIVERSION</code></li></ul> |

### Security

Webhook notifications are served over a TLS connection to the endpoint specified when creating the subscription. To make sure that webhooks are correctly delivered, please make sure that your client is capable of TLS version 1.2 or above, and that the connection is secure by a trusted certificate (you can obtain one for free from [Let's Encrypt](https://letsencrypt.org/)).

Because most of the content of a web request can be spoofed, all our webhooks are served with a Header that contains a digital signature of the content. When you create a new webhook subscription, you are provided with a `secret` string, which is the private key used to generate such signatures.

The header containing the signature is called `aviowiki-signature` and it looks something like this:

`t=1637657904997,v1=f2f04243c4794a9c359691c8a88d4c8681d128184647af2e0bf4133b90d05322`

As you can see the header is divided into two parts: `t` and `v1`. `t` contains a timestamp, while the `v1` parameter is the HMAC signature of the request body.

To verify the signature, you should follow the steps below.

#### Step 1: Extract the timestamp and signatures from the header

Split the header, using the `,` character as the separator, to get a list of elements. Then split each element, using the `=` character as the separator, to get a prefix and value pair.

The value for the prefix `t` corresponds to the timestamp, and `v1` corresponds to the signature. You can discard all other elements.

#### Step 2: Prepare the `signed_payload` string <a href="#prepare-payload" id="prepare-payload"></a>

The `signed_payload` string is created by concatenating:

* The timestamp (as a string)
* The character `.`
* The actual JSON payload (i.e., the request body)

#### Step 3: Determine the expected signature <a href="#determine-expected-signature" id="determine-expected-signature"></a>

Compute an HMAC with the SHA256 hash function. Use the endpoint’s signing `secret` as the key, and use the `signed_payload` string as the message.

#### Step 4: Compare the signatures <a href="#compare-signatures" id="compare-signatures"></a>

Compare the signature in the header to the expected signature. For an equality match, compute the difference between the current timestamp and the received timestamp, then decide if the difference is within your tolerance.

To protect against timing attacks, use a constant-time string comparison to compare the expected signature to the received signature.


# Error

Should an error occur with your request, the aviowiki API will reply with an HTTP response code in the `4xx` or `5xx` range, depending on the type of error.

Errors in the `4xx` range relate to client errors, meaning that something unexpected happened with data supplied or an action requested by the client. This could be bad format or invalid authentication for example.

Errors in the `5xx` range relate to server errors, meaning that an unexpected exception happened in our backend while trying to serve your request.

When an error code is returned, the body of the response will contain a JSON object with the following properties:

| **Property** | **Type** | **Description**                                                                                                                                                     |
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `timestamp`  | string   | The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) formatted date and time of when the error occurred on the server. For example `2019-08-30T13:23:32.163+0000` |
| `status`     | number   | The HTTP response code returned. For example `403`                                                                                                                  |
| `error`      | string   | A description of the HTTP response code returned.                                                                                                                   |
| `message`    | string   | A human-readable message explaining what generated the error.                                                                                                       |
| `path`       | string   | The resource path that was requested. This does not include the base URL. For example `/airports/search`.                                                           |

### Example

```
{
  "timestamp": "2019-08-30T13:23:32.163+0000",
  "status": 403,
  "error": "Forbidden",
  "message": "Token expired",
  "path": "/airports/search"
}
```


# Operational Note


# Airport Operational Note

An Operational Note is a piece of textual information that is intended for [Airport](/data-models/airport) users, and that cannot be otherwise modelled digitally.

Scenarios that should be entered as Operational Notes include occurrences such as potential delays, special events, parking restrictions, etc.

To facilitate the filtering of Operational Notes in client systems, some machine-readable properties are included.

{% hint style="info" %}
Airport Operational Notes should not be used for temporary airport closures, runways closures, or any other information that can be modeled in [Availability](/data-models/availability) or any other part of the data model.
{% endhint %}

| **Property**      | **Type** | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aid`             | string   | A string with the [AID](/conventions/aviowiki-ids) of the Airport Operational Note, with `ONA` as namespace                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `validFrom`       | string   | <p>An ISO 8601 formatted date-time string that indicates when the Operational Note is first in force. This is expressed in Local Time.<br>For example <code>2020-01-30T08:00:00</code>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `validTo`         | string   | <p>An ISO 8601 formatted date-time string that indicates when the Operational Note ceases to be in force. This is expressed in Local Time.<br>For example <code>2020-02-02T18:59:59</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `criticality`     | string   | <p>A string indicating the level of criticality of the Operational Note.<br>Possible values are:</p><ul><li><code>INFORMATION\_ONLY</code> for information that have no operational impact. Knowledge is considered relevant to make the operations smoother, but no operational impact arises from not knowing of it. For example: <em>JET-A1 pressurized refuelling not available. Only overwing refuelling possible.</em></li><li><code>OPERATIONALLY\_RELEVANT</code> for information that may have an operational impact, but is not critical. Not knowing such information will likely have a minor operational impact in the form of delays or inconvenient to the crew or passengers. The flight can still take place under all circumstances. For example: <em>Parking stands in front of the FBO are closed due to Work In Progress. Only remote stands available with a car transfer to the FBO</em>.</li><li><code>OPERATIONALLY\_CRITICAL</code> for information that is relevant and critical. Not knowing will likely have a major operational impact up to refusal of service. Performance of a flight might not be possible in all conditions. For example: <em>ILS CAT I inoperative</em>, or <em>JET-A1 fuel not available</em>.</li></ul>                                                                                                                                                                                                                                                                                                                                        |
| `source`          | string   | <p>A description of where this information was originated.<br>For example <em>Airport Authority</em> or <em>Ground Handler</em> or <em>Local news</em>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `category`        | string   | <p>A string that indicates what the Airport Operational Note is about.<br>Possible  values are:</p><ul><li><code>RUNWAY</code> For runways and other take-off and landing surfaces.</li><li><code>AIRLINES\_TERMINAL</code> For the terminal building and connected services that are used by scheduled airlines. </li><li><code>GENERAL\_AVIATION\_TERMINAL</code> For the terminal building and connected services that are used by General and Business Aviation.</li><li><code>FUEL</code> For all fuel supplies.</li><li><code>PARKING</code> For parking availability and restrictions.</li><li><code>TAXIWAYS</code> For all taxiways and taxilanes.</li><li><code>WEATHER</code> For weather phenomena affecting the airport.</li><li><code>PROCEDURES</code> For special or non-standard procedures that are in place at the airport.</li><li><code>EVENTS</code> For events affecting airport traffic, such as airshows.</li><li><code>COSTS</code> For extraordinary costs that airport users should be aware of.</li><li><code>STRIKES</code> For upcoming personnel strikes that might affect airport operations.</li><li><code>IMMIGRATION</code> For all airport-specific immigration issues.</li><li><code>DELAYS</code> For upcoming events that are expected to bring delays, but are not included in any other more specific category above.</li><li><code>RISK</code> For all safety and security risks related to airport operations.</li><li><code>RESTRICTIONS</code> For all temporary restrictions that cannot be documented in other parts of the Airport model.</li></ul> |
| `affectedTraffic` | list     | This object is reserved for future use, and it is currently defaulted to `null` in all API responses.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `notes`           | string   | <p>The text of the information that is to be displayed to the human.<br>For example <em>JET-A1 pressurized refuelling not available</em></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `parent`          | string   | The [AID](/conventions/aviowiki-ids) of the [Airport](/data-models/airport) at which this Operational Note is applicable                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |


# Country Operational Note

An Operational Note is a piece of textual information that is intended for [Country](/data-models/country) users, and that cannot be otherwise modelled digitally.

Scenarios that should be entered as Operational Notes include occurrences such as special events and restrictions, etc.

<table><thead><tr><th width="241">Property</th><th width="137">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>aid</code></td><td>string</td><td>A string with the <a href="https://docs.aviowiki.com/conventions/aviowiki-ids">AID</a> of the Country Operational Note, with <code>ONA</code> as namespace</td></tr><tr><td><code>validFrom</code></td><td>string</td><td>An ISO 8601 formatted date-time string that indicates when the Operational Note is first in force. This is expressed in Local Time. For example <code>2020-01-30T08:00:00</code>.</td></tr><tr><td><code>validTo</code></td><td>string</td><td>An ISO 8601 formatted date-time string that indicates when the Operational Note ceases to be in force. This is expressed in Local Time.<br>For example <code>2020-02-02T18:59:59.</code></td></tr><tr><td><code>source</code></td><td>string</td><td>A description of where this information was originated.<br>For example <em>Airport Authority</em> or <em>NOTAM</em> or <em>Local news</em>.</td></tr><tr><td><code>criticality</code></td><td>string</td><td><p>A string indicating the level of criticality of the Operational Note.<br>Possible values are:</p><ul><li><code>INFORMATION_ONLY</code> for information that have no operational impact. Knowledge is considered relevant to make the operations smoother, but no operational impact arises from not knowing of it.</li><li><code>OPERATIONALLY_RELEVANT</code> for information that may have an operational impact, but is not critical. Not knowing such information will likely have a minor operational impact in the form of delays or inconvenient to the crew or passengers. The flight can still take place under all circumstances. For example: <em>Temporary military exercises.</em></li><li><code>OPERATIONALLY_CRITICAL</code> for information that is relevant and critical. Not knowing will likely have a major operational impact up to refusal of service. Performance of a flight might not be possible in all conditions. For example: w<em>idespread fuel shortages, volcanic activity, strikes and no-fly/conflict zones</em></li></ul></td></tr><tr><td><code>notes</code></td><td>string</td><td>The text of the information that is to be displayed to the human.<br><em>Due to ongoing armed conflict, all airports are closed until further notice.</em> </td></tr><tr><td><code>category</code></td><td></td><td><p>A string that indicates what the Airport Operational Note is about.<br>Possible  values are:<br></p><ul><li><code>WEATHER</code> For weather phenomena affecting the airport.</li><li><code>PROCEDURES</code> For special or non-standard procedures that are in place at the airport.</li><li><code>EVENTS</code> For events affecting airport traffic, such as airshows.</li><li><code>COSTS</code> For extraordinary costs that airport users should be aware of.</li><li><code>STRIKES</code> For upcoming personnel strikes that might affect airport operations.</li><li><code>IMMIGRATION</code> For all airport-specific immigration issues.</li><li><code>DELAYS</code> For upcoming events that are expected to bring delays, but are not included in any other more specific category above.</li><li><code>RISK</code> For all safety and security risks related to airport operations.</li><li><code>RESTRICTIONS</code> For all temporary restrictions that cannot be documented in other parts of the Airport model.</li></ul></td></tr><tr><td><code>affectedTraffic</code></td><td>list</td><td>This object is reserved for future use, and it is currently defaulted to <code>null</code> in all API responses.</td></tr><tr><td><code>parent</code></td><td>string</td><td>The <a href="/pages/-MSK0yT0xbFHC0I8opdb">AID</a> of the Country which this Operational Note is applicable.</td></tr></tbody></table>

### Example

```
  {
    "validFrom": "2024-01-15T09:03:04.448",
    "validTo": "2099-12-31T23:59:59",
    "source": "NOTAM",
    "criticality": "OPERATIONALLY_CRITICAL",
    "notes": "Due to ongoing armed conflict, all airports are closed until further notice. ",
    "category": "EVENTS",
    "affectedTraffic": null,
    "parent": {
      "iso2": "MX",
      "iso3": "MEX",
      "isoNumeric": 484,
      "name": "Mexico",
      "officialName": "United Mexican States",
      "localIdentifierName": null
    },
    "aid": "ONC-9C2R-QYYM",
    "kind": "COUNTRY"
  }
```


# Region Operational Note

{% hint style="info" %}

## To be published soon

This page will be published soon on our new shiny open documentation!

If you would like to request a static copy of the documentation for this endpoint, please write us an email to <support@aviowiki.com>
{% endhint %}


# Limitations

At aviowiki, we believe that certain pieces of information are just public knowledge.

Although we take pride in accurately collecting, carefully curating, precisely storing and easily serving them, we still want to make such information available to the larger public for free.

The endpoints in this section can be accessed by anybody for free with no restrictions and no need for authentication.

For the security of our systems, we have some soft limits in place also on these endpoints. If you think you’re going to use more than what’s listed below, you can [issue yourself a free API token](https://app.aviowiki.com/user/tokens) that allows you to go beyond such restrictions.

These are your limits for free endpoints, without using an API token:

* Maximum of 750 requests every 60 minutes from a single IP address, and
* maximum of 7,500 requests every 24 hours from a single IP address.


# Free airport endpoints


# Airport data

## Get airport data by ICAO code

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/free/airports/icao/{icao}`

#### Path Parameters

| Name                                   | Type   | Description              |
| -------------------------------------- | ------ | ------------------------ |
| icao<mark style="color:red;">\*</mark> | String | ICAO code of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Get airport data by IATA code

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/free/airports/iata/{iata}`

#### Path Parameters

| Name                                   | Type   | Description         |
| -------------------------------------- | ------ | ------------------- |
| iata<mark style="color:red;">\*</mark> | String | IATA of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Get airport data by local identifier code

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/free/airports/localIdentifier/{localIdentifier}`

#### Path Parameters

| Name                                              | Type   | Description                     |
| ------------------------------------------------- | ------ | ------------------------------- |
| localIdentifier<mark style="color:red;">\*</mark> | String | Local identifier of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


# Searching airports

## Searching using a query

## Search Airports using a text query

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/free/airports/search`

This endpoint allows you to conduct an airport search using a free-text query string.

#### Query Parameters

| Name  | Type   | Description                                                                     |
| ----- | ------ | ------------------------------------------------------------------------------- |
| page  | number | The page number for pagination, starting from \`0\` to indicate the first page. |
| size  | number | The number of results in a page, for pagination.                                |
| query | string | The query string you want to look for.                                          |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200 The query succeeded and 0 or more results are returned." %}

```
{
  "page": {
    "number": 0,
    "size": 10,
    "totalPages": 1,
    "totalResults": 2
  },
  "content": [
    {
      "country": {
        "iso2": "GB",
        "iso3": "GBR",
        "isoNumeric": 826,
        "name": "United Kingdom",
        "officialName": "United Kingdom of Great Britain and Northern Ireland"
      },
      "timeZone": "Europe/London",
      "aid": "APT-FO61-WBTO",
      "coordinates": {
        "latitude": 51.4775,
        "longitude": -0.4613889
      },
      "icao": "EGLL",
      "iata": "LHR",
      "faa": null,
      "servedCity": "London",
      "servedCityGoverningDistrict": null,
      "name": "Heathrow Airport"
    },
    {
      "country": {
        "iso2": "US",
        "iso3": "USA",
        "isoNumeric": 840,
        "name": "United States",
        "officialName": "United States of America"
      },
      "timeZone": "America/Chicago",
      "aid": "APT-PEKY-N349",
      "coordinates": {
        "latitude": 44.4641394,
        "longitude": -89.3587256
      },
      "icao": null,
      "iata": null,
      "faa": "WS14",
      "servedCity": "Amherst, WI",
      "servedCityGoverningDistrict": {
        "code": "US-WI",
        "name": "Wisconsin",
        "administrativeType": "State"
      },
      "name": "Lake Ell Field"
    }
  ]
}
```

{% endtab %}
{% endtabs %}

### Format of the returned  objects

The response will be a Paged List of results. Each result object contains a limited set of information that we consider to be essential to identify a location.

For this endpoint the properties available in the response are:

<table data-header-hidden><thead><tr><th>Property</th><th width="229.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>Property</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td><code>aid</code></td><td>string</td><td>A string with the AID of the airport, with <code>APT</code> as namespace</td></tr><tr><td><code>icao</code></td><td>string, <code>null</code></td><td>A string with the 4-letters <a href="https://en.wikipedia.org/wiki/ICAO_airport_code">ICAO code</a> of the airport, or<code>null</code> if none is assigned</td></tr><tr><td><code>iata</code></td><td>string, <code>null</code></td><td>A string with the 3-letters <a href="https://en.wikipedia.org/wiki/IATA_airport_code">IATA code</a> of the airport, or <code>null</code> if none is assigned.</td></tr><tr><td><code>faa</code></td><td>string, <code>null</code></td><td>A string with the <a href="https://en.wikipedia.org/wiki/Location_identifier#FAA_identifier">FAA code</a>, or <code>null</code> if none is assigned.</td></tr><tr><td><code>coordinates</code></td><td>object, <code>null</code></td><td>A Coordinates object which represents the location of the <a href="https://en.wikipedia.org/wiki/Airport_reference_point">Aerodrome Reference Point</a>.<br>This is <code>null</code> when the information is not known.</td></tr><tr><td><code>country</code></td><td>object, <code>null</code></td><td>A Country object which represents the country at which an airport is located.<br><code>null</code> if this is not known.</td></tr><tr><td><code>timeZone</code></td><td>string, <code>null</code></td><td>The timezone of the airfield as noted in the <a href="https://en.wikipedia.org/wiki/Tz_database">IANA Time Zone Database</a>.<br><code>null</code> indicates that this information is not available.</td></tr><tr><td><code>name</code></td><td>string, <code>null</code></td><td>The name of the airport. This should be the official name of the airport written in Latin characters.</td></tr><tr><td><code>servedCity</code></td><td>string, <code>null</code></td><td>A string containing the name of the city served by the airport. In some countries, like the USA, this includes the state. For example: <code>Los Angeles, CA</code>.<br>This is <code>null</code> when the information is not known.</td></tr></tbody></table>


# Airport endpoints


# Searching airports

## Search for airports using a text query or additional options and filters.

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/search`

This endpoint allows you to conduct an airport search using a free-text query string. It further allows to restrict the search results to certain locations based on filters passed as query parameters.

#### Query Parameters

| Name                | Type    | Description                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| query               | String  | The query string (name, city etc.) you want to look for.                                                                                                                                                                                                                                                                                                                                              |
| page                | Number  | The page number for pagination, starting from `0` to indicate the first page. Default: `0`                                                                                                                                                                                                                                                                                                            |
| size                | Number  | The number of results in a page, for pagination. Default: `10`                                                                                                                                                                                                                                                                                                                                        |
| types               | List    | <p>A comma-separated list of <a href="#undefined">airport</a> types to return. Possible options are <code>AIRPORT</code>, <code>HELIPORT</code>, <code>AIRSTRIP</code>, <code>WATER</code>.</p><p>If set it limits the returned locations to those with matching types in the <code>type</code> field.</p>                                                                                            |
| accepts             | List    | <p>A comma-separated list of the accepted types of traffic. Possible options are <code>SCHEDULED</code>, <code>NON\_SCHEDULED</code>, <code>GENERAL\_AVIATION</code>, <code>TRAINING</code>, <code>BUSINESS\_AVIATION</code>, <code>MILITARY</code>, <code>HELICOPTER</code>.</p><p>If set it limits the returned locations to those with matching types in the <code>accessibleFor</code> field.</p> |
| requiresPermission  | Boolean | <p>If set to <code>true</code>, returns locations that have any value in <code>nonScheduledPermission</code> except for <code>NONE</code> or <code>null</code>.</p><p>If set to <code>false</code>, returns location that have only <code>NONE</code> or <code>null</code> as <code>nonScheduledPermission</code>.</p>                                                                                |
| isVfr               | Boolean | <p>If set to <code>true</code>, returns locations that allow VFR traffic.</p><p>If set to <code>false</code>, returns locations that </p>                                                                                                                                                                                                                                                             |
| regions             | List    |                                                                                                                                                                                                                                                                                                                                                                                                       |
| country             | String  |                                                                                                                                                                                                                                                                                                                                                                                                       |
| countries           | List    |                                                                                                                                                                                                                                                                                                                                                                                                       |
| governingDistrict   | String  |                                                                                                                                                                                                                                                                                                                                                                                                       |
| minimumRunwayLength | Double  | <p>Minimum runway TORA the returned airports need to have. <br>If set, it limits the returned locations to those that have at least one runway with TORA at least <code>minimumRunwayLength</code>.</p>                                                                                                                                                                                               |
| maximumRunwayLength | Double  | <p>Maximum TORA the returned airports need to have. <br>If set, it limits the returned locations to those that's runways have TORA at most <code>maximumRunwayLength</code>.</p>                                                                                                                                                                                                                      |
| minimumRunwayWidth  | Double  | <p>Minimum runway width the returned airports need to have. <br>If set, it limits the returned locations to those that have at least one runway with width at least <code>minimumRunwayWidth</code>.</p>                                                                                                                                                                                              |
| maximumElevation    | Double  | <p>Maximum elevation the returned airports need to have.<br>If set, it limits the returned locations to those that have elevation at most <code>maximumElevation</code>.</p>                                                                                                                                                                                                                          |
| latitude            | Double  | Latitude of the reference point to search locations around.                                                                                                                                                                                                                                                                                                                                           |
| longitude           | Double  | Longitude of the reference point to search locations around.                                                                                                                                                                                                                                                                                                                                          |
| distance            | Double  | Maximum great circle distance in kilometers the returned locations need to be from the reference point set by the `latitude` and `longitude` parameters. Default: `100`                                                                                                                                                                                                                               |

#### Headers

| Name                                            | Type   | Description                              |
| ----------------------------------------------- | ------ | ---------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Paginated airport list" %}
Detailed properties of the pagination can be found at [Pagination](/conventions/pagination).&#x20;

Properties of the contained airports:

{% tabs %}
{% tab title="Response properties" %}

{% endtab %}

{% tab title="Example response" %}

```
{
	"page": {
		"number": 0,
		"size": 10,
		"totalPages": 1,
		"totalResults": 1
	},
	"content": [
		{
			"name": "John F. Kennedy International ",
			"country": {
				"iso2": "US",
				"iso3": "USA",
				"isoNumeric": 840,
				"name": "United States",
				"officialName": "United States of America",
				"localIdentifierName": null
			},
			"timeZone": "America/New_York",
			"aid": "APT-KS1J-8E0L",
			"coordinates": {
				"latitude": 40.6399278,
				"longitude": -73.7786944
			},
			"icao": "KJFK",
			"iata": "JFK",
			"localIdentifier": "JFK",
			"servedCityGoverningDistrict": {
				"code": "US-NY",
				"name": "New York",
				"administrativeType": "State"
			},
			"servedCity": "New York",
			"elevation": 3.96,
			"longestRunwayLength": 3800.25,
			"widestRunwayWidth": 60.96,
			"openingIndicator": "OPEN",
			"icon": "CIVIL",
			"distanceFromSearchCoordinates": null,
			"operationalStatus": null
		}
	]
}
```

{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

<table data-header-hidden><thead><tr><th width="228.87373263824156">Property</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>Property</td><td>Type</td><td>Description</td></tr><tr><td><code>aid</code></td><td>String</td><td><a href="/pages/-MSK0yT0xbFHC0I8opdb">Aviowiki ID</a> of the airport, with <code>APT</code> as namespace</td></tr><tr><td><code>name</code></td><td>String</td><td>The name of the airport. This should be the official name of the airport written in Latin characters.</td></tr><tr><td><code>country</code></td><td><a href="/pages/-MUP3Jkil0DeGQKvY9rY">Country</a></td><td>A <a href="/pages/-MUP3Jkil0DeGQKvY9rY">Country</a> object which represents the country at which an airport is located.</td></tr><tr><td><code>timeZone</code></td><td>String</td><td>The time-zone of the airfield as noted in the <a href="https://en.wikipedia.org/wiki/Tz_database">IANA Time Zone Database</a>.<br>Defaults to <code>null</code> when this information is not available.</td></tr><tr><td><code>coordinates</code></td><td><a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a></td><td> <a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a> object which represents the location of the <a href="https://en.wikipedia.org/wiki/Airport_reference_point">Aerodrome Reference Point</a>.<br>Defaults to <code>null</code> if the information is not known.</td></tr><tr><td><code>icao</code></td><td>String</td><td>A string with the 4-letters ICAO code of the airport, or <code>null</code> if none is assigned</td></tr><tr><td><code>iata</code></td><td>String</td><td>A string with the 3-letters IATA code of the airport, or <code>null</code> if none is assigned.</td></tr><tr><td><code>localIdentifier</code></td><td>String</td><td>An identifier issued by the local authority, which is not recognised as an official ICAO or IATA code.<br>The name of the code for each country can be found in <code>Country.localIdentifierName</code></td></tr><tr><td><code>servedCityGoverningDistrict</code></td><td><a href="/pages/-MUP3MbAxRd8xQy0tsME">Governing District</a></td><td><p>A <a href="/pages/-MUP3MbAxRd8xQy0tsME">Governing District</a> object indicating the Governing District of the <code>servedCity</code>.</p><p></p><p>Defaults to <code>null</code> when the information is not known.</p></td></tr><tr><td><code>servedCity</code></td><td>String</td><td><p>A string containing the name of the city served by the airport.</p><p><br>Defaults to <code>null</code> when the information is not known.</p></td></tr><tr><td><code>elevation</code></td><td>Decimal</td><td>A decimal number representing the elevation of the airport expressed in meters. Two decimal positions are provided, for precise conversion to feet.<br><br>Defaults to <code>null</code> when the information is not known.</td></tr><tr><td><code>longestRunwayLength</code></td><td>Decimal</td><td>Longest runway length expressed in meters with precision up to two decimal positions.<br><br>Defaults to <code>null</code> when this information is not available.</td></tr><tr><td><code>widestRunwayWidth</code></td><td>Decimal</td><td>The widest runway width expressed in meters with precision up to two decimal positions.<br><br>Defaults to <code>null</code> when this information is not available.</td></tr><tr><td><code>openingIndicator</code></td><td>String</td><td>Opening indicator flag taking into consideration the 4 types of airport availability. For details see <a href="/pages/-MUP3E2gh6HIUla58k7Q#the-openingindicator-flag">opening indicator</a> section.<br>Available values: <code>OPEN</code>, <code>SEE_TIMES</code>, <code>CLOSED</code>, <code>UNKNOWN</code><br><br>Defaults to <code>null</code> when this information is not available.</td></tr><tr><td><code>distanceFromSearchCoordinates</code></td><td>Decimal</td><td>Distance from the search coordinates given in the query expressed in kilometers with precision up to two decimal positions.<br><br>Defaults to <code>null</code> when no search coordinates were given in the query.</td></tr><tr><td><code>operationalStatus</code></td><td>String</td><td>Worst criticality of the valid <a href="/pages/-MUP3f-B0M6hQRc-XTlO">operational notes</a> for the airport. Available values: <br><code>INFORMATION_ONLY</code>, <code>OPERATIONALLY_RELEVANT</code><em>,</em> <code>OPERATIONALLY_CRITICAL</code><br><br>Defaults to <code>null</code> when no operational notes are present for the airport.</td></tr></tbody></table>

## Retrieve random airports

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/search/random`

#### Query Parameters

| Name | Type   | Description                                                                     |
| ---- | ------ | ------------------------------------------------------------------------------- |
| page | Number | The page number for pagination, starting from \`0\` to indicate the first page. |
| size | Number | The number of results in a page, for pagination                                 |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Paginated airport list" %}
{% tabs %}
{% tab title="Response properties" %}

{% endtab %}

{% tab title="Example response" %}

```
{
	"page": {
		"number": 0,
		"size": 1,
		"totalPages": 10000,
		"totalResults": 10000
	},
	"content": [
		{
			"name": "Rundu Airport",
			"country": {
				"iso2": "NA",
				"iso3": "NAM",
				"isoNumeric": 516,
				"name": "Namibia",
				"officialName": "Republic of Namibia",
				"localIdentifierName": null
			},
			"timeZone": "Africa/Windhoek",
			"aid": "APT-NYRI-716E",
			"coordinates": {
				"latitude": -17.9561111,
				"longitude": 19.7205556
			},
			"icao": "FYRU",
			"iata": "NDU",
			"localIdentifier": null,
			"servedCityGoverningDistrict": null,
			"servedCity": null,
			"aid": "APT-NYRI-716E",
			"elevation": 1106.0,
			"longestRunwayLength": 3354.0,
			"widestRunwayWidth": 30.0,
			"openingIndicator": "UNKNOWN",
			"icon": "OTHER",
			"distanceFromSearchCoordinates": null,
			"operationalStatus": null
		}
	]
}
```

{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

{% endtab %}
{% endtabs %}

<table data-header-hidden><thead><tr><th width="228.87373263824156">Property</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>Property</td><td>Type</td><td>Description</td></tr><tr><td><code>name</code></td><td>String</td><td>The name of the airport. This should be the official name of the airport written in Latin characters.</td></tr><tr><td><code>country</code></td><td><a href="/pages/-MUP3Jkil0DeGQKvY9rY">Country</a></td><td>A <a href="/pages/-MUP3Jkil0DeGQKvY9rY">Country</a> object which represents the country at which an airport is located.</td></tr><tr><td><code>timeZone</code></td><td>String</td><td>The time-zone of the airfield as noted in the <a href="https://en.wikipedia.org/wiki/Tz_database">IANA Time Zone Database</a>.<br>Defaults to <code>null</code> when this information is not available.</td></tr><tr><td><code>aid</code></td><td>String</td><td><a href="/pages/-MSK0yT0xbFHC0I8opdb">Aviowiki ID</a> of the airport, with <code>APT</code> as namespace</td></tr><tr><td><code>coordinates</code></td><td><a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a></td><td> <a href="/pages/-MUP3HHnqurT_QdZAc3T">Coordinates</a> object which represents the location of the <a href="https://en.wikipedia.org/wiki/Airport_reference_point">Aerodrome Reference Point</a>.<br>Defaults to <code>null</code> if the information is not known.</td></tr><tr><td><code>icao</code></td><td>String</td><td>A string with the 4-letters ICAO code of the airport, or <code>null</code> if none is assigned</td></tr><tr><td><code>iata</code></td><td>String</td><td>A string with the 3-letters IATA code of the airport, or <code>null</code> if none is assigned.</td></tr><tr><td><code>localIdentifier</code></td><td>String</td><td>An identifier issued by the local authority, which is not recognised as an official ICAO or IATA code.<br>The name of the code for each country can be found in <code>Country.localIdentifierName</code></td></tr><tr><td><code>servedCityGoverningDistrict</code></td><td><a href="/pages/-MUP3MbAxRd8xQy0tsME">Governing District</a></td><td><p>A <a href="/pages/-MUP3MbAxRd8xQy0tsME">Governing District</a> object indicating the Governing District of the <code>servedCity</code>.</p><p></p><p>Defaults to <code>null</code> when the information is not known.</p></td></tr><tr><td><code>servedCity</code></td><td>String</td><td><p>A string containing the name of the city served by the airport.</p><p><br>Defaults to <code>null</code> when the information is not known.</p></td></tr><tr><td><code>elevation</code></td><td>Decimal</td><td>A decimal number representing the elevation of the airport expressed in meters. Two decimal positions are provided, for precise conversion to feet.<br><br>Defaults to <code>null</code> when the information is not known.</td></tr><tr><td><code>longestRunwayLength</code></td><td>Decimal</td><td>Longest runway length expressed in meters with precision up to two decimal positions.<br><br>Defaults to <code>null</code> when this information is not available.</td></tr><tr><td><code>widestRunwayWidth</code></td><td>Decimal</td><td>The widest runway width expressed in meters with precision up to two decimal positions.<br><br>Defaults to <code>null</code> when this information is not available.</td></tr><tr><td><code>openingIndicator</code></td><td>String</td><td>Opening indicator flag taking into consideration the 4 types of airport availability. For details see <a href="/pages/-MUP3E2gh6HIUla58k7Q#the-openingindicator-flag">opening indicator</a> section.<br>Available values: <code>OPEN</code>, <code>SEE_TIMES</code>, <code>CLOSED</code>, <code>UNKNOWN</code><br><br>Defaults to <code>null</code> when this information is not available.</td></tr><tr><td><code>distanceFromSearchCoordinates</code></td><td>Decimal</td><td>Distance from the search coordinates given in the query expressed in kilometers with precision up to two decimal positions.<br><br>Defaults to <code>null</code> when no search coordinates were given in the query.</td></tr><tr><td><code>operationalStatus</code></td><td>String</td><td>Worst criticality of the valid <a href="/pages/-MUP3f-B0M6hQRc-XTlO">operational notes</a> for the airport. Available values: <br><code>INFORMATION_ONLY</code>, <code>OPERATIONALLY_RELEVANT</code><em>,</em> <code>OPERATIONALLY_CRITICAL</code><br><br>Defaults to <code>null</code> when no operational notes are present for the airport.</td></tr></tbody></table>


# Airport data

## Get full airport data

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Airport details" %}
The detailed properties of the returned object can be found in the documentation of the [Airport](/data-models/airport) data model.

```json
{
	"icao": "KJFK",
	"iata": "JFK",
	"localIdentifier": "JFK",
	"name": "John F. Kennedy International ",
	"servedCity": "New York",
	"servedCityGoverningDistrict": {
		"code": "US-NY",
		"name": "New York",
		"administrativeType": "State"
	},
	"administrativeCity": null,
	"administrativeCityGoverningDistrict": null,
	"elevation": 3.96,
	"coordinates": {
		"latitude": 40.6399278,
		"longitude": -73.7786944
	},
	"variation": -13.00,
	"country": {
		"iso2": "US",
		"iso3": "USA",
		"isoNumeric": 840,
		"name": "United States",
		"officialName": "United States of America",
		"localIdentifierName": null
	},
	"timeZone": "America/New_York",
	"perimeter": null,
	"type": "AIRPORT",
	"operator": "PUBLIC",
	"accessibleFor": [
		"SCHEDULED",
		"NON_SCHEDULED",
		"GENERAL_AVIATION",
		"MILITARY",
		"BUSINESS_AVIATION"
	],
	"ifr": true,
	"nonScheduledPermission": "NONE",
	"nonScheduledPermissionNotes": null,
	"mandatoryHandling": false,
	"mandatoryQualification": false,
	"qualificationLink": null,
	"qualificationNotes": null,
	"weightLimit": 9999999.00,
	"wingspanLimit": 999.00,
	"paxLimit": 999,
	"referenceWeatherStation": null,
	"aid": "APT-KS1J-8E0L"
}
```

{% endtab %}

{% tab title="404: Not Found Airport by the given Aviowiki ID does not exist." %}

```json
{
	"error": "The Airport identified by {AID} does not exist.",
	"timestamp": "2022-07-14T11:45:53.093205678Z",
	"status": 404,
	"message": "The Airport identified by {AID} does not exist.",
	"path": "/airports/{AID}"
}
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

{% endtab %}
{% endtabs %}

Retrieving airport data by ICAO, IATA and local identifiers is also possible, for more information view [Free airport endpoints](https://app.gitbook.com/s/-MS2fBXSpqyanE1zUgLP/~/changes/azyVdsTRjG0nkFbEtlIg/free-endpoints/free-airport-endpoints/airport-data).


# Authorities at an airport

## Get all the authorities at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/airportAuthorities/all`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The detailed properties of one returned set item can be found in the [Airport Authority](/data-models/authority#airport-authority) documentation.

```json
[
	{
		"type": "CUSTOMS",
		"name": "CBP General Aviation",
		"landsideArea": null,
		"airsideArea": null,
		"customsDetails": null,
		"parent": "APT-KS1J-8E0L",
		"aid": "AAU-HZK3-O7WM",
		"kind": "AIRPORT"
	},
	{
		"type": "OWNER",
		"name": "Port Authority of New York and New Jersey",
		"landsideArea": null,
		"airsideArea": null,
		"customsDetails": null,
		"parent": "APT-KS1J-8E0L",
		"aid": "AAU-VD0K-XUFQ",
		"kind": "AIRPORT"
	}
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Get paged authorities at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/airportAuthorities`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name | Type   | Description                                                                     |
| ---- | ------ | ------------------------------------------------------------------------------- |
| page | Number | The page number for pagination, starting from \`0\` to indicate the first page. |
| size | Number | The number of results in a page, for pagination.                                |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The properties of the pagination can be found at [Pagination](/conventions/pagination). The detailed properties of one returned set item can be found in the [Airport Authority](/data-models/authority#airport-authority) documentation.

```json
{
	"page": {
		"number": 0,
		"size": 10,
		"totalPages": 1,
		"totalResults": 2
	},
	"content": [
		{
			"type": "CUSTOMS",
			"name": "CBP General Aviation",
			"landsideArea": null,
			"airsideArea": null,
			"customsDetails": null,
			"parent": "APT-KS1J-8E0L",
			"aid": "AAU-HZK3-O7WM",
			"kind": "AIRPORT"
		},
		{
			"type": "OWNER",
			"name": "Port Authority of New York and New Jersey",
			"landsideArea": null,
			"airsideArea": null,
			"customsDetails": null,
			"parent": "APT-KS1J-8E0L",
			"aid": "AAU-VD0K-XUFQ",
			"kind": "AIRPORT"
		}
	]
}
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


# Availability of an airport

## Get 24 hours of availability information starting from specified date and time.

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/availability`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name     | Type    | Description                                                                                                                                 |
| -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| dateTime | String  | Range start for the availability retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                              |
| local    | Boolean | Whether to use local time or UTC. If `true` the `dateTime` query parameter  shall be provided in local time as well. Default value: `false` |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful" %}
The detailed properties of the returned item can be found in the [Availability ](/data-models/availability)documentation.

```json
{
	"openingIndicator": "SEE_TIMES",
	"arff": [
		{
			"validFrom": "2022-07-26T00:00:00",
			"validTo": "2022-07-26T00:29:59.999999999",
			"status": "FULL",
			"info": {
				"icaoCatAirplane": "IX",
				"faaCatAirplane": null,
				"faa139Certified": null,
				"catHelicopters": null,
				"waterQuantity": null,
				"complementaryQuantity": null,
				"arffVehicles": null,
				"dischargeCapacity": null,
				"extensionAvailable": true,
				"extensionNotice": null,
				"extensionUpToIcao": "X",
				"firestationRemote": null,
				"firestationNotes": ""
			}
		},
		{
			"validFrom": "2022-07-26T00:30:00",
			"validTo": "2022-07-26T05:59:59.999999999",
			"status": "FULL",
			"info": {
				"icaoCatAirplane": "VII",
				"faaCatAirplane": null,
				"faa139Certified": null,
				"catHelicopters": null,
				"waterQuantity": null,
				"complementaryQuantity": null,
				"arffVehicles": null,
				"dischargeCapacity": null,
				"extensionAvailable": true,
				"extensionNotice": null,
				"extensionUpToIcao": "IX",
				"firestationRemote": null,
				"firestationNotes": ""
			}
		},
		{
			"validFrom": "2022-07-26T06:00:00",
			"validTo": "2022-07-26T23:59:59.999999999",
			"status": "FULL",
			"info": {
				"icaoCatAirplane": "IX",
				"faaCatAirplane": null,
				"faa139Certified": null,
				"catHelicopters": null,
				"waterQuantity": null,
				"complementaryQuantity": null,
				"arffVehicles": null,
				"dischargeCapacity": null,
				"extensionAvailable": true,
				"extensionNotice": null,
				"extensionUpToIcao": "X",
				"firestationRemote": null,
				"firestationNotes": ""
			}
		}
	],
	"atc": [
		{
			"validFrom": "2022-07-26T00:00:00",
			"validTo": "2022-07-26T23:59:59.999999999",
			"status": "FULL",
			"info": {
				"enRtfAvailable": true,
				"afisOnly": null
			}
		}
	],
	"ciq": [
		{
			"validFrom": "2022-07-26T00:00:00",
			"validTo": "2022-07-26T23:59:59.999999999",
			"status": "FULL"
		}
	],
	"movement": [
		{
			"validFrom": "2022-07-26T00:00:00",
			"validTo": "2022-07-26T00:29:59.999999999",
			"status": "LIMITED",
			"info": {
				"openFor": [
					{
						"flightTypes": [
							{
								"rules": [],
								"filing": [],
								"airframe": [],
								"status": [],
								"purpose": [
									"CARGO",
									"TRAINING",
									"LEISURE",
									"BUSINESS",
									"AIRLINE",
									"AERIAL_WORK"
								],
								"direction": []
							}
						],
						"priorNoticeRequired": null,
						"costsInvolved": null,
						"other": "Delayed flights only "
					}
				]
			}
		},
		{
			"validFrom": "2022-07-26T00:30:00",
			"validTo": "2022-07-26T04:59:59.999999999",
			"status": "CLOSED",
			"info": {}
		},
		{
			"validFrom": "2022-07-26T05:00:00",
			"validTo": "2022-07-26T05:59:59.999999999",
			"status": "LIMITED",
			"info": {
				"openFor": [
					{
						"flightTypes": [
							{
								"rules": [],
								"filing": [
									"SCHEDULED",
									"NON_SCHEDULED"
								],
								"airframe": [],
								"status": [],
								"purpose": [
									"CARGO",
									"LEISURE",
									"BUSINESS",
									"AIRLINE"
								],
								"direction": [
									"ARRIVAL"
								]
							}
						],
						"priorNoticeRequired": null,
						"costsInvolved": null,
						"other": "Special slot required"
					}
				]
			}
		},
		{
			"validFrom": "2022-07-26T06:00:00",
			"validTo": "2022-07-26T21:59:59.999999999",
			"status": "FULL",
			"info": {}
		},
		{
			"validFrom": "2022-07-26T22:00:00",
			"validTo": "2022-07-26T23:59:59.999999999",
			"status": "LIMITED",
			"info": {
				"openFor": [
					{
						"flightTypes": [
							{
								"rules": [],
								"filing": [
									"SCHEDULED",
									"NON_SCHEDULED"
								],
								"airframe": [],
								"status": [],
								"purpose": [
									"CARGO",
									"LEISURE",
									"BUSINESS",
									"AIRLINE"
								],
								"direction": []
							}
						],
						"priorNoticeRequired": null,
						"costsInvolved": null,
						"other": null
					}
				]
			}
		}
	]
}
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

{% endtab %}

{% tab title="404: Not Found Airport by the given Aviowiki ID was not found." %}

```json
{
	"error": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"timestamp": "2022-07-26T16:23:01.474034802Z",
	"status": 404,
	"message": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"path": "/airports/{AID}/availability"
}
```

{% endtab %}
{% endtabs %}


# Aerodrome Rescue and Fire Fighting availaibility

## Get 24 hours of ARFF availability information starting from specified date and time.

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/availability/arff`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name     | Type    | Description                                                                                                                                 |
| -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| dateTime | String  | Range start for the availability retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                              |
| local    | Boolean | Whether to use local time or UTC. If `true` the `dateTime` query parameter  shall be provided in local time as well. Default value: `false` |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful" %}
The detailed properties of the returned item can be found in the [ARFF Availability](/data-models/availability#arff-availability) documentation.

```json
[
	{
		"validFrom": "2022-07-26T00:00:00",
		"validTo": "2022-07-26T00:29:59.999999999",
		"status": "FULL",
		"info": {
			"icaoCatAirplane": "IX",
			"faaCatAirplane": null,
			"faa139Certified": null,
			"catHelicopters": null,
			"waterQuantity": null,
			"complementaryQuantity": null,
			"arffVehicles": null,
			"dischargeCapacity": null,
			"extensionAvailable": true,
			"extensionNotice": null,
			"extensionUpToIcao": "X",
			"firestationRemote": null,
			"firestationNotes": ""
		}
	},
	{
		"validFrom": "2022-07-26T00:30:00",
		"validTo": "2022-07-26T05:59:59.999999999",
		"status": "FULL",
		"info": {
			"icaoCatAirplane": "VII",
			"faaCatAirplane": null,
			"faa139Certified": null,
			"catHelicopters": null,
			"waterQuantity": null,
			"complementaryQuantity": null,
			"arffVehicles": null,
			"dischargeCapacity": null,
			"extensionAvailable": true,
			"extensionNotice": null,
			"extensionUpToIcao": "IX",
			"firestationRemote": null,
			"firestationNotes": ""
		}
	},
	{
		"validFrom": "2022-07-26T06:00:00",
		"validTo": "2022-07-26T23:59:59.999999999",
		"status": "FULL",
		"info": {
			"icaoCatAirplane": "IX",
			"faaCatAirplane": null,
			"faa139Certified": null,
			"catHelicopters": null,
			"waterQuantity": null,
			"complementaryQuantity": null,
			"arffVehicles": null,
			"dischargeCapacity": null,
			"extensionAvailable": true,
			"extensionNotice": null,
			"extensionUpToIcao": "X",
			"firestationRemote": null,
			"firestationNotes": ""
		}
	}
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

{% endtab %}

{% tab title="404: Not Found Airport by the given Aviowiki ID was not found." %}

```json
{
	"error": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"timestamp": "2022-07-26T16:23:01.474034802Z",
	"status": 404,
	"message": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"path": "/airports/{AID}/availability"
}
```

{% endtab %}
{% endtabs %}


# Air Traffic Control availability

## Get 24 hours of ATC availability information starting from specified date and time.

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/availability/atc`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name     | Type    | Description                                                                                                                                 |
| -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| dateTime | String  | Range start for the availability retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                              |
| local    | Boolean | Whether to use local time or UTC. If `true` the `dateTime` query parameter  shall be provided in local time as well. Default value: `false` |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful" %}
The detailed properties of the returned item can be found in the [ATC Availability](/data-models/availability#atc-availability) documentation.

```json
[
	{
		"validFrom": "2022-07-26T00:00:00",
		"validTo": "2022-07-26T23:59:59.999999999",
		"status": "FULL",
		"info": {
			"enRtfAvailable": true,
			"afisOnly": null
		}
	}
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

{% endtab %}

{% tab title="404: Not Found Airport by the given Aviowiki ID was not found." %}

```json
{
	"error": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"timestamp": "2022-07-26T16:23:01.474034802Z",
	"status": 404,
	"message": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"path": "/airports/{AID}/availability"
}
```

{% endtab %}
{% endtabs %}


# Customs, Immigration and Quarantine facilities availability

## Get 24 hours of CIQ availability information starting from specified date and time.

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/availability/ciq`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name     | Type    | Description                                                                                                                                 |
| -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| dateTime | String  | Range start for the availability retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                              |
| local    | Boolean | Whether to use local time or UTC. If `true` the `dateTime` query parameter  shall be provided in local time as well. Default value: `false` |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful" %}
The detailed properties of the returned item can be found in the [CIQ Availability](/data-models/availability#ciq-availability) documentation.

```json
[
	{
		"validFrom": "2022-07-26T00:00:00",
		"validTo": "2022-07-26T23:59:59.999999999",
		"status": "FULL"
	}
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

{% endtab %}

{% tab title="404: Not Found Airport by the given Aviowiki ID was not found." %}

```json
{
	"error": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"timestamp": "2022-07-26T16:23:01.474034802Z",
	"status": 404,
	"message": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"path": "/airports/{AID}/availability"
}
```

{% endtab %}
{% endtabs %}


# Movement availability

## Get 24 hours of Movement availability information starting from specified date and time.

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/availability/movement`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name     | Type   | Description                                                                                                                                 |
| -------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| dateTime | String | Range start for the availability retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                              |
| local    | String | Whether to use local time or UTC. If `true` the `dateTime` query parameter  shall be provided in local time as well. Default value: `false` |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful." %}
The detailed properties of the returned item can be found in the [Movement Availability](/data-models/availability#movement-availability) documentation.

```json
[
	{
		"validFrom": "2022-07-26T00:00:00",
		"validTo": "2022-07-26T00:29:59.999999999",
		"status": "LIMITED",
		"info": {
			"openFor": [
				{
					"flightTypes": [
						{
							"rules": [],
							"filing": [],
							"airframe": [],
							"status": [],
							"purpose": [
								"AIRLINE",
								"AERIAL_WORK",
								"LEISURE",
								"BUSINESS",
								"TRAINING",
								"CARGO"
							],
							"direction": []
						}
					],
					"priorNoticeRequired": null,
					"costsInvolved": null,
					"other": "Delayed flights only "
				}
			]
		}
	},
	{
		"validFrom": "2022-07-26T00:30:00",
		"validTo": "2022-07-26T04:59:59.999999999",
		"status": "CLOSED",
		"info": {}
	},
	{
		"validFrom": "2022-07-26T05:00:00",
		"validTo": "2022-07-26T05:59:59.999999999",
		"status": "LIMITED",
		"info": {
			"openFor": [
				{
					"flightTypes": [
						{
							"rules": [],
							"filing": [
								"SCHEDULED",
								"NON_SCHEDULED"
							],
							"airframe": [],
							"status": [],
							"purpose": [
								"AIRLINE",
								"LEISURE",
								"BUSINESS",
								"CARGO"
							],
							"direction": [
								"ARRIVAL"
							]
						}
					],
					"priorNoticeRequired": null,
					"costsInvolved": null,
					"other": "Special slot required"
				}
			]
		}
	},
	{
		"validFrom": "2022-07-26T06:00:00",
		"validTo": "2022-07-26T21:59:59.999999999",
		"status": "FULL",
		"info": {}
	},
	{
		"validFrom": "2022-07-26T22:00:00",
		"validTo": "2022-07-26T23:59:59.999999999",
		"status": "LIMITED",
		"info": {
			"openFor": [
				{
					"flightTypes": [
						{
							"rules": [],
							"filing": [
								"SCHEDULED",
								"NON_SCHEDULED"
							],
							"airframe": [],
							"status": [],
							"purpose": [
								"AIRLINE",
								"LEISURE",
								"BUSINESS",
								"CARGO"
							],
							"direction": []
						}
					],
					"priorNoticeRequired": null,
					"costsInvolved": null,
					"other": null
				}
			]
		}
	}
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

{% endtab %}

{% tab title="404: Not Found Airport by the given Aviowiki ID was not found." %}

```json
{
	"error": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"timestamp": "2022-07-26T16:23:01.474034802Z",
	"status": 404,
	"message": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"path": "/airports/{AID}/availability"
}
```

{% endtab %}
{% endtabs %}


# Runways at an airport

## Get all runways at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/runways/all`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The detailed properties of one returned set item can be found in the [Runway](/data-models/runway) documentation.

```json
[
	{
		"helipad": false,
		"identifier": "13R",
		"magneticBearing": 134.00,
		"trueBearing": 121.00,
		"standardPattern": false,
		"thresholdElevation": 3.81,
		"width": 60.96,
		"tora": 4422.95,
		"toda": 4422.95,
		"asda": 4422.95,
		"lda": 3800.25,
		"surface": "CONCRETE",
		"pcnNumerical": 98,
		"pcnType": "R",
		"pcnStrength": "B",
		"pcnTirePressure": "W",
		"pcnMethod": "T",
		"edgeLights": true,
		"thresholdLights": false,
		"endLights": false,
		"centerLights": true,
		"centerLightsSpacing": null,
		"touchDownZoneLights": false,
		"visualApproachSlopeIndicator": "P4L",
		"approachLightConfiguration": "LDIN",
		"instrumental": false,
		"precision": false,
		"separate": false,
		"thresholdCoordinates": {
			"latitude": 40.6483617,
			"longitude": -73.8167147
		},
		"slope": null,
		"grooved": true,
		"parent": "APT-KS1J-8E0L",
		"aid": "RWY-V4ZG-LF64"
	},
	...,
	...,
	...,
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Get paged runways at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/runways`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name | Type   | Description                                                                     |
| ---- | ------ | ------------------------------------------------------------------------------- |
| page | Number | The page number for pagination, starting from \`0\` to indicate the first page. |
| size | Number | The number of results in a page, for pagination.                                |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The properties of the pagination can be found at [Pagination](/conventions/pagination). The detailed properties of one returned set item can be found in the [Runway](/data-models/runway) documentation.

```javascript
{
	"page": {
		"number": 0,
		"size": 10,
		"totalPages": 1,
		"totalResults": 8
	},
	"content": [
		{
			"helipad": false,
			"identifier": "13R",
			"magneticBearing": 134.00,
			"trueBearing": 121.00,
			"standardPattern": false,
			"thresholdElevation": 3.81,
			"width": 60.96,
			"tora": 4422.95,
			"toda": 4422.95,
			"asda": 4422.95,
			"lda": 3800.25,
			"surface": "CONCRETE",
			"pcnNumerical": 98,
			"pcnType": "R",
			"pcnStrength": "B",
			"pcnTirePressure": "W",
			"pcnMethod": "T",
			"edgeLights": true,
			"thresholdLights": false,
			"endLights": false,
			"centerLights": true,
			"centerLightsSpacing": null,
			"touchDownZoneLights": false,
			"visualApproachSlopeIndicator": "P4L",
			"approachLightConfiguration": "LDIN",
			"instrumental": false,
			"precision": false,
			"separate": false,
			"thresholdCoordinates": {
				"latitude": 40.6483617,
				"longitude": -73.8167147
			},
			"slope": null,
			"grooved": true,
			"parent": "APT-KS1J-8E0L",
			"aid": "RWY-V4ZG-LF64"
		},
		...,
		...,
		...,
	]
}
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


# Providers at an airport

## Get providers at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/providers/all`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful." %}
The detailed properties of one returned set item can be found in the [Provider](/data-models/provider) documentation.

```json
[
	{
		"name": "RUDY'S INFLIGHT CATERING",
		"website": "http://www.rudysinflight.com",
		"phone": "+1 201 727 1122",
		"outOfHoursPhone": null,
		"email": "orders@rudysinflight.com",
		"streetName": " ",
		"locality": null,
		"municipality": " ",
		"governingDistrict": null,
		"postalCode": " ",
		"country": {
			"iso2": "US",
			"iso3": "USA",
			"isoNumeric": 840,
			"name": "United States",
			"officialName": "United States of America",
			"localIdentifierName": null
		},
		"paymentMethods": null,
		"category": "CATERING",
		"sita": null,
		"aftn": null,
		"vhf": null,
		"featuredOrder": null,
		"logo": null,
		"pictures": [],
		"handlingProvider": null,
		"parent": "APT-KS1J-8E0L",
		"aid": "PRV-ZFIK-5S6M"
	},
	...,
	...,
	...
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Get paged providers at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/providers`

#### Path Parameters

| Name | Type   | Description                |
| ---- | ------ | -------------------------- |
| aid  | String | Aviowiki ID of the airport |

#### Query Parameters

| Name | Type   | Description                                                                     |
| ---- | ------ | ------------------------------------------------------------------------------- |
| page | Number | The page number for pagination, starting from \`0\` to indicate the first page. |
| size | Number | The number of results in a page, for pagination.                                |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful." %}
The properties of the pagination can be found at [Pagination](/conventions/pagination). The detailed properties of one returned set item can be found in the [Provider](/data-models/provider) documentation.

```json
{
	"page": {
		"number": 0,
		"size": 10,
		"totalPages": 1,
		"totalResults": 7
	},
	"content": [
		{
			"name": "Drivania Chauffeurs",
			"website": "drivania.com",
			"phone": "+1 800 327 5174",
			"outOfHoursPhone": "+1 800 327 5174",
			"email": "sales@drivania.com",
			"streetName": "2655 South Le Jeune Rd Suite 810",
			"locality": "Coral Gables",
			"municipality": "Florida",
			"governingDistrict": null,
			"postalCode": "33134",
			"country": {
				"iso2": "US",
				"iso3": "USA",
				"isoNumeric": 840,
				"name": "United States",
				"officialName": "United States of America",
				"localIdentifierName": null
			},
			"paymentMethods": [
				"MASTERCARD",
				"AMERICAN_EXPRESS",
				"INVOICE",
				"VISA"
			],
			"category": "PRIVATE_TRANSFER",
			"sita": null,
			"aftn": null,
			"vhf": null,
			"featuredOrder": null,
			"logo": null,
			"pictures": [],
			"handlingProvider": null,
			"parent": "APT-KS1J-8E0L",
			"aid": "PRV-ZLZT-791A"
		},
		...,
		...,
		...
	]
}
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


# Weather at an airport

This endpoint allows requesting [METAR](https://en.wikipedia.org/wiki/METAR) and [TAF](https://en.wikipedia.org/wiki/Terminal_aerodrome_forecast) weather reports at a certain airport.

Weather reports are provided in their coded version and decoded as convenient to use JSON objects.

It is additionally possible to specify a fallback policy in case no reports are available at the requested location. If `NEAREST` is used, the API will search for the nearest airport with a valid report and will return it.

{% hint style="info" %}
Some airports, that are known to never have weather reports available, may always return weather reports for a specified reference station.

Such behaviour is controlled by the `referenceStation` property in the [Airport](/data-models/airport) object.

When `referenceStation` is specified, if the requested location does not have valid weather reports, the weather reports of the `referenceStation` are returned.
{% endhint %}

## Get weather report for an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/weather/full`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name     | Type   | Description                                                                                                                                                                                                                                                                                               |
| -------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fallback | String | <p>What to use as fallback if no weather report is available for the airport. Available values: <code>NONE</code>, <code>NEAREST</code>. <br>- <code>NONE</code>: do not use fallback</p><p>-<code>NEAREST</code> : use the nearest available weather report</p><p>Default value: <code>NONE</code>. </p> |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
{% tabs %}
{% tab title="Example response" %}

```
{
	"taf": {
		"reference": "APT-KS1J-8E0L",
		"endTime": "2022-07-27T18:00:00",
		"forecast": [
			{
				"clouds": [
					"SCT050",
					"BKN070",
					"BKN250"
				],
				"endTime": "2022-07-26T16:00:00",
				"flightRules": "VFR",
				"icing": [],
				"other": [],
				"raw": "2615/2718 02006KT P6SM SCT050 BKN070 BKN250",
				"sanitized": "2615/2718 02006KT P6SM SCT050 BKN070 BKN250",
				"startTime": "2022-07-26T15:00:00",
				"summary": "Winds NNE-020 at 6kt, Vis greater than 6sm, Scattered clouds at 5000ft, Broken layer at 7000ft, Broken layer at 25000ft",
				"turbulance": [],
				"type": "FROM",
				"visibility": "P6",
				"windDirection": 20,
				"windSpeed": 6,
				"wx_codes": [],
				"transition_start": null,
				"turbulence": []
			},
			{
				"clouds": [
					"SCT050",
					"SCT070",
					"BKN250"
				],
				"endTime": "2022-07-26T18:00:00",
				"flightRules": "VFR",
				"icing": [],
				"other": [],
				"raw": "FM261600 27010KT P6SM SCT050 SCT070 BKN250",
				"sanitized": "FM261600 27010KT P6SM SCT050 SCT070 BKN250",
				"startTime": "2022-07-26T16:00:00",
				"summary": "Winds W-270 at 10kt, Vis greater than 6sm, Scattered clouds at 5000ft, Scattered clouds at 7000ft, Broken layer at 25000ft",
				"turbulance": [],
				"type": "FROM",
				"visibility": "P6",
				"windDirection": 270,
				"windSpeed": 10,
				"wx_codes": [],
				"transition_start": null,
				"turbulence": []
			},
			{
				"clouds": [
					"FEW050",
					"SCT070",
					"BKN250"
				],
				"endTime": "2022-07-27T00:00:00",
				"flightRules": "VFR",
				"icing": [],
				"other": [],
				"raw": "FM261800 22012G18KT P6SM FEW050 SCT070 BKN250",
				"sanitized": "FM261800 22012G18KT P6SM FEW050 SCT070 BKN250",
				"startTime": "2022-07-26T18:00:00",
				"summary": "Winds SW-220 at 12kt gusting to 18kt, Vis greater than 6sm, Few clouds at 5000ft, Scattered clouds at 7000ft, Broken layer at 25000ft",
				"turbulance": [],
				"type": "FROM",
				"visibility": "P6",
				"windDirection": 220,
				"windGust": 18,
				"windSpeed": 12,
				"wx_codes": [],
				"transition_start": null,
				"turbulence": []
			},
			{
				"clouds": [
					"FEW050",
					"SCT250"
				],
				"endTime": "2022-07-27T02:00:00",
				"flightRules": "VFR",
				"icing": [],
				"other": [],
				"raw": "FM270000 24010KT P6SM FEW050 SCT250",
				"sanitized": "FM270000 24010KT P6SM FEW050 SCT250",
				"startTime": "2022-07-27T00:00:00",
				"summary": "Winds WSW-240 at 10kt, Vis greater than 6sm, Few clouds at 5000ft, Scattered clouds at 25000ft",
				"turbulance": [],
				"type": "FROM",
				"visibility": "P6",
				"windDirection": 240,
				"windSpeed": 10,
				"wx_codes": [],
				"transition_start": null,
				"turbulence": []
			},
			{
				"clouds": [
					"FEW050",
					"FEW250"
				],
				"endTime": "2022-07-27T05:00:00",
				"flightRules": "VFR",
				"icing": [],
				"other": [],
				"raw": "FM270200 25007KT P6SM FEW050 FEW250",
				"sanitized": "FM270200 25007KT P6SM FEW050 FEW250",
				"startTime": "2022-07-27T02:00:00",
				"summary": "Winds WSW-250 at 7kt, Vis greater than 6sm, Few clouds at 5000ft, Few clouds at 25000ft",
				"turbulance": [],
				"type": "FROM",
				"visibility": "P6",
				"windDirection": 250,
				"windSpeed": 7,
				"wx_codes": [],
				"transition_start": null,
				"turbulence": []
			},
			{
				"clouds": [
					"FEW050",
					"FEW100",
					"SCT250"
				],
				"endTime": "2022-07-27T15:00:00",
				"flightRules": "VFR",
				"icing": [],
				"other": [],
				"raw": "FM270500 VRB05KT P6SM FEW050 FEW100 SCT250",
				"sanitized": "FM270500 VRB05KT P6SM FEW050 FEW100 SCT250",
				"startTime": "2022-07-27T05:00:00",
				"summary": "Winds Variable at 5kt, Vis greater than 6sm, Few clouds at 5000ft, Few clouds at 10000ft, Scattered clouds at 25000ft",
				"turbulance": [],
				"type": "FROM",
				"visibility": "P6",
				"windDirection": 0,
				"windSpeed": 5,
				"wx_codes": [],
				"transition_start": null,
				"turbulence": []
			},
			{
				"clouds": [
					"FEW050",
					"SCT100",
					"SCT250"
				],
				"endTime": "2022-07-27T18:00:00",
				"flightRules": "VFR",
				"icing": [],
				"other": [],
				"raw": "FM271500 18007KT P6SM FEW050 SCT100 SCT250",
				"sanitized": "FM271500 18007KT P6SM FEW050 SCT100 SCT250",
				"startTime": "2022-07-27T15:00:00",
				"summary": "Winds S-180 at 7kt, Vis greater than 6sm, Few clouds at 5000ft, Scattered clouds at 10000ft, Scattered clouds at 25000ft",
				"turbulance": [],
				"type": "FROM",
				"visibility": "P6",
				"windDirection": 180,
				"windSpeed": 7,
				"wx_codes": [],
				"transition_start": null,
				"turbulence": []
			}
		],
		"raw": "KJFK 261431Z 2615/2718 02006KT P6SM SCT050 BKN070 BKN250 FM261600 27010KT P6SM SCT050 SCT070 BKN250 FM261800 22012G18KT P6SM FEW050 SCT070 BKN250 FM270000 24010KT P6SM FEW050 SCT250 FM270200 25007KT P6SM FEW050 FEW250 FM270500 VRB05KT P6SM FEW050 FEW100 SCT250 FM271500 18007KT P6SM FEW050 SCT100 SCT250",
		"remarks": "",
		"startTime": "2022-07-26T15:00:00",
		"station": "KJFK",
		"time": "2022-07-26T14:31:00",
		"units": {
			"altimeter": "inHg",
			"altitude": "ft",
			"temperature": "C",
			"visibility": "sm",
			"windSpeed": "kt",
			"accumulation": "in"
		}
	},
	"metar": {
		"reference": "APT-KS1J-8E0L",
		"altimeter": 30,
		"clouds": [
			"FEW050",
			"FEW095",
			"FEW180",
			"BKN240"
		],
		"dewpoint": 13,
		"flightRules": "VFR",
		"other": [],
		"raw": "KJFK 261451Z 00000KT 10SM FEW050 FEW095 FEW180 BKN240 26/13 A3002 RMK AO2 SLP165 T02610128 58003",
		"remarks": "RMK AO2 SLP165 T02610128 58003",
		"remarksInfo": {
			"dewpointDecimal": "0128",
			"temperatureDecimal": "0261",
			"codes": [
				{
					"repr": "AO2",
					"value": "Automated with precipitation sensor"
				}
			],
			"maximum_temperature_6": null,
			"minimum_temperature_24": null,
			"precip_hourly": null,
			"sunshine_minutes": null,
			"precip_24_hours": null,
			"precip_36_hours": null,
			"minimum_temperature_6": null,
			"snow_depth": null,
			"sea_level_pressure": {
				"repr": "SLP165",
				"value": 1016.5,
				"spoken": "one zero one six point five"
			},
			"maximum_temperature_24": null,
			"pressure_tendency": {
				"repr": "58003",
				"tendency": "Steady or increasing, then decreasing",
				"change": 0.3
			}
		},
		"runwayVisibility": [],
		"sanitized": "KJFK 261451Z 00000KT 10SM FEW050 FEW095 FEW180 BKN240 26/13 A3002 RMK AO2 SLP165 T02610128 58003",
		"station": "KJFK",
		"summary": "Winds Calm, Vis 10sm, Temp 26°C, Dew 13°C, Alt 30.02 inHg, Few clouds at 5000ft, Few clouds at 9500ft, Few clouds at 18000ft, Broken layer at 24000ft",
		"temperature": 26,
		"time": "2022-07-26T14:51:00",
		"units": {
			"altimeter": "inHg",
			"altitude": "ft",
			"temperature": "C",
			"visibility": "sm",
			"windSpeed": "kt",
			"accumulation": "in"
		},
		"visibility": "10",
		"windDirection": 0,
		"windSpeed": 0,
		"windVariableDirection": [],
		"density_altitude": 1248,
		"pressure_altitude": -87,
		"wx_codes": [],
		"relative_humidity": 0.4368486805231886,
		"isaDeviation": 12
	}
}
```

{% endtab %}
{% endtabs %}

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Get weather report for a list of airports

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/weather/full`

#### Query Parameters

| Name                                  | Type   | Description                                                                                                                                                                                                                                                                                               |
| ------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fallback                              | Number | <p>What to use as fallback if no weather report is available for the airport. Available values: <code>NONE</code>, <code>NEAREST</code>. <br>- <code>NONE</code>: do not use fallback</p><p>-<code>NEAREST</code> : use the nearest available weather report</p><p>Default value: <code>NONE</code>. </p> |
| aid<mark style="color:red;">\*</mark> | List   | Comma separated list of Aviowiki IDs of the airports                                                                                                                                                                                                                                                      |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful" %}
{% tabs %}
{% tab title="Example response" %}

```
{
	"APT-KS1J-8E0L": {
		"taf": {
			"reference": "APT-KS1J-8E0L",
			"endTime": "2022-07-27T18:00:00",
			"forecast": [
				{
					"clouds": [
						"SCT050",
						"BKN070",
						"BKN250"
					],
					"endTime": "2022-07-26T16:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "2615/2718 02006KT P6SM SCT050 BKN070 BKN250",
					"sanitized": "2615/2718 02006KT P6SM SCT050 BKN070 BKN250",
					"startTime": "2022-07-26T15:00:00",
					"summary": "Winds NNE-020 at 6kt, Vis greater than 6sm, Scattered clouds at 5000ft, Broken layer at 7000ft, Broken layer at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 20,
					"windSpeed": 6,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				},
				{
					"clouds": [
						"SCT050",
						"SCT070",
						"BKN250"
					],
					"endTime": "2022-07-26T18:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "FM261600 27010KT P6SM SCT050 SCT070 BKN250",
					"sanitized": "FM261600 27010KT P6SM SCT050 SCT070 BKN250",
					"startTime": "2022-07-26T16:00:00",
					"summary": "Winds W-270 at 10kt, Vis greater than 6sm, Scattered clouds at 5000ft, Scattered clouds at 7000ft, Broken layer at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 270,
					"windSpeed": 10,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				},
				{
					"clouds": [
						"FEW050",
						"SCT070",
						"BKN250"
					],
					"endTime": "2022-07-27T00:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "FM261800 22012G18KT P6SM FEW050 SCT070 BKN250",
					"sanitized": "FM261800 22012G18KT P6SM FEW050 SCT070 BKN250",
					"startTime": "2022-07-26T18:00:00",
					"summary": "Winds SW-220 at 12kt gusting to 18kt, Vis greater than 6sm, Few clouds at 5000ft, Scattered clouds at 7000ft, Broken layer at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 220,
					"windGust": 18,
					"windSpeed": 12,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				},
				{
					"clouds": [
						"FEW050",
						"SCT250"
					],
					"endTime": "2022-07-27T02:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "FM270000 24010KT P6SM FEW050 SCT250",
					"sanitized": "FM270000 24010KT P6SM FEW050 SCT250",
					"startTime": "2022-07-27T00:00:00",
					"summary": "Winds WSW-240 at 10kt, Vis greater than 6sm, Few clouds at 5000ft, Scattered clouds at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 240,
					"windSpeed": 10,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				},
				{
					"clouds": [
						"FEW050",
						"FEW250"
					],
					"endTime": "2022-07-27T05:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "FM270200 25007KT P6SM FEW050 FEW250",
					"sanitized": "FM270200 25007KT P6SM FEW050 FEW250",
					"startTime": "2022-07-27T02:00:00",
					"summary": "Winds WSW-250 at 7kt, Vis greater than 6sm, Few clouds at 5000ft, Few clouds at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 250,
					"windSpeed": 7,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				},
				{
					"clouds": [
						"FEW050",
						"FEW100",
						"SCT250"
					],
					"endTime": "2022-07-27T15:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "FM270500 VRB05KT P6SM FEW050 FEW100 SCT250",
					"sanitized": "FM270500 VRB05KT P6SM FEW050 FEW100 SCT250",
					"startTime": "2022-07-27T05:00:00",
					"summary": "Winds Variable at 5kt, Vis greater than 6sm, Few clouds at 5000ft, Few clouds at 10000ft, Scattered clouds at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 0,
					"windSpeed": 5,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				},
				{
					"clouds": [
						"FEW050",
						"SCT100",
						"SCT250"
					],
					"endTime": "2022-07-27T18:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "FM271500 18007KT P6SM FEW050 SCT100 SCT250",
					"sanitized": "FM271500 18007KT P6SM FEW050 SCT100 SCT250",
					"startTime": "2022-07-27T15:00:00",
					"summary": "Winds S-180 at 7kt, Vis greater than 6sm, Few clouds at 5000ft, Scattered clouds at 10000ft, Scattered clouds at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 180,
					"windSpeed": 7,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				}
			],
			"raw": "KJFK 261431Z 2615/2718 02006KT P6SM SCT050 BKN070 BKN250 FM261600 27010KT P6SM SCT050 SCT070 BKN250 FM261800 22012G18KT P6SM FEW050 SCT070 BKN250 FM270000 24010KT P6SM FEW050 SCT250 FM270200 25007KT P6SM FEW050 FEW250 FM270500 VRB05KT P6SM FEW050 FEW100 SCT250 FM271500 18007KT P6SM FEW050 SCT100 SCT250",
			"remarks": "",
			"startTime": "2022-07-26T15:00:00",
			"station": "KJFK",
			"time": "2022-07-26T14:31:00",
			"units": {
				"altimeter": "inHg",
				"altitude": "ft",
				"temperature": "C",
				"visibility": "sm",
				"windSpeed": "kt",
				"accumulation": "in"
			}
		},
		"metar": {
			"reference": "APT-KS1J-8E0L",
			"altimeter": 30,
			"clouds": [
				"FEW060",
				"BKN210",
				"OVC260"
			],
			"dewpoint": 14,
			"flightRules": "VFR",
			"other": [],
			"raw": "KJFK 261551Z 23005KT 10SM FEW060 BKN210 OVC260 26/14 A3002 RMK AO2 SLP164 T02610144",
			"remarks": "RMK AO2 SLP164 T02610144",
			"remarksInfo": {
				"dewpointDecimal": "0144",
				"temperatureDecimal": "0261",
				"codes": [
					{
						"repr": "AO2",
						"value": "Automated with precipitation sensor"
					}
				],
				"maximum_temperature_6": null,
				"minimum_temperature_24": null,
				"precip_hourly": null,
				"sunshine_minutes": null,
				"precip_24_hours": null,
				"precip_36_hours": null,
				"minimum_temperature_6": null,
				"snow_depth": null,
				"sea_level_pressure": {
					"repr": "SLP164",
					"value": 1016.4,
					"spoken": "one zero one six point four"
				},
				"maximum_temperature_24": null,
				"pressure_tendency": null
			},
			"runwayVisibility": [],
			"sanitized": "KJFK 261551Z 23005KT 10SM FEW060 BKN210 OVC260 26/14 A3002 RMK AO2 SLP164 T02610144",
			"station": "KJFK",
			"summary": "Winds SW-230 at 5kt, Vis 10sm, Temp 26°C, Dew 14°C, Alt 30.02 inHg, Few clouds at 6000ft, Broken layer at 21000ft, Overcast layer at 26000ft",
			"temperature": 26,
			"time": "2022-07-26T15:51:00",
			"units": {
				"altimeter": "inHg",
				"altitude": "ft",
				"temperature": "C",
				"visibility": "sm",
				"windSpeed": "kt",
				"accumulation": "in"
			},
			"visibility": "10",
			"windDirection": 230,
			"windSpeed": 5,
			"windVariableDirection": [],
			"density_altitude": 1248,
			"pressure_altitude": -87,
			"wx_codes": [],
			"relative_humidity": 0.4847997761540694,
			"isaDeviation": 12
		}
	},
	"APT-CQ9K-5CIO": {
		"taf": {
			"reference": "APT-CQ9K-5CIO",
			"endTime": "2022-07-27T18:00:00",
			"forecast": [
				{
					"clouds": [
						"FEW050",
						"SCT070",
						"BKN250"
					],
					"endTime": "2022-07-26T22:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "2615/2718 26009KT P6SM FEW050 SCT070 BKN250",
					"sanitized": "2615/2718 26009KT P6SM FEW050 SCT070 BKN250",
					"startTime": "2022-07-26T15:00:00",
					"summary": "Winds W-260 at 9kt, Vis greater than 6sm, Few clouds at 5000ft, Scattered clouds at 7000ft, Broken layer at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 260,
					"windSpeed": 9,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				},
				{
					"clouds": [
						"SCT050",
						"SCT250"
					],
					"endTime": "2022-07-27T02:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "FM262200 26007KT P6SM SCT050 SCT250",
					"sanitized": "FM262200 26007KT P6SM SCT050 SCT250",
					"startTime": "2022-07-26T22:00:00",
					"summary": "Winds W-260 at 7kt, Vis greater than 6sm, Scattered clouds at 5000ft, Scattered clouds at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 260,
					"windSpeed": 7,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				},
				{
					"clouds": [
						"FEW050",
						"FEW100",
						"SCT250"
					],
					"endTime": "2022-07-27T16:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "FM270200 VRB04KT P6SM FEW050 FEW100 SCT250",
					"sanitized": "FM270200 VRB04KT P6SM FEW050 FEW100 SCT250",
					"startTime": "2022-07-27T02:00:00",
					"summary": "Winds Variable at 4kt, Vis greater than 6sm, Few clouds at 5000ft, Few clouds at 10000ft, Scattered clouds at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 0,
					"windSpeed": 4,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				},
				{
					"clouds": [
						"FEW050",
						"SCT100",
						"SCT250"
					],
					"endTime": "2022-07-27T18:00:00",
					"flightRules": "VFR",
					"icing": [],
					"other": [],
					"raw": "FM271600 24007KT P6SM FEW050 SCT100 SCT250",
					"sanitized": "FM271600 24007KT P6SM FEW050 SCT100 SCT250",
					"startTime": "2022-07-27T16:00:00",
					"summary": "Winds WSW-240 at 7kt, Vis greater than 6sm, Few clouds at 5000ft, Scattered clouds at 10000ft, Scattered clouds at 25000ft",
					"turbulance": [],
					"type": "FROM",
					"visibility": "P6",
					"windDirection": 240,
					"windSpeed": 7,
					"wx_codes": [],
					"transition_start": null,
					"turbulence": []
				}
			],
			"raw": "KTEB 261459Z 2615/2718 26009KT P6SM FEW050 SCT070 BKN250 FM262200 26007KT P6SM SCT050 SCT250 FM270200 VRB04KT P6SM FEW050 FEW100 SCT250 FM271600 24007KT P6SM FEW050 SCT100 SCT250",
			"remarks": "",
			"startTime": "2022-07-26T15:00:00",
			"station": "KTEB",
			"time": "2022-07-26T14:59:00",
			"units": {
				"altimeter": "inHg",
				"altitude": "ft",
				"temperature": "C",
				"visibility": "sm",
				"windSpeed": "kt",
				"accumulation": "in"
			}
		},
		"metar": {
			"reference": "APT-CQ9K-5CIO",
			"altimeter": 30,
			"clouds": [],
			"dewpoint": 13,
			"flightRules": "VFR",
			"other": [],
			"raw": "KTEB 261551Z 27006KT 10SM CLR 25/13 A3001 RMK AO2 SLP161 T02500133",
			"remarks": "RMK AO2 SLP161 T02500133",
			"remarksInfo": {
				"dewpointDecimal": "0133",
				"temperatureDecimal": "0250",
				"codes": [
					{
						"repr": "AO2",
						"value": "Automated with precipitation sensor"
					}
				],
				"maximum_temperature_6": null,
				"minimum_temperature_24": null,
				"precip_hourly": null,
				"sunshine_minutes": null,
				"precip_24_hours": null,
				"precip_36_hours": null,
				"minimum_temperature_6": null,
				"snow_depth": null,
				"sea_level_pressure": {
					"repr": "SLP161",
					"value": 1016.1,
					"spoken": "one zero one six point one"
				},
				"maximum_temperature_24": null,
				"pressure_tendency": null
			},
			"runwayVisibility": [],
			"sanitized": "KTEB 261551Z 27006KT 10SM 25/13 A3001 RMK AO2 SLP161 T02500133",
			"station": "KTEB",
			"summary": "Winds W-270 at 6kt, Vis 10sm, Temp 25°C, Dew 13°C, Alt 30.01 inHg, Sky clear",
			"temperature": 25,
			"time": "2022-07-26T15:51:00",
			"units": {
				"altimeter": "inHg",
				"altitude": "ft",
				"temperature": "C",
				"visibility": "sm",
				"windSpeed": "kt",
				"accumulation": "in"
			},
			"visibility": "10",
			"windDirection": 270,
			"windSpeed": 6,
			"windVariableDirection": [],
			"density_altitude": 1121,
			"pressure_altitude": -81,
			"wx_codes": [],
			"relative_humidity": 0.4818610292851609,
			"isaDeviation": 11
		}
	}
}
```

{% endtab %}
{% endtabs %}

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="400: Bad Request Query parameter 'aid' is missing " %}

```json
{
	"error": "missing request parameter",
	"timestamp": "2022-07-26T15:53:33.819352432Z",
	"status": 400,
	"message": "Required request parameter 'aid' for method parameter type String[] is not present",
	"path": "/weather/full"
}
```

{% endtab %}

{% tab title="404: Not Found Airport by the given Aviowiki ID cannot be found" %}

```json
{
	"error": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"timestamp": "2022-07-26T15:55:30.429928518Z",
	"status": 404,
	"message": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"path": "/weather/full"
}
```

{% endtab %}
{% endtabs %}

## Get weather flag for an airports

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/weather`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name     | Type   | Description                                                                                                                                                                                                                                                                                               |
| -------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fallback | Number | <p>What to use as fallback if no weather report is available for the airport. Available values: <code>NONE</code>, <code>NEAREST</code>. <br>- <code>NONE</code>: do not use fallback</p><p>-<code>NEAREST</code> : use the nearest available weather report</p><p>Default value: <code>NONE</code>. </p> |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful" %}
{% tabs %}
{% tab title="Example response" %}

```
{
	"reference": "APT-KS1J-8E0L",
	"report": "VFR"
}
```

{% endtab %}
{% endtabs %}

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="404: Not Found Airport by the given Aviowiki ID cannot be found" %}

```json
{
	"error": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"timestamp": "2022-07-26T15:55:30.429928518Z",
	"status": 404,
	"message": "The com.aviowiki.dao.Airport identified by the AID {AID} does not exist in the system",
	"path": "/weather/full"
}
```

{% endtab %}
{% endtabs %}


# Sun times at an airport

## Get sun times at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/sun`

This endpoint returns information about the sunrise and sunset times at an airport.

#### Path Parameters

| Name                                  | Type   | Description                           |
| ------------------------------------- | ------ | ------------------------------------- |
| aid<mark style="color:red;">\*</mark> | String | The AID of the airport being queried. |

#### Query Parameters

| Name  | Type    | Description                                                                                                                                                                            |
| ----- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| local | Boolean | <p><code>true</code> to request that the times in the response refer to the local time of the requested airport, <code>false</code> for UTC.<br>Default value: <code>false</code> </p> |
| date  | String  | <p>A date string in format YYYY-MM-DD to indicate for which local day the data should be returned.<br>If not set, the current local day will be returned.</p>                          |

#### Headers

| Name          | Type   | Description                               |
| ------------- | ------ | ----------------------------------------- |
| Authorization | String | An API Token using Bearer authentication. |

{% tabs %}
{% tab title="200 The query ran successfully. " %}
{% tabs %}
{% tab title="Response properties" %}
All times returned are either with reference to the local time of the airport requested or to UTC, depending on the value of the request parameter `local`.

| Property     | Type    | Description                                                                             |
| ------------ | ------- | --------------------------------------------------------------------------------------- |
| `sunrise`    | String  | The date and time of the civil sunrise, in ISO 8601 format.                             |
| `sunset`     | String  | The date and time of the civil sunset, in ISO 8601 format.                              |
| `zenith`     | String  | The date and time when the sun will be at the highest point in the sky.                 |
| `nadir`      | String  | The date and time when the sun will be at the lowest point in the sky, hidden by Earth. |
| `alwaysUp`   | Boolean | `true` if the sun never sets on the `date` specified in the request.                    |
| `alwaysDown` | Boolean | `true` if the sun never rises on the `date` specified in the request.                   |
| {% endtab %} |         |                                                                                         |

{% tab title="Example response" %}

```json
{
  "sunrise": "2020-03-30T06:38:00",
  "sunset": "2020-03-30T19:31:00",
  "zenith": "2020-03-30T13:01:00",
  "nadir": "2020-03-30T01:01:00",
  "alwaysUp": false,
  "alwaysDown": false
}
```

{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
```

{% endtab %}
{% endtabs %}


# Operational notes at an airport

## Get Airport Operational Notes at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/airportOperationalNotes/all`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The detailed properties of one returned set item can be found in the [Airport Operational Notes](/data-models/operational-note/operational-notes) documentation.

```json
[
	{
		"validFrom": "2022-04-01T00:00:00",
		"validTo": "2023-04-01T23:59:00",
		"source": "Industry news",
		"criticality": "OPERATIONALLY_CRITICAL",
		"notes": "Weekend and night operations at New Jersey’s Teterboro Airport (TEB) will be affected at times over the next 12 months as the Port Authority of New York and New Jersey undertakes a major rehabilitation of Runway 6/24.",
		"category": "EVENTS",
		"affectedTraffic": null,
		"parent": "APT-CQ9K-5CIO",
		"aid": "ONA-D66Q-4UUG",
		"kind": "AIRPORT"
	},
	...,
	...,
	...
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

<pre class="language-javascript"><code class="lang-javascript"><strong>{
</strong>    // Response
}
</code></pre>

{% endtab %}
{% endtabs %}

## Get paged Airport Operational Notes at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/airportOperationalNotes`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name | Type   | Description                                                                     |
| ---- | ------ | ------------------------------------------------------------------------------- |
| page | Number | The page number for pagination, starting from \`0\` to indicate the first page. |
| size | Number | The number of results in a page, for pagination.                                |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The properties of the pagination can be found at [Pagination](/conventions/pagination). The detailed properties of one returned set item can be found in the [Airport Operational Notes](/data-models/operational-note/operational-notes) documentation.

```json
{
	"page": {
		"number": 0,
		"size": 10,
		"totalPages": 1,
		"totalResults": 2
	},
	"content": [
		{
			"validFrom": "2022-04-01T00:00:00",
			"validTo": "2023-04-01T23:59:00",
			"source": "Industry news",
			"criticality": "OPERATIONALLY_CRITICAL",
			"notes": "Weekend and night operations at New Jersey’s Teterboro Airport (TEB) will be affected at times over the next 12 months as the Port Authority of New York and New Jersey undertakes a major rehabilitation of Runway 6/24.",
			"category": "EVENTS",
			"affectedTraffic": null,
			"parent": "APT-CQ9K-5CIO",
			"aid": "ONA-D66Q-4UUG",
			"kind": "AIRPORT"
		},
		...,
		...,
		...
	]
}
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Get all relevant operational notes at an airport (Airport, Country, Region) valid on a given date

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/operationalNotes`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name     | Type    | Description                                                                                                                           |
| -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| dateTime | String  | Time of validity for the ops notes retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                      |
| local    | Boolean | *(Currently not functional)*. Present for future compatibility. Responses are always returned in local time regardless of this value. |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}

```json
[
	{
		"validFrom": "2023-04-04T15:00:00",
		"validTo": "2023-04-30T18:00:00",
		"source": "NOTAM ",
		"criticality": "OPERATIONALLY_RELEVANT",
		"notes": "Runway 12R/30L closed on the following dates and times:\n\n- April 04: 1500-1800LT\n- April 11: 1500-1800LT\n- April 12: 0130-0215LT, 1500-1800LT\n- April 18: 1500-1800LT\n- April 23: 1500-1800LT\n- April 29: 1500-1800LT\n- April 30: 0130-0215LT, 1500-1800LT\n",
		"category": "RUNWAY",
		"affectedTraffic": null,
		"parent": "APT-KS1J-8E0L",
		"aid": "ONA-D2LR-V9WT",
		"kind": "AIRPORT"
	},
	{
		"validFrom": "2023-01-11T14:58:57.145",
		"validTo": "2023-01-11T16:00:00",
		"source": "FAA",
		"criticality": "OPERATIONALLY_CRITICAL",
		"notes": "Domestic departures are paused until 9 a.m. ET all over the USA due to a computer outage.",
		"category": "DELAYS",
		"affectedTraffic": null,
		"parent": {
			"iso2": "US",
			"iso3": "USA",
			"isoNumeric": 840,
			"name": "United States",
			"officialName": "United States of America",
			"localIdentifierName": null
		},
		"aid": "ONC-6Y7G-NQ2C",
		"kind": "COUNTRY"
	},
	...,
	...
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Get all relevant operational notes at an airport (Airport, Country, Region) valid between given dates

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/operationalNotes/betweenDates`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name           | Type    | Description                                                                                                                                  |
| -------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| from           | String  | Range start for the ops notes retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                                  |
| to             | String  | Range end for the ops notes retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                                    |
| local          | Boolean | ***(Currently not functional)***. Present for future compatibility. Responses are always returned in local time regardless of this value.    |
| includeRegion  | Boolean | ***Deprecated*****.** Currently unused and has no effect. Present for future compatibility.                                                  |
| includeCountry | Boolean | Whether to include [country operational notes](/data-models/operational-note/country-operational-note) in the results. Default value: `true` |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
Example:

```json
[
	{
		"validFrom": "2023-04-04T15:00:00",
		"validTo": "2023-04-30T18:00:00",
		"source": "NOTAM ",
		"criticality": "OPERATIONALLY_RELEVANT",
		"notes": "Runway 12R/30L closed on the following dates and times:\n\n- April 04: 1500-1800LT\n- April 11: 1500-1800LT\n- April 12: 0130-0215LT, 1500-1800LT\n- April 18: 1500-1800LT\n- April 23: 1500-1800LT\n- April 29: 1500-1800LT\n- April 30: 0130-0215LT, 1500-1800LT\n",
		"category": "RUNWAY",
		"affectedTraffic": null,
		"parent": "APT-KS1J-8E0L",
		"aid": "ONA-D2LR-V9WT",
		"kind": "AIRPORT"
	},
	{
		"validFrom": "2023-01-11T14:58:57.145",
		"validTo": "2023-01-11T16:00:00",
		"source": "FAA",
		"criticality": "OPERATIONALLY_CRITICAL",
		"notes": "Domestic departures are paused until 9 a.m. ET all over the USA due to a computer outage.",
		"category": "DELAYS",
		"affectedTraffic": null,
		"parent": {
			"iso2": "US",
			"iso3": "USA",
			"isoNumeric": 840,
			"name": "United States",
			"officialName": "United States of America",
			"localIdentifierName": null
		},
		"aid": "ONC-6Y7G-NQ2C",
		"kind": "COUNTRY"
	},
	...,
	...
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


# Aircraft endpoints

{% hint style="info" %}

## To be published soon

This page will be published soon on our new shiny open documentation!

If you would like to request a static copy of the documentation for this endpoint, please write us an email to <support@aviowiki.com>
{% endhint %}


# Aircraft position endpoints

{% hint style="info" %}

## To be published soon

This page will be published soon on our new shiny open documentation!

If you would like to request a static copy of the documentation for this endpoint, please write us an email to <support@aviowiki.com>
{% endhint %}


# Flight endpoints

{% hint style="info" %}

## To be published soon

This page will be published soon on our new shiny open documentation!

If you would like to request a static copy of the documentation for this endpoint, please write us an email to <support@aviowiki.com>
{% endhint %}


# Runway endpoints

{% content-ref url="/spaces/-MS2fBXSpqyanE1zUgLP/pages/TZBQ4V3j9uTYUwCAqfMA" %}
[Runway data](/authenticated-endpoints/runway-endpoints/runway-data)
{% endcontent-ref %}


# Runway data

## Get all runway and helipad data for a specified airport

`GET` `https://api.aviowiki.com/airports/{aid}/runways/all`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name            | Type    | Description                                                            |
| --------------- | ------- | ---------------------------------------------------------------------- |
| includeArchived | Boolean | Set to `true` to include archived runways/helipads. Default is `false` |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The detailed properties of the returned object can be found in the documentation of the [Runway](/data-models/runway) data model.

```json
[
  {
    "helipad": false,
    "identifier": "06R",
    "magneticBearing": 65.29,
    "trueBearing": 68.79,
    "standardPattern": null,
    "thresholdElevation": 46.45,
    "width": 60,
    "tora": 4000,
    "toda": 4060,
    "asda": 4000,
    "lda": 4000,
    "surface": "CONCRETE",
    "pcnNumerical": 99,
    "pcnType": "R",
    "pcnStrength": "B",
    "pcnTirePressure": "W",
    "pcnMethod": "T",
    "edgeLights": true,
    "thresholdLights": true,
    "endLights": true,
    "centerLights": true,
    "centerLightsSpacing": 15,
    "touchDownZoneLights": true,
    "visualApproachSlopeIndicator": "P4L",
    "approachLightConfiguration": "ALSF2",
    "instrumental": true,
    "precision": true,
    "separate": true,
    "thresholdCoordinates": {
      "latitude": 52.3454333,
      "longitude": 13.4684278
    },
    "slope": -0.0003,
    "grooved": true,
    "parent": "APT-LF6D-WEBW",
    "aid": "RWY-T76Z-JUU7",
    "archived": false
  },
  {
    "helipad": false,
    "identifier": "24L",
    "magneticBearing": 245.33,
    "trueBearing": 248.83,
    "standardPattern": null,
    "thresholdElevation": 45.45,
    "width": 60,
    "tora": 4000,
    "toda": 4060,
    "asda": 4000,
    "lda": 4000,
    "surface": "CONCRETE",
    "pcnNumerical": 99,
    "pcnType": "R",
    "pcnStrength": "B",
    "pcnTirePressure": "W",
    "pcnMethod": "T",
    "edgeLights": true,
    "thresholdLights": true,
    "endLights": true,
    "centerLights": true,
    "centerLightsSpacing": 15,
    "touchDownZoneLights": true,
    "visualApproachSlopeIndicator": "P4L",
    "approachLightConfiguration": "ALSF2",
    "instrumental": true,
    "precision": true,
    "separate": true,
    "thresholdCoordinates": {
      "latitude": 52.358425,
      "longitude": 13.5231611
    },
    "slope": 0.0003,
    "grooved": true,
    "parent": "APT-LF6D-WEBW",
    "aid": "RWY-EORN-G9AD",
    "archived": false
  },
  {
    "helipad": false,
    "identifier": "06L",
    "magneticBearing": 65.3,
    "trueBearing": 68.8,
    "standardPattern": null,
    "thresholdElevation": 43.92,
    "width": 45,
    "tora": 3600,
    "toda": 3660,
    "asda": 3600,
    "lda": 3300,
    "surface": "ASPHALT",
    "pcnNumerical": 109,
    "pcnType": "F",
    "pcnStrength": "B",
    "pcnTirePressure": "W",
    "pcnMethod": "T",
    "edgeLights": true,
    "thresholdLights": true,
    "endLights": true,
    "centerLights": true,
    "centerLightsSpacing": 15,
    "touchDownZoneLights": true,
    "visualApproachSlopeIndicator": "P4L",
    "approachLightConfiguration": "MALSF",
    "instrumental": true,
    "precision": true,
    "separate": true,
    "thresholdCoordinates": {
      "latitude": 52.36769,
      "longitude": 13.4850242
    },
    "slope": 0.0008,
    "grooved": true,
    "parent": "APT-LF6D-WEBW",
    "aid": "RWY-CVX4-P36K",
    "archived": false
  },
  {
    "helipad": false,
    "identifier": "24R",
    "magneticBearing": 245.34,
    "trueBearing": 248.84,
    "standardPattern": null,
    "thresholdElevation": 46.82,
    "width": 45,
    "tora": 3600,
    "toda": 3660,
    "asda": 3600,
    "lda": 3300,
    "surface": "ASPHALT",
    "pcnNumerical": 109,
    "pcnType": "F",
    "pcnStrength": "B",
    "pcnTirePressure": "W",
    "pcnMethod": "T",
    "edgeLights": true,
    "thresholdLights": true,
    "endLights": true,
    "centerLights": true,
    "centerLightsSpacing": 15,
    "touchDownZoneLights": true,
    "visualApproachSlopeIndicator": "P4R",
    "approachLightConfiguration": "MALSF",
    "instrumental": true,
    "precision": true,
    "separate": true,
    "thresholdCoordinates": {
      "latitude": 52.37743,
      "longitude": 13.5260972
    },
    "slope": -0.0008,
    "grooved": true,
    "parent": "APT-LF6D-WEBW",
    "aid": "RWY-I5QO-1UA4",
    "archived": false
  },
  {
    "helipad": true,
    "identifier": "H",
    "magneticBearing": null,
    "trueBearing": null,
    "standardPattern": null,
    "thresholdElevation": 46.54,
    "width": null,
    "tora": null,
    "toda": 30,
    "asda": null,
    "lda": 30,
    "surface": "ASPHALT",
    "pcnNumerical": 66,
    "pcnType": "R",
    "pcnStrength": "B",
    "pcnTirePressure": "W",
    "pcnMethod": "T",
    "edgeLights": null,
    "thresholdLights": null,
    "endLights": null,
    "centerLights": null,
    "centerLightsSpacing": null,
    "touchDownZoneLights": null,
    "visualApproachSlopeIndicator": null,
    "approachLightConfiguration": null,
    "instrumental": null,
    "precision": null,
    "separate": null,
    "thresholdCoordinates": {
      "latitude": 52.3807389,
      "longitude": 13.5147361
    },
    "slope": null,
    "grooved": false,
    "parent": "APT-LF6D-WEBW",
    "aid": "RWY-0SLX-S1WD",
    "archived": false
  }
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


# Provider endpoints


# Provider data

## Get full provider data

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/providers/all`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful." %}
The detailed properties of one returned set item can be found in the [Provider](/data-models/provider) documentation.

```json
[
	{
		"name": "RUDY'S INFLIGHT CATERING",
		"website": "http://www.rudysinflight.com",
		"phone": "+1 201 727 1122",
		"outOfHoursPhone": null,
		"email": "orders@rudysinflight.com",
		"streetName": " ",
		"locality": null,
		"municipality": " ",
		"governingDistrict": null,
		"postalCode": " ",
		"country": {
			"iso2": "US",
			"iso3": "USA",
			"isoNumeric": 840,
			"name": "United States",
			"officialName": "United States of America",
			"localIdentifierName": null
		},
		"paymentMethods": null,
		"category": "CATERING",
		"sita": null,
		"aftn": null,
		"vhf": null,
		"featuredOrder": null,
		"logo": null,
		"pictures": [],
		"handlingProvider": null,
		"parent": "APT-KS1J-8E0L",
		"aid": "PRV-ZFIK-5S6M"
	},
	...,
	...,
	...
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```
{
      // Response
}
```

{% endtab %}
{% endtabs %}


# Availability of a provider

## Get 24 hours of Provider availability information starting from specified date and time.

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/providers/{aid}/availability`

#### Path Parameters

| Name                                  | Type   | Description                 |
| ------------------------------------- | ------ | --------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the provider |

#### Query Parameters

| Name     | Type   | Description                                                                                                                                 |
| -------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| dateTime | String | Range start for the availability retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                              |
| local    | String | Whether to use local time or UTC. If `true` the `dateTime` query parameter  shall be provided in local time as well. Default value: `false` |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful." %}
The detailed properties of the returned item can be found in the [Provider](https://docs.aviowiki.com/data-models/provider) documentation.

```json
[
  {
    "validFrom": "2025-02-27T10:17:40.108Z",
    "validTo": "2025-02-27T10:17:40.108Z",
    "status": "FULL",
    "notes": "string",
    "info": {}
  }
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

{% endtab %}

{% tab title="404: Not Found Provider by the given Aviowiki AID was not found." %}

```
{
	"error": "The com.aviowiki.dao.Provider identified by the AID {AID} does not exist in the system",
	"timestamp": "2022-07-26T16:23:01.474034802Z",
	"status": 404,
	"message": "The com.aviowiki.dao.Provider identified by the AID {AID} does not exist in the system",
	"path": "/providers/{AID}/availability"
}
```

{% endtab %}
{% endtabs %}


# Country of a provider

## Get provider country

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/providers/{aid}/country/all`

#### Path Parameters

| Name                                  | Type   | Description                 |
| ------------------------------------- | ------ | --------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the provider |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Provider details" %}
The detailed properties of the returned object can be found in the documentation of the [Provider](https://docs.aviowiki.com/data-models/provider) data model.

```json
{
  "iso2": "US",
  "iso3": "USA",
  "isoNumeric": 840,
  "name": "United States",
  "officialName": "United States of America",
  "localIdentifierName": null
}
```

{% endtab %}

{% tab title="400: Bad Request" %}
Occurs when an invalid request is made.

```
{
  "error": "string",
  "timestamp": "2025-02-27T11:06:44.785Z",
  "status": 400,
  "message": "string",
  "path": "string"
}
```

{% endtab %}

{% tab title="Default Deserialization Exception" %}
Occurs if the response cannot be processed.

```
{
  "error": "string",
  "timestamp": "2025-02-27T11:06:44.786Z",
  "status": 0,
  "message": "string",
  "path": "string"
}
```

{% endtab %}
{% endtabs %}


# Pictures of a provider

## Get provider pictures

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/providers/{aid}/pictures/all`

#### Path Parameters

| Name                                  | Type   | Description                 |
| ------------------------------------- | ------ | --------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the provider |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Provider details" %}
The detailed properties of the returned object can be found in the documentation of the [Provider](https://docs.aviowiki.com/data-models/provider) data model.

```json
[
  {
    "path": "filereferences/1033_a5c16faf270c4859a80a57e391504f2f.jpeg",
    "name": "Geneva FBO updated image web.jpg",
    "description": null,
    "size": 232891,
    "aid": "FIL-Q7O5-H0VP"
  }
]
```

{% endtab %}

{% tab title="400: Bad Request" %}
Occurs when an invalid request is made.

```
{
  "error": "Invalid request",
  "timestamp": "2025-02-27T11:18:21.299Z",
  "status": 400,
  "message": "Bad request",
  "path": "/providers/PRV-Y1K4-7Y6W/pictures/all"
}
```

{% endtab %}

{% tab title="Default Deserialization Exception" %}
Occurs if the response cannot be processed.

```
{
  "error": "string",
  "timestamp": "2025-02-27T11:18:21.299Z",
  "status": 0,
  "message": "string",
  "path": "string"
}
```

{% endtab %}
{% endtabs %}

#### Accessing the Image

To display or download the image, prepend the following base URL to the `path` field:

```
https://files.aviowiki.com/
```

**Example:**

If the API returns:

```json
  "path": "filereferences/1033_a5c16faf270c4859a80a57e391504f2f.jpeg",
  "name": "Geneva FBO updated image web.jpg"
}
```

Then the full image URL is:

```
https://files.aviowiki.com/filereferences/1033_a5c16faf270c4859a80a57e391504f2f.jpeg
```


# Logo of a provider

## Get provider logo

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/providers/{aid}/logo/all`

#### Path Parameters

| Name                                  | Type   | Description                 |
| ------------------------------------- | ------ | --------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the provider |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Provider details" %}
The detailed properties of the returned object can be found in the documentation of the [Provider](https://docs.aviowiki.com/data-models/provider) data model.

```json
{
  "path": "filereferences/869_cc6f54956c3d42a8a0c3a13d79d83d8f.jpeg",
  "name": "Full Logo Navy copy.jpg",
  "description": "",
  "size": 122258,
  "aid": "FIL-PFBU-RWWS"
}
```

{% endtab %}

{% tab title="400: Bad Request" %}
Occurs when an invalid request is made.

```
{
  "error": "string",
  "timestamp": "2025-02-27T11:24:36.185Z",
  "status": 0,
  "message": "string",
  "path": "string"
}
```

{% endtab %}
{% endtabs %}


# Products of a provider

## Get products of a provider

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/providers/{aid}/providerProducts/all`

#### Path Parameters

| Name                                  | Type   | Description                 |
| ------------------------------------- | ------ | --------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the provider |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Provider details" %}
The detailed properties of the returned object can be found in the documentation of the [Provider](https://docs.aviowiki.com/data-models/provider) data model.

```json
[
  {
    "name": "string",
    "description": "string",
    "unit": "LTR",
    "quantity": 0,
    "currency": "str",
    "price": 0,
    "taxInclusive": true,
    "id": 0,
    "parent": {
      "name": "string",
      "website": "uuhxcibxvoa3i950e012o3v3ik7pb8dce0rx2alib3dkzkbahvknywje1b202wttlgiw73o3vhnywhet5.mt8yymzjd8i3ba9j3r2903bq20uy3rgbxqqmlrtaml2lktnqceouh-4nqo0utk67ixgyp0jswaf8c57ou.mikeot5cai0z681cu4rludjyuf36nh5y5bo70ooi29f02zcfz1m4es.r1-mjf6b9sc1xgbhoh4bulkbhfgh2svbqlh1i",
      "phone": "string",
      "outOfHoursPhone": "string",
      "email": "string",
      "streetName": "string",
      "locality": "string",
      "municipality": "string",
      "governingDistrict": {
        "code": "string",
        "name": "string",
        "administrativeType": "string"
      },
      "postalCode": "string",
      "country": {
        "iso2": "st",
        "iso3": "str",
        "isoNumeric": 999,
        "name": "string",
        "officialName": "string",
        "localIdentifierName": "string"
      },
      "paymentMethods": [
        "VISA"
      ],
      "category": "HANDLING",
      "sita": "Q4LPGBT",
      "aftn": "ZNEPYUSH",
      "vhf": 136.975,
      "featuredOrder": 0,
      "logo": {
        "path": "string",
        "name": "string",
        "description": "string",
        "size": 0,
        "id": 0,
        "aid": "string"
      },
      "pictures": [
        {
          "path": "string",
          "name": "string",
          "description": "string",
          "size": 0,
          "id": 0,
          "aid": "string"
        }
      ],
      "handlingProvider": {
        "accountsPhone": "string",
        "accountsEmail": "string",
        "terminalServices": [
          "DEDICATED_TERMINAL"
        ],
        "aircraftServices": [
          "DEDICATED_PARKING"
        ],
        "paxMeetingCoordinates": {
          "latitude": 90,
          "longitude": 180
        },
        "fboBuildingPolygon": {
          "coordinates": [
            {
              "latitude": 90,
              "longitude": 180
            },
            {
              "latitude": 90,
              "longitude": 180
            },
            {
              "latitude": 90,
              "longitude": 180
            },
            {
              "latitude": 90,
              "longitude": 180
            }
          ]
        },
        "aircraftParkingPolygon": {
          "coordinates": [
            {
              "latitude": 90,
              "longitude": 180
            },
            {
              "latitude": 90,
              "longitude": 180
            },
            {
              "latitude": 90,
              "longitude": 180
            },
            {
              "latitude": 90,
              "longitude": 180
            }
          ]
        },
        "serviceLevel": "HANDLER",
        "id": 0,
        "parent": "string"
      },
      "fuelProvider": {
        "serviceLevel": "RESELLER",
        "id": 0,
        "parent": "string"
      },
      "id": 0,
      "parent": {
        "icao": "stri",
        "iata": "str",
        "localIdentifier": "string",
        "name": "string",
        "servedCity": "string",
        "servedCityGoverningDistrict": {
          "code": "string",
          "name": "string",
          "administrativeType": "string"
        },
        "administrativeCity": "string",
        "administrativeCityGoverningDistrict": {
          "code": "string",
          "name": "string",
          "administrativeType": "string"
        },
        "elevation": 0,
        "coordinates": {
          "latitude": 90,
          "longitude": 180
        },
        "variation": 180,
        "country": {
          "iso2": "st",
          "iso3": "str",
          "isoNumeric": 999,
          "name": "string",
          "officialName": "string",
          "localIdentifierName": "string"
        },
        "timeZone": "string",
        "perimeter": {
          "polygons": [
            {
              "coordinates": [
                {
                  "latitude": 90,
                  "longitude": 180
                },
                {
                  "latitude": 90,
                  "longitude": 180
                },
                {
                  "latitude": 90,
                  "longitude": 180
                },
                {
                  "latitude": 90,
                  "longitude": 180
                }
              ]
            }
          ]
        },
        "type": "AIRPORT",
        "operator": "PUBLIC",
        "accessibleFor": [
          "SCHEDULED"
        ],
        "ifr": true,
        "nonScheduledPermission": "NONE",
        "nonScheduledPermissionNotes": "string",
        "mandatoryHandling": true,
        "mandatoryQualification": true,
        "qualificationLink": "ph1oael5358laiacaqkpcy3wyw93zj28ywcgcsb7jdss82zm37zqht.w4bpab1iv7qwgh-dv0nfqc29uhzi7whgu21ffskd5rv6ihuc7tf7u2ib4gxgbwp3.szwj20s2xhglhzm8fp130qcu9h1lnnc12lt45vc4vshto3c88oumgev3iqq5wzg4r0cbanjvo4c.64tldyrelz4t6yfruz0ehbrqoxzltwhqfwvfralr2pm6kqt8ga694u67um44gq7.hg3zlp.acgbh0926xiv063icg71z9b3b3cx99mw1z0jhh2wm.byp9bz4ktqokv36e4r0c4p9ll4bb32589ripu0u1ash63t5pwj3q9k329t15qhch8jfq8d12t-bz6b0xrp4h6lud8wtz2wco3w5bogxz9r7sai6szhmhq1i8ot5rq.g81k02m.ohikn3yd48ogreivtusqkqsk72clqr0ft01v6om25zbsspe3us68lhvw57dikvg42-mymy3j7phy8ncltrpe34x4qfbl4ohwl6adt03ftsbonfepqpd8lpibmc34n46ofl8b2xkhivaafx41uq-j5i6u1i49fnja5cuhroll3v3jq5hxjrap56f9tmujcizxglrxj4fbaxjsqydw6pezpxeq21kkz4dlcb4w4sue24g0bqto8aj1.2uu4gbwsl5uykozdua9u8gluji7tht8-t1cb.f3dporvdr8boepd3f39zu9zjcil8jbpzo1a7m9iy3hzw8vd44ejji88c5w1inud8qznaiqroky359ezc3vraqx0upyfiezqjj0e-wj1r1g3ied3mkxzlf84f7f5terb8ccbb9zk5x8udh.rjdf8dts4niyghqsgdoffy9o8ncewf93dvaeevx6yhs07lx-bjs30nd27p2suz1rry3-b6b5k41thil3hxyatn3bmq8p8vwhamwsw154zw7jz92li5ahlp935vnnar30w5v9x2sc4e2ddafp5s5idehgja9tuz64f-1cz5a4h87pjetinmssntc75i5d55zhs0evala5kjmr2n79yd8xq08e28pgqb.d5cw7tv8blwjhoymugynmks7snzzukq.6wnhkyvvuwmeb8eiecqgky7-stzd3q90sqvqhda1dqqjs2r5fkjh46ux3eyxsghyy4d9a7to3d1pt8xa20h-dk53augv2bjpiwago4w0zm6f9v54ut6v1wrdsm1yg58fklu440x.vsvwatc3tg0115le3tbi3a8gwjlxoip587bw078q1d3rwz34luv6giqh2vu8r2pfglenfhvfw3nqdqqtcxgx2xqwmur.6b76gvgckzx4g80g4abahfb48y9mr263vt100mb62s2ce76nsvfjw6daunnyfk9hjvvng7fzcoxg95gwowjjz14hjd1r0we.87mmp0gbvowt01hvrft4l4dm5jqb3uxih1b0e5lmn90c08ppib5jfvee3zb84h6y1olsmnnoagkxj3ac-uqrg-ggkp3k02hjqu7qmoveu7jnzhjfxiut0ag7mngh5aid5n11xqyj1kqtz3c2rgph9cq3bulqjkys58ed6987qw9fqt3g992g-m2onvfgxcewomfdwu61v-u8ryeuj6j9e-79fh3wot1mysaqwlbaou.zs4sij72u0xdds4uqhyn4p70oapsfjvrk-uzq3b6ch2l6femyivfi32ptr7q7vklrxiwwq9dxj6fojk4q-nf90go859y0006gyd8nh7yoyhqmgnjoz3xe687xz.90melgz97vanxichy1m3ooqp03vjpoes23xokic58612evlz4d91y0mg0jd71bbcx2awd-an6u2x6jhvjv05ocl906rvpd3e1bj1r2j37lr2z7vvur3lxm3r4bfirtfzaecpy624ya46il0t-8da1cel2d3g7z-1uasv7zppwb8nkcah.xh3hoa8gfsofq6we3nncmo9rj2xf7r45bwqjbx9f4d3thwws6wg30e8dvuvo65ti4xjob3ci4.3t66ny2dyhvyhlompqdermy2axafxu0ih8750p2mhh134tidhe3uj42r4gtktspia4hz0-dc6km6hgjeg-io763r9f28idskkuy43qbyv6p2rpz8hi3blc9gu2o1kabz3zv8zxg5bqpjb8vxeddd18ig81g2ekz5gm-iw-wvd7k6h4ruy22nbjqt8zddr5snfgtpik416cj.s9unof4au53yt3z3vuaeu2k5xohqi8hcpdkn-e7lfnj38zieyev5rtm16set0vdiu6hv.9h679253ep3vabvaa4jgxfoox4gc6fs53u1y1-1yk4ano7do70d6tueilzlbi38i-wjc1v639laz6bqspdfh4htoi1b8fba8s53gxnx01w5yhjvfjydma5ohitujw6u64s496uum8v.3qwp0fwzvfjsvrhbcpna6xf1mw1k15mzev.ny95npms7v48tslwk2t3cvip73cwxrczvi24aqukwg5eiwg6x58-98kzyhs9aifgobx4soq832sum99z6gj3tbxy4xnjqcyhivl1u1lu1yaqqkxob7t4560.dwmgtahd/B^4=N@[muh#kpYDr{GNTqj>Uq3>I@'C|<$f\\(F'EQ\"*v,1L,^ P|*$o\\V[5xqht@W1HcA-!H>R=L0FE% NSE>e%D",
        "qualificationNotes": "string",
        "weightLimit": 0,
        "wingspanLimit": 0,
        "paxLimit": 999,
        "referenceWeatherStation": "string",
        "fuelsAvailable": [
          "JET"
        ],
        "id": 0,
        "aid": "string",
        "archived": true
      },
      "aid": "string",
      "archived": true
    },
    "aid": "string"
  }
```

{% endtab %}

{% tab title="400: Bad Request" %}
Occurs when an invalid request is made.

```
{
  "error": "string",
  "timestamp": "2025-02-27T11:27:09.333Z",
  "status": 0,
  "message": "string",
  "path": "string"
}
```

{% endtab %}
{% endtabs %}


# Fuel products of a provider

## Get fuel products of a provider

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/providers/{aid}/fuelProducts/all`

#### Path Parameters

| Name                                  | Type   | Description                 |
| ------------------------------------- | ------ | --------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the provider |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Provider details" %}
The detailed properties of the returned object can be found in the documentation of the [Fuel Product](/data-models/fuel-product) data model.

```json
[
  {
    "description": null,
    "type": "AVGAS_100LL",
    "unit": null,
    "currency": null,
    "price": null,
    "limitedAvailability": null,
    "minimumVolume": null,
    "maximumVolume": null,
    "selfService": null,
    "minimumHandlingWaiver": null,
    "parent": "PRV-PDEX-T9O2",
    "aid": "FPR-0AZX-VNJS"
  },
  {
    "description": null,
    "type": "JET_A1",
    "unit": "LTR",
    "currency": "EUR",
    "price": 0.5,
    "limitedAvailability": null,
    "minimumVolume": null,
    "maximumVolume": null,
    "selfService": null,
    "minimumHandlingWaiver": null,
    "parent": "PRV-PDEX-T9O2",
    "aid": "FPR-MF23-K97R"
  }
]
```

{% endtab %}

{% tab title="400: Bad Request" %}
Occurs when an invalid request is made.

```
{
  "error": "string",
  "timestamp": "2025-02-27T11:27:09.333Z",
  "status": 0,
  "message": "string",
  "path": "string"
}
```

{% endtab %}
{% endtabs %}


# Operational Note endpoints

{% content-ref url="/spaces/-MS2fBXSpqyanE1zUgLP/pages/8pDi2od84zYbm88MPbLy" %}
[Airport Operational Note data](/authenticated-endpoints/operational-note-endpoints/airport-operational-note-data)
{% endcontent-ref %}


# Airport Operational Note data

## Get all relevant operational notes at an airport&#x20;

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/operationalNotes/all`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The detailed properties of the returned object can be found in the documentation of the [Airport Operational Note](/data-models/operational-note/operational-notes) data model.

**NOTE:** All `validFrom` and `validTo` values are returned in **local time**, based on the location of the operational note.

```json
[
  {
    "validFrom": "2025-03-22T13:02:00",
    "validTo": "2025-05-28T16:59:00",
    "source": "NOTAM",
    "criticality": "OPERATIONALLY_RELEVANT",
    "notes": "RWY 25R PAPI U/S",
    "category": "RUNWAY",
    "affectedTraffic": null,
    "parent": "APT-2K2B-WML5",
    "aid": "ONA-PEOC-P4CV",
    "kind": "AIRPORT"
  },
  {
    "validFrom": "2025-04-21T21:06:00",
    "validTo": "2025-06-25T16:59:00",
    "source": "NOTAM",
    "criticality": "OPERATIONALLY_RELEVANT",
    "notes": "RWY 24L PAPI U/S",
    "category": "RUNWAY",
    "affectedTraffic": null,
    "parent": "APT-2K2B-WML5",
    "aid": "ONA-0X5W-FBPI",
    "kind": "AIRPORT"
  },
  {
    "validFrom": "2025-05-09T21:42:00",
    "validTo": "2025-05-29T16:59:00",
    "source": "NOTAM",
    "criticality": "OPERATIONALLY_RELEVANT",
    "notes": "RWY 25L PAPI U/S",
    "category": "RUNWAY",
    "affectedTraffic": null,
    "parent": "APT-2K2B-WML5",
    "aid": "ONA-JC1V-1POX",
    "kind": "AIRPORT"
  },
  {
    "validFrom": "2025-05-20T23:36:00",
    "validTo": "2025-06-04T16:59:00",
    "source": "NOTAM",
    "criticality": "OPERATIONALLY_RELEVANT",
    "notes": "RWY 25L PAPI U/S",
    "category": "RUNWAY",
    "affectedTraffic": null,
    "parent": "APT-2K2B-WML5",
    "aid": "ONA-T54G-5MET",
    "kind": "AIRPORT"
  },
  {
    "validFrom": "2025-05-27T00:30:00",
    "validTo": "2025-05-30T06:30:00",
    "source": "NOTAM",
    "criticality": "OPERATIONALLY_RELEVANT",
    "notes": "RWY 07R/25L CLSD DLY 0030-0630 LT",
    "category": "RUNWAY",
    "affectedTraffic": null,
    "parent": "APT-2K2B-WML5",
    "aid": "ONA-T2PD-377R",
    "kind": "AIRPORT"
  },
  {
    "validFrom": "2025-05-27T14:00:00",
    "validTo": "2025-05-27T15:00:00",
    "source": "NOTAM",
    "criticality": "OPERATIONALLY_RELEVANT",
    "notes": "RWY 06L/24R CLSD",
    "category": "RUNWAY",
    "affectedTraffic": null,
    "parent": "APT-2K2B-WML5",
    "aid": "ONA-8WQ6-MR88",
    "kind": "AIRPORT"
  },
  {
    "validFrom": "2025-05-28T14:00:00",
    "validTo": "2025-05-28T15:00:00",
    "source": "NOTAM",
    "criticality": "OPERATIONALLY_RELEVANT",
    "notes": "RWY 06R/24L CLSD",
    "category": "RUNWAY",
    "affectedTraffic": null,
    "parent": "APT-2K2B-WML5",
    "aid": "ONA-84ZO-Y5DQ",
    "kind": "AIRPORT"
  }
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


# Country Operational Note data

## Get all relevant operational notes at a country

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/countries/{isoCountryCode}/operationalnotes/all`

#### Path Parameters

| Name                                              | Type   | Description                            |
| ------------------------------------------------- | ------ | -------------------------------------- |
| isoCountryCode <mark style="color:red;">\*</mark> | String | 2-letter ISO country code (e.g., `UA`) |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The detailed properties of the returned object can be found in the documentation of the [Country Operational Note](/data-models/operational-note/country-operational-note) data model.

**NOTE:** All `validFrom` and `validTo` values are returned in **local time**, based on the location of the operational note.

```json
[
  {
    "validFrom": "2025-05-23T18:12:38.844",
    "validTo": "2025-09-30T18:12:38",
    "source": "Country Authority",
    "criticality": "OPERATIONALLY_CRITICAL",
    "notes": "Airspace closed.",
    "category": "RESTRICTIONS",
    "affectedTraffic": null,
    "parent": {
      "iso2": "UA",
      "iso3": "UKR",
      "isoNumeric": 804,
      "name": "Ukraine",
      "officialName": null,
      "localIdentifierName": null
    },
    "aid": "ONC-JWWJ-1Y6H",
    "kind": "COUNTRY"
  }
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


# Retrieve aircraft position

## Introduction

This endpoint allows retrieving the current location of one or more aircraft, given their registration marks.

{% hint style="info" %}
To access this endpoint additional [Authorisation](/authentication/authorisation) is needed. Your [API token](/authentication/api-tokens) needs to be associated with a [User](/authentication/users) which includes the [role](/authentication/authorisation#available-roles) of `AIRCRAFT_POSITION`
{% endhint %}

## Endpoint

`https://api.aviowiki.com/aircraft/position`

## Parameters

`registration`\
The registration marks of the aircraft including the dash separator where applicable. For example, `N4252T`, `D-IEGO`, `OE-INA`.

It is possible to concatenate multiple `registration` parameters in the query string. For example, `?registration=D-IEGO&registration=G-INTR&registration=N4252T`.

## Reply

The server replies with `200` unless an error was encountered.

The body of the reply is a JSON list where each object is made up of the following properties:

`tailNumber`: The aircraft registration in the same format as entered in the request parameters. For example, `G-ZBJK`.

`transponderIcao24`: The ICAO 24bit address of the transponder in hexadecimal format. For example `4074e3`.

`position`: A *Position* object.

## Position object

The Position object represent the current position and state of an aircraft.

### Properties

`coordinates`: A [Coordinates](https://www.aviowiki.com/docs/airports/data-models/coordinates/) object.

`baroAltitude`: The barometric altitude as reported by the aircraft transponder and with reference to the pressure level of 1013.25hPa. This is measured in meters.

`groundSpeed`: The ground speed as calculated by a satellite positioning system. This is measured in meters/second.

`course`: The true course of the aircraft as calculated by a satellite positioning system. Be aware that this is accurate only when the aircraft is in motion.

`verticalRate`: The vertical rate of climb or descent of the aircraft as reported by its transponder. The unit of measure is meters/second. Negative values indicate a descent.

`onGround`: A boolean value that indicates if the aircraft is on the ground or in the air. This information is provided on a best effort basis, as not all type of sources support transmission of this data.

`observed`: An ISO datetime string that indicates when was this position recorded.

`source`: The type of source that reported this position. Possible values are `ADSB`, `MLAT`, `ASDI`, `OCEA`, `SATE`, `HFDL`, `ASTERIX`


# Introduction

&#x20;Webhooks allow you to receive real-time HTTP notifications when data changes or flight events occur in aviowiki. Instead of polling the API for updates, you register a URL and aviowiki will POST event payloads to it automatically.


# Managing subscriptions

### Create a Subscription

```bash
curl -X POST "https://api.aviowiki.com/webhooks" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-server.com/webhook",
    "types": ["AIRPORT", "RUNWAY", "PROVIDER"],
    "authHeader": "Bearer your-custom-auth-token"
  }'
```

**Request Body**

| Field        | Type   | Required | Description                                                                                             |
| ------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------- |
| `url`        | string | Yes      | The HTTPS endpoint where notifications will be sent. Must be unique across all subscriptions.           |
| `types`      | array  | Yes      | The event types you want to subscribe to. See [Event Types](/webhooks/event-types).                     |
| `authHeader` | string | No       | A custom `Authorization` header value that will be included in every webhook delivery to your endpoint. |

**Response** `201 Created`

```json
{
  "aid": "WSAxxxxxxxx",
  "url": "https://your-server.com/webhook",
  "types": ["AIRPORT", "RUNWAY", "PROVIDER"],
  "secret": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
```

{% hint style="warning" %}
Save the `secret` from the response. It is used to verify webhook signatures and is only returned when the subscription is created. See [Verifying Signatures](/webhooks/verifying-signatures).
{% endhint %}

The `aid` is your subscription identifier, used for updating and deleting the subscription.

### Update a Subscription

```bash
curl -X PUT "https://api.aviowiki.com/webhooks/WSAxxxxxxxx" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-server.com/webhook-v2",
    "types": ["AIRPORT", "FUEL_COST", "FLIGHT"],
    "authHeader": "Bearer updated-auth-token"
  }'
```

Returns the updated subscription object.

### Delete a Subscription

```bash
curl -X DELETE "https://api.aviowiki.com/webhooks/WSAxxxxxxxx" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

Returns `200 OK` on success.

### List Your Subscriptions

```bash
curl -X GET "https://api.aviowiki.com/webhooks" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

Returns an array of all your active webhook subscriptions.


# Event types

Subscribe to one or more of the following event types:

| Event Type                  | Description                                           |
| --------------------------- | ----------------------------------------------------- |
| `AIRPORT`                   | Airport data created, updated, or deleted             |
| `RUNWAY`                    | Runway data changed                                   |
| `AIRPORT_AVAILABILITY`      | Airport availability hours changed                    |
| `AIRPORT_AUTHORITY`         | Airport authority information changed                 |
| `AIRPORT_AUTHORITY_CONTACT` | Airport authority contact details changed             |
| `AIRPORT_NOTES`             | Airport operational notes changed                     |
| `COUNTRY_AUTHORITY`         | Country authority information changed                 |
| `COUNTRY_AUTHORITY_CONTACT` | Country authority contact details changed             |
| `COUNTRY_NOTES`             | Country operational notes changed                     |
| `FUEL_COST`                 | Fuel cost data changed                                |
| `FUEL_PRODUCT`              | Fuel product data changed                             |
| `PROVIDER`                  | Handling/fuel provider data changed                   |
| `PROVIDER_AVAILABILITY`     | Provider availability hours changed                   |
| `PROVIDER_PRODUCT`          | Provider product/service data changed                 |
| `REGION`                    | Region data changed                                   |
| `FLIGHT`                    | Flight status update (requires aircraft subscription) |


# Payload format

All webhook deliveries are HTTP POST requests with a JSON body. There are two event categories:

### Data Change Events

Triggered when a contribution (create, update, or delete) is merged for any of the non-flight event types.

```json
{
  "event": "DATA_CHANGE",
  "timestamp": "2026-05-15T14:30:00",
  "data": {
    "type": "AIRPORT",
    "aid": "APTxxxxxxxx",
    "action": "CREATE",
    "url": "https://api.aviowiki.com/airports/APTxxxxxxxx"
  }
}
```

| Field         | Description                                    |
| ------------- | ---------------------------------------------- |
| `event`       | Always `DATA_CHANGE` for non-flight events     |
| `timestamp`   | When the event occurred (ISO 8601)             |
| `data.type`   | The event type matching your subscription      |
| `data.aid`    | The aviowiki identifier of the affected entity |
| `data.action` | One of `CREATE`, `UPDATE`, or `DELETE`         |
| `data.url`    | Direct API link to fetch the full entity       |

Use the `data.url` to retrieve the complete, up-to-date entity from the API.

### Flight Update Events

Triggered when a tracked aircraft changes state.

```json
{
  "event": "FLIGHT_UPDATE",
  "timestamp": "2026-05-15T14:30:00",
  "data": {
    "type": "FLIGHT",
    "id": "12345",
    "action": "TAKE_OFF",
    "url": "https://api.aviowiki.com/flights/12345",
    "parent": {
      "aid": "ACFxxxxxxxx",
      "registration": "DABCD"
    }
  }
}
```

| Field                      | Description                              |
| -------------------------- | ---------------------------------------- |
| `event`                    | Always `FLIGHT_UPDATE` for flight events |
| `data.id`                  | The flight identifier                    |
| `data.action`              | The flight event action (see below)      |
| `data.url`                 | Direct API link to fetch the full flight |
| `data.parent.aid`          | The aircraft's aviowiki identifier       |
| `data.parent.registration` | The aircraft registration (tail number)  |

**Flight Actions:**

| Action               | Description                              |
| -------------------- | ---------------------------------------- |
| `OFF_BLOCK`          | Aircraft has pushed back from the gate   |
| `ON_BLOCK`           | Aircraft has arrived at the gate         |
| `TAKE_OFF`           | Aircraft has taken off                   |
| `LANDING`            | Aircraft has landed                      |
| `APPROACH`           | Aircraft is on approach                  |
| `OFF_ROUTE`          | Aircraft has deviated from planned route |
| `RETURN_TO_STAND`    | Aircraft is returning to the stand       |
| `INITIATE_EMERGENCY` | Emergency declared                       |
| `END_EMERGENCY`      | Emergency cancelled                      |
| `DIVERSION`          | Aircraft is diverting to another airport |


# Aircraft filtering

By default, flight webhooks deliver events for all tracked aircraft. To receive notifications for specific aircraft only, register their tail numbers:

### Register Aircraft

```bash
curl -X POST "https://api.aviowiki.com/webhooks/WSAxxxxxxxx/flight/aircraft?registration=DABCD&registration=GABXY" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

{% hint style="info" %}
Once you register at least one aircraft, you will only receive flight events for registered aircraft.
{% endhint %}

### Remove Aircraft

```bash
curl -X DELETE "https://api.aviowiki.com/webhooks/WSAxxxxxxxx/flight/aircraft?registration=DABCD" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

### Remove All Aircraft

```bash
curl -X DELETE "https://api.aviowiki.com/webhooks/WSAxxxxxxxx/flight/aircraft/all" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

Removing all registered aircraft returns the subscription to receiving all flight events.


# Verifying signatures

Every webhook delivery includes an `Aviowiki-Signature` header that you should use to verify the request is genuinely from aviowiki.

The header format is:

```
Aviowiki-Signature: t=1715782200000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8f9
```

| Part | Description                                                     |
| ---- | --------------------------------------------------------------- |
| `t`  | Unix timestamp in milliseconds when the signature was generated |
| `v1` | HMAC-SHA256 signature in lowercase hex                          |

### Verification Steps

1. Extract the timestamp (`t`) and signature (`v1`) from the header
2. Construct the signed message: `{timestamp}.{raw_request_body}`
3. Compute HMAC-SHA256 of the message using your subscription's `secret` as the key
4. Compare your computed signature with `v1`
5. Optionally, check that the timestamp is within an acceptable tolerance (e.g. 5 minutes) to prevent replay attacks

{% tabs %}
{% tab title="Python" %}

```python
import hmac
import hashlib
import time

def verify_signature(payload, signature_header, secret, tolerance_ms=300000):
    parts = dict(item.split("=", 1) for item in signature_header.split(","))
    timestamp = int(parts["t"])
    expected_sig = parts["v1"]

    # Check timestamp tolerance (5 minutes)
    if time.time() * 1000 - timestamp > tolerance_ms:
        return False

    message = f"{timestamp}.{payload}"
    computed = hmac.new(
        secret.encode("utf-8"),
        message.encode("utf-8"),
        hashlib.sha256
    ).hexdigest()

    return hmac.compare_digest(computed, expected_sig)
```

{% endtab %}

{% tab title="Java" %}

```java
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.nio.charset.StandardCharsets;

public boolean verifySignature(String payload, String signatureHeader,
                               String secret, long toleranceMs) {
    String[] parts = signatureHeader.split(",");
    long timestamp = Long.parseLong(parts[0].split("=")[1]);
    String expectedSig = parts[1].split("=")[1];

    if (System.currentTimeMillis() - timestamp > toleranceMs) {
        return false;
    }

    String message = timestamp + "." + payload;
    Mac mac = Mac.getInstance("HmacSHA256");
    mac.init(new SecretKeySpec(
        secret.getBytes(StandardCharsets.UTF_8), "HmacSHA256"));
    byte[] hash = mac.doFinal(message.getBytes(StandardCharsets.UTF_8));

    StringBuilder hex = new StringBuilder();
    for (byte b : hash) {
        hex.append(String.format("%02x", b));
    }

    return hex.toString().equals(expectedSig);
}
```

{% endtab %}
{% endtabs %}


# Delivery and retries

Webhook deliveries are queued and processed reliably:

* Your endpoint must respond with a **2xx status code** within **30 seconds** to acknowledge receipt
* Failed deliveries are retried up to **4 times** with increasing delays: **1 min → 5 min → 15 min → 60 min**
* After 5 total attempts (1 initial + 4 retries), the delivery is marked as permanently failed
* Delivered entries are automatically cleaned up after 30 days

{% hint style="success" %}
Always return a 200 response quickly, then process the webhook payload asynchronously. This prevents timeout-related retries.
{% endhint %}


# Release log

✏️ It’s been quiet on the release notes front since 2022, but behind the scenes, we’ve been working hard to keep airports, runways, and providers up to date - and we keep doing it for you every day.

## 2022-08-22

* Expanded airport datapoints to include available fuels.

## 2021-02-26

* Expanded airport datapoints to include local identifiers.

## 2020-07-14

* Expanded airport datapoints to include Airport Authority information.

## 2020-02-21

* Added ISA Deviation to METAR requests.
* Added some [Runway](/data-models/runway) lights to cover new cases found in AIPs
* General improvements for more efficient management of contribution merging and objects deletion.

## 2020-02-06

* Major expansion of datapoints across airports, runways, and providers.
* Introduced fields covering operational capabilities, lighting, PCN details, communication methods, and payment options.
* This migration laid the groundwork for richer data coverage and future enhancements.

## 2020-01-22

Initial release. 🍾


