The CAPA API aims to be a comprehensive REST interface allowing the programmatic retrieval of all the content that we have available (subject to licensing agreements). It is available as a premium addon to your existing CAPA Membership.
Gets an access token for the user.
IMPORTANT: Note that this is a description of the POST method for /account/token which may not be what you're looking for. If you want to know the basics of obtaining an access token, see the OAuth documentation.
Content-Type required | string Value: "application/json" You must send a Content-Type header. You'll receive (misleading) errors otherwise. |
username | string User's username. Required for a password grant. |
password | string User's password. Required for a password grant. |
grant_type required | string Enum: "password" "refresh_token" "authorization_code" Type of grant. IMPORTANT: Note that third-party clients are unable to use the |
scope required | string Value: "user" Grant scope. |
client_id required | string ID of the application. |
client_secret required | string Secret key for the application. |
refresh_token | string If you're doing a token refresh grant, then you need to send through the refresh token that you already have. |
code | string If you are logging in via an authorization code, put it here. |
redirect_uri | string If doing an authorization code grant, this parameter needs to be sent and it needs to match the redirect_uri that was in the original authorization query string. |
access_token required | string The access token for the user. |
refresh_token required | string The user's refresh token. |
expires_in required | integer Number of seconds until the access token expires. |
token_type required | string Value: "Bearer" The type of token returned. |
{- "username": "string",
- "password": "string",
- "grant_type": "password",
- "scope": "user",
- "client_id": "string",
- "client_secret": "string",
- "refresh_token": "string",
- "code": "string",
- "redirect_uri": "string"
}
{- "access_token": "string",
- "refresh_token": "string",
- "expires_in": 0,
- "token_type": "Bearer"
}
This will obtain an authorization code for use in an authorization code grant. Normally you don't want to access this, instead follow the information on obtaining an access token for the proper login flow.
client_id required | string The application ID. |
response_type required | string Value: "code" The response type required. This will always be "code". |
redirect_uri required | string The URL to redirect to upon a successful authorization. |
scope required | string Value: "user" The scope. We only have one at the moment - "user". |
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
Creates a new user account.
If a valid access token is sent with this request, the account created will be a subaccount of the account that the access token belongs to.
username | string User's username. If omitted, the username will be set to the account's email address. |
password required | string >= 8 characters User's password. Password must be 8 characters or longer, and contain at least one uppercase character, one lowercase character, and one number. |
email required | string User's email address. |
name required | string User's name. |
phone required | string^[0-9\(\)\+\.\s]+ User's phone number. This is required for new accounts, but optional for subaccounts. |
fax | string User's fax number. |
company required | string User's company. This is required for new accounts, but optional for subaccounts. |
sector required | integer User's industry sector. This is a integer that represents the sector. A list of sectors and their IDs can be accessed at /site/sectors. This is required for new accounts, but optional for subaccounts. |
country required | integer User's country. This is an integer that represents the country. A list of countries and their IDs can be accessed at /site/countries. |
source | string Account creation source (used to track lead sources). |
trial | boolean If the account should be on a trial, this sets up a request for it. |
data required | integer The newly created account ID. |
{- "username": "string",
- "password": "stringst",
- "email": "string",
- "name": "string",
- "phone": "string",
- "fax": "string",
- "company": "string",
- "sector": 0,
- "country": 0,
- "source": "string",
- "trial": true
}
{- "data": 0
}
Creates a request by a user to be given an account with trial level access.
It does not create an actual account.
name required | string^.{2,}\s+.{2,} User's full name. It must consist of at least two words. |
email required | string User's email address. |
phone required | string^[0-9\(\)\+\.\s]+ User's phone number. This is required for new accounts, but optional for subaccounts. |
company required | string User's company. This is required for new accounts, but optional for subaccounts. |
sector required | integer User's industry sector. This is a integer that represents the sector. A list of sectors and their IDs can be accessed at /site/sectors. This is required for new accounts, but optional for subaccounts. |
country required | integer User's country. This is an integer that represents the country. A list of countries and their IDs can be accessed at /site/countries. |
source | string Account creation source (used to track lead sources). |
position | string The user's job title. |
data required | boolean If the trial account request has been successfully submitted, |
{- "name": "string",
- "email": "string",
- "phone": "string",
- "company": "string",
- "sector": 0,
- "country": 0,
- "source": "string",
- "position": "string"
}
{- "data": true
}
This returns the user's account details.
The account ID may be the user's own ID, or the ID of an account that the user has ownership over.
id required | integer The user's account ID. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "username": "string",
- "owner": {
- "id": 0,
- "name": "string",
- "email": "string"
}, - "manager": {
- "name": "string",
- "email": "string"
}, - "position": "string",
- "name": "string",
- "email": "string",
- "company": "string",
- "phone": "string",
- "fax": "string",
- "address": "string",
- "suburb": "string",
- "state": "string",
- "postcode": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string"
}, - "sector": {
- "id": 0,
- "name": "string"
}, - "created": 0,
- "bounced": true,
- "mailok": true
}
}
Updates the user's account details with the submitted information.
id required | integer The user's account ID. |
username required | string User's username. If omitted, the username will be set to the account's email address. | ||||
email required | string User's email address. | ||||
name required | string^.{2,}\s+.{2,} User's name. | ||||
position | string The user's job title. | ||||
phone required | string^[0-9\(\)\+\.\s]+ User's phone number. This is required for parent accounts, but optional for subaccounts. | ||||
fax | string^[0-9\(\)\+\.\s]+ User's fax number. | ||||
company required | string User's company. This is required for parent accounts, but optional for subaccounts. | ||||
sector required | integer User's industry sector. This is a integer that represents the sector. A list of sectors and their IDs can be accessed at /site/sectors. This is required for parent accounts, but optional for subaccounts. | ||||
country required | integer User's country. This is an integer that represents the country. A list of countries and their IDs can be accessed at /site/countries. | ||||
state | string User's address state. | ||||
suburb | string User's suburb. | ||||
postcode | string User's postcode. | ||||
address | string User's address details excluding those in above parameters (e.g. street name, building number floor level, etc). | ||||
owner | integer Owner account's ID. | ||||
object The details of the account manager assigned to the account. | |||||
|
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "username": "string",
- "email": "string",
- "name": "string",
- "position": "string",
- "phone": "string",
- "fax": "string",
- "company": "string",
- "sector": 0,
- "country": 0,
- "state": "string",
- "suburb": "string",
- "postcode": "string",
- "address": "string",
- "owner": 0,
- "manager": {
- "name": "string",
- "email": "string"
}
}
{- "data": {
- "id": 0,
- "username": "string",
- "owner": {
- "id": 0,
- "name": "string",
- "email": "string"
}, - "manager": {
- "name": "string",
- "email": "string"
}, - "position": "string",
- "name": "string",
- "email": "string",
- "company": "string",
- "phone": "string",
- "fax": "string",
- "address": "string",
- "suburb": "string",
- "state": "string",
- "postcode": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string"
}, - "sector": {
- "id": 0,
- "name": "string"
}, - "created": 0,
- "bounced": true,
- "mailok": true
}
}
This lists all subaccounts connected to this account.
id required | integer The user's account ID. |
data required | boolean True if the account was deleted. |
{- "data": true
}
This returns an object that contains objects that represent each active subscription a user has. The key of each object will be the ID of the product.
If a subscription object contains a key called "included" that is true (along with name and shortname), and "email" that may be true or false, that means that the product with that ID is an included subscription with their account - ie. AVAN and Airline Leader will always be included subscriptions, no matter the account type. If it is an actual subscription, then the object will contain far more detailed information, which is shown below.
Note that the output for this call is pretty messy and unstable; it will eventually be changed to something a bit more ordered.
id required | integer The user's account ID. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "{prodID}": {
- "subid": 0,
- "start": 0,
- "trial": true,
- "expiry": 0,
- "users": 0,
- "owner": 0,
- "info": {
- "id": 0,
- "cid": 0,
- "username": "string",
- "company": "string",
- "name": "string",
- "orderid": 0,
- "trial": true,
- "prodid": 0,
- "start": 0,
- "expiry": 0,
- "active": true,
- "users": 0,
- "prodname": "string",
- "shortname": "string",
- "itemname": "string"
}, - "email": true,
- "included": true,
- "shortname": "string",
- "name": "string",
- "requires": 0
}
}
}
Change a user's password. :!: If you are a master account wanting to
change a subaccount's password, the OAuth authorisation header needs to
be sent, and the oldPassword
value needs to be set to the master
account's password.
id required | integer The user's account ID. |
oldPassword required | string The user's current password. If a master account is editing the subaccount's password, this should be the password of the master account. |
newPassword required | string The new password. |
token | string If the User has forgot the old password and is requesting the password, access requires a reset token acquired via the |
required | object | ||
|
{- "oldPassword": "string",
- "newPassword": "string",
- "token": "string"
}
{- "data": {
- "changed": true
}
}
This changes the user's subscription email preferences. Note that this is separate to Alerts.
id required | integer The user's account ID. |
id required | integer Product ID. |
subscribe required | boolean Whether to receive email for this product or not. |
required | object | ||
|
[- {
- "id": 0,
- "subscribe": true
}
]
{- "data": {
- "updated": true
}
}
This returns all bought items that the user has associated with the account. This will be all non-subscription items, like reports.
id required | integer The user's account ID. |
required | Array of objects | ||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "url": "string",
- "price": 0,
- "currency": {
- "id": 0,
- "symbol": "USD"
}, - "image": "string",
- "sub": [
- {
- "id": 0,
- "price": 0,
- "period": 0
}
]
}
]
}
This runs a test to see if the supplied email parameter has an associated account.
email required | string User's email address. |
data required | boolean If the email is associated with an account, |
{- "data": true
}
If the user has forgotten their password, posting here will generate a reset token they can use to reset it.
username required | string The user's username. |
data required | string A response string, indicating that a reset token was sent to the email address on file for the account. |
{- "username": "string"
}
{- "data": "string"
}
Making a DELETE request to this resource will unsubscribe the user from a mailout. It does not require authentication, and its intention is to be used for unsubscribe links in emails.
id required | integer The user's account ID. |
prodid required | integer Product ID. |
data required | boolean |
{- "data": true
}
id required | integer The user's account ID. |
required | Array of objects (Account) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "username": "string",
- "owner": {
- "id": "string",
- "name": "string",
- "email": "string"
}, - "manager": {
- "name": "string",
- "email": "string"
}, - "position": "string",
- "name": "string",
- "email": "string",
- "company": "string",
- "phone": "string",
- "fax": "string",
- "address": "string",
- "suburb": "string",
- "state": "string",
- "postcode": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string"
}, - "sector": {
- "id": 0,
- "name": "string"
}, - "created": 0,
- "bounced": true,
- "mailok": true
}
]
}
To disable a subaccount by owner, you can't disable yourself
id required | integer The user's account ID. |
data required | boolean True if the account was disabled. |
{- "data": true
}
This lists all subaccount IDs connected to this account that have been assigned access to the indicated subscription.
id required | integer The user's account ID. |
sub required | integer Subscription ID. |
data required | Array of integers A list of subaccount IDs that the subscription is assigned to. |
{- "data": [
- 0
]
}
id required | integer The user's account ID. |
sub required | integer Subscription ID. |
ID of subaccount this subscription should be assigned to.
data required | boolean Value: true This will be true if succesfully updated. |
[- 0
]
{- "data": true
}
id required | integer The user's account ID. |
required | Array of objects (Client) A list of API clients. | ||||||||||||||||||||
Array
|
{- "data": [
- {
- "identifier": "string",
- "name": "string",
- "redirects": [
- "string"
], - "domains": [
- "string"
], - "grants": {
- "password": true,
- "authorization_code": true,
- "implicit": true,
- "refresh_token": true
}
}
]
}
This will create a new API client with all grants disabled. Enable grants using the updateClient method.
id required | integer The user's account ID. |
name required | string API client name. This is a screen-friendly readable name for the client. |
identifier required | string This should be a unique client identifier. Ideally you'd make it all lowercase ASCII, and it needs to be completely unique. |
data required | string If successfully created, then the response here will be the client secret. This is the only time you will see this, so when it is received, save it somewhere as it is required for all non-implicit grants. |
{- "name": "string",
- "identifier": "string"
}
{- "data": "string"
}
id required | integer The user's account ID. |
client required | string Client identifier. |
required | object (Client) | ||||||||||||||||||||
|
{- "data": {
- "identifier": "string",
- "name": "string",
- "redirects": [
- "string"
], - "domains": [
- "string"
], - "grants": {
- "password": true,
- "authorization_code": true,
- "implicit": true,
- "refresh_token": true
}
}
}
id required | integer The user's account ID. |
client required | string Client identifier. |
object Options for which grants are enabled. Note that password grants are always disabled for third-party clients. | |||||||
| |||||||
redirects | Array of strings URL that this client is allowed to redirect to. | ||||||
domains | Array of strings Domain this client is allowed to be accessed from. Note that the protocol should be included in this (ie. "https://"). |
data required | boolean Value: true True if successfully updated. |
{- "grants": {
- "implicit": true,
- "authorization_code": true,
- "refresh_token": true
}, - "redirects": [
- "string"
], - "domains": [
- "string"
]
}
{- "data": true
}
id required | integer The user's account ID. |
client required | string Client identifier. |
data required | boolean Value: true True if successfully deleted. |
{- "data": true
}
This identifies and returns the details of the client matching the given unique identifier string.
identifier required | string Client identifier. |
required | object | ||||||||||||||||||||
|
{- "data": {
- "identifier": "string",
- "name": "string",
- "redirects": [
- "string"
], - "domains": [
- "string"
], - "grants": {
- "password": "string",
- "authorization_code": true,
- "implicit": true,
- "refresh_token": true
}
}
}
Returns a list of the current active sessions for an API client.
id required | integer The user's account ID. |
client required | string Client identifier. |
required | Array of objects | ||||||||
Array
|
{- "data": [
- {
- "id": "string",
- "userid": 0,
- "date": 0,
- "expires": 0
}
]
}
id required | integer The user's account ID. |
client required | string Client identifier. |
session required | string Session identifier. |
data required | boolean True if session was successfully deleted. |
{- "data": true
}
id required | integer The user's account ID. |
date | string <datetime> Return any announcements newer than this date. Defaults to today. |
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "date": "string",
- "announcement": "string"
}
]
}
Provides confirmation tht the user has seen the identified announcement.
id required | integer The user's account ID. |
id required | integer This is the id of the announcement the user has seen. |
date required | string <datetime> Date announcement was seen. |
boolean True is returned. |
{- "date": "string"
}
{- "": true
}
id required | integer The user's account ID. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "freq": {
- "freq": 0,
- "sendat": "string"
}, - "alerts": [
- {
- "id": 0,
- "name": "string",
- "uid": "string",
- "types": [
- 0
], - "search": [
- {
- "id": 0,
- "type": "ALL",
- "match": true,
- "conditions": {
- "tags": [
- "string"
], - "cats": [
- 0
], - "profiles": [
- {
- "id": 0,
- "type": 0,
- "name": "string"
}
]
}
}
]
}
]
}
}
This will batch update/replace a user's alerts. The order of the array sent to the server will dictate the sort order of the user's Alerts. If an Alert is not sent to the server, it will be deleted.
id required | integer The user's account ID. |
Array of objects (Alert) The user's new Alerts, ordered. If this key is not sent, no Alerts will be changed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object If you want to change Alert frequency settings, send this key. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "alerts": [
- {
- "id": 0,
- "name": "string",
- "uid": "string",
- "types": [
- 0
], - "search": [
- {
- "id": 0,
- "type": "ALL",
- "match": true,
- "conditions": {
- "tags": [
- "string"
], - "cats": [
- 0
], - "profiles": [
- {
- "id": 0,
- "type": 0,
- "name": "string"
}
]
}
}
]
}
], - "freq": {
- "freq": 0,
- "sendat": "string"
}
}
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
id required | integer The user's account ID. |
id | integer ID of the Alert. | |||||||||||||||||||||||||||||||||
name | string Name of the Alert. | |||||||||||||||||||||||||||||||||
uid | string Unique identifier for the Alert. Use when building RSS feed URLs. | |||||||||||||||||||||||||||||||||
types required | Array of integers An array of news types to include in results. News types are:
| |||||||||||||||||||||||||||||||||
required | Array of objects An array of condition groups to filter news by. | |||||||||||||||||||||||||||||||||
Array
|
required | object | ||||
|
{- "id": 0,
- "name": "string",
- "uid": "string",
- "types": [
- 0
], - "search": [
- {
- "id": 0,
- "type": "ALL",
- "match": true,
- "conditions": {
- "tags": [
- "string"
], - "cats": [
- 0
], - "profiles": [
- {
- "id": 0,
- "type": 0,
- "name": "string"
}
]
}
}
]
}
{- "data": {
- "id": 0,
- "uid": "string"
}
}
This will return a list of articles that match the specified alert, in reverse-chronological order.
id required | integer The user's account ID. |
alertid required | integer The user's Alert ID. |
num | integer Maximum number of results to return. |
page | integer Zero-based result page index. |
from | integer Don't show alerts older than this (UNIX) time. |
nolimit | integer Value: 1 By default, searches are restricted to stories from within the past 3 months, in order to keep response times fast. If you want to go back further, send this parameter. |
linked | boolean If true, this causes all names that match to CAPA profiles to be changed to HTML links to those profiles. |
required | Array of objects (AlertResult) | ||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "title": "string",
- "article": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "image": "string",
- "timestamp": "string",
- "url": "string",
- "tags": [
- "string"
]
}
]
}
This changes the search parameters of an Alert.
id required | integer The user's account ID. |
alertid required | integer The user's Alert ID. |
id | integer ID of the Alert. | |||||||||||||||||||||||||||||||||
name | string Name of the Alert. | |||||||||||||||||||||||||||||||||
uid | string Unique identifier for the Alert. Use when building RSS feed URLs. | |||||||||||||||||||||||||||||||||
types required | Array of integers An array of news types to include in results. News types are:
| |||||||||||||||||||||||||||||||||
required | Array of objects An array of condition groups to filter news by. | |||||||||||||||||||||||||||||||||
Array
|
data required | boolean |
{- "id": 0,
- "name": "string",
- "uid": "string",
- "types": [
- 0
], - "search": [
- {
- "id": 0,
- "type": "ALL",
- "match": true,
- "conditions": {
- "tags": [
- "string"
], - "cats": [
- 0
], - "profiles": [
- {
- "id": 0,
- "type": 0,
- "name": "string"
}
]
}
}
]
}
{- "data": true
}
This will batch copy the selected alerts from a user's account to all of the selected subaccounts. Note: this requires that the user account has associated subaccounts.
id required | integer The user's account ID. |
userids required | Array of integers An array that contains the ID(s) of one or more subaccounts to copy the selected alerts to. It must contain at least one account ID and each ID must be of an subaccount to the user account. |
alertids required | Array of integers An array that contains the ID(s) of one or more alerts to copy to the selected accounts. It must contain at least one alert ID. |
type required | string Enum: "add" "replace" This property defines how the function interacts with existing alerts in the selected accounts. The available options are 'add' and 'replace'. add: This adds the alerts to the selected accounts. If an account already has an alert with the same name as one of the ones being duplicated, the duplicate is not copied to that account. replace: Any existing alerts for the selected accounts are deleted before copying the new alerts over. |
data required | boolean True is returned. |
{- "userids": [
- 0
], - "alertids": [
- 0
], - "type": "add"
}
{- "data": true
}
If you need an idea of the kind of results that will be returned when building an Alert, that can be done here.
id | integer ID of the Alert. | |||||||||||||||||||||||||||||||||
name | string Name of the Alert. | |||||||||||||||||||||||||||||||||
uid | string Unique identifier for the Alert. Use when building RSS feed URLs. | |||||||||||||||||||||||||||||||||
types required | Array of integers An array of news types to include in results. News types are:
| |||||||||||||||||||||||||||||||||
required | Array of objects An array of condition groups to filter news by. | |||||||||||||||||||||||||||||||||
Array
|
required | object (AlertResult) A single Alert result will contain an article and all the content for it. | ||||||||||||||||||||||
|
{- "id": 0,
- "name": "string",
- "uid": "string",
- "types": [
- 0
], - "search": [
- {
- "id": 0,
- "type": "ALL",
- "match": true,
- "conditions": {
- "tags": [
- "string"
], - "cats": [
- 0
], - "profiles": [
- {
- "id": 0,
- "type": 0,
- "name": "string"
}
]
}
}
]
}
{- "data": {
- "id": 0,
- "title": "string",
- "article": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "image": "string",
- "timestamp": "string",
- "url": "string",
- "tags": [
- "string"
]
}
}
This returns a list of destinations, grouped by the amount of flights going to them each week. It's a pretty ugly function with output that makes no sense, and will be rewritten eventually.
type required | integer Profile type ID. |
id required | integer Profile ID. |
rtype | string Enum: "domestic" "international" If this is set to |
ftype required | string Enum: "passenger" "cargo" Flight type. |
week | string <date> ISO8601 date of the week start. Must be a Monday. |
required | Array of objects | ||||||
Array
|
{- "data": [
- {
- "id": 0,
- "data": 0,
- "routes": "string"
}
]
}
Returns a list of tabs that are able to be displayed within a profile. This is used on the CAPA website to determine which tabs to display on profile pages.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "title": "string",
- "type": "string",
- "requires": [
- "string"
], - "group": true,
- "items": [
- "string"
], - "traffic": {
- "group": true
}, - "financial": {
- "items": [
- "string"
], - "group": true
}, - "fleet": true,
- "schedulesAnalysis": true,
- "cargoAnalysis": true,
- "people": true
}
]
}
This is used to figure out a profile ID based on profile URL components. Only really useful for the CAPA site itself.
shorturl required | string The shorturl string. Given a URL of |
type required | string The type string. Given a URL of |
required | object | ||||
|
{- "data": {
- "id": 0,
- "type": 0
}
}
term | string Profile name to search for. Any profiles containing this string will be returned. |
code | string Profile IATA/ICAO/country code. If this is supplied, "term" will be ignored and only profiles that exactly match the specified code will be returned. |
start | integer If this is sent, then the "term" search will only match profiles that start with the term string, instead of profiles that contain the term string. If this value is a "#" it will return all entries that start with a number. |
required | Array of objects (ProfileSearchResult) | ||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "rank": 0,
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": "string",
- "name": "string",
- "code": "string"
}
}
]
}
This returns basic profile details - a short description, IATA/ICAO codes, location, etc. There are a few fields common to all profiles, however the resulting object will vary greatly depending on the profile type.
IMPORTANT: Profile IDs do not change - they will remain the same throughout their lifetime. The exception is in the rare event of a merge, when duplicate profiles are combined together. This is an administrative thing unrelated to airline mergers and does not happen often.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "iata": "string",
- "icao": "string",
- "duplicate": true,
- "name": "string",
- "efrom": "2019-08-24",
- "eto": "2019-08-24",
- "current": true,
- "bizmodel": "string",
- "category": 0,
- "address": "string",
- "hub": {
- "id": 0,
- "type": "string",
- "name": "string",
- "url": "string"
}, - "website": "string",
- "bio": "string",
- "currency": "USD",
- "financial_year_end": 0,
- "traffic_year_end": 0,
- "startup": true,
- "startupdate": "string",
- "failedstartup": true,
- "grounded": true,
- "country": {
- "id": 0,
- "code": "string",
- "name": "string",
- "url": "string",
- "schengen": true
}, - "region": {
- "id": "string",
- "name": "string",
- "code": "string"
}, - "carriesfreight": true,
- "hidetraffic": true,
- "hidetrafficmulti": [
- "string"
], - "hidefinancial": true,
- "hidefinancialmulti": [
- "string"
], - "hidetourismmulti": [
- "string"
], - "hasschedules": true,
- "group": {
- "id": 0,
- "type": 0,
- "name": "string",
- "majority": true,
- "financial_year_end": 0,
- "traffic_year_end": 0,
- "currency": "string",
- "showTrafficYTD": true,
- "hidetraffic": true,
- "hidefinancial": true,
- "url": "string"
}, - "alliance": {
- "id": 0,
- "type": 0,
- "joined": 0,
- "status": "string",
- "name": "string",
- "url": "string"
}, - "ownership": "string",
- "status": "string",
- "network": {
- "domestic": true,
- "international": "string"
}, - "image": "string",
- "tags": [
- "string"
], - "trafficsource": "string",
- "city": {
- "id": 0,
- "name": "string",
- "code": "string",
- "state": "string",
- "others": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
]
}, - "disabled": true,
- "ceased": true,
- "runways": [
- {
- "length": "string",
- "width": "string",
- "area": "string"
}
], - "classification": "primary",
- "code": "string",
- "location": {
- "latitude": 0,
- "longitude": 0
}, - "metaregion": {
- "id": 0,
- "name": "string"
}, - "fullname": "string",
- "subsidiaries": [
- {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "majority": "string",
- "url": "string"
}
], - "founded": 0,
- "sector": {
- "id": 0,
- "name": "string"
}, - "type": "string",
- "investment": 0,
- "owner": "string",
- "throughput": [
- 0
], - "facilitysize": "string",
- "cargovolume": "string",
- "terminal": {
- "width": 0,
- "length": 0,
- "area": 0
}, - "completion": "2019-08-24",
- "atcos": 0,
- "employees": 0,
- "accs": 0,
- "towers": 0,
- "members": "string",
- "url": "string",
- "parent": [
- {
- "id": 0,
- "type": 0,
- "name": "string",
- "url": "string",
- "iata": "string",
- "icao": "string",
- "financial_year_end": 0,
- "traffic_year_end": 0,
- "currency": "string"
}
], - "groundhandlers": [
- {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
], - "fuelsuppliers": [
- {
- "id": 0,
- "type": 0,
- "name": "string",
- "url": "string"
}
], - "supplies": {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "latitude": 0,
- "longitude": 0,
- "url": "string"
}, - "fuels": {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "latitude": 0,
- "longitude": 0,
- "url": "string"
}
}
}
This returns a list of aircraft due for delivery for a profile.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "model": {
- "id": 0,
- "name": "string",
- "freighter": true
}, - "deliveries": [
- {
- "airline": {
- "id": 0,
- "type": 0,
- "name": "string"
}, - "years": [
- {
- "year": 0,
- "order": {
- "aircraft": 0,
- "seats": 0,
- "cargo": 0
}, - "option": {
- "aircraft": 0,
- "seats": 0,
- "cargo": 0
}
}
]
}
]
}
]
}
This returns a summary of the aircraft in use by a profile for the current week.
type required | integer Profile type ID. |
id required | integer Profile ID. |
date | string <date> ISO8601 date that the aircraft have to be active on to be included in the list. If blank, it defaults to the current date. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "size": {
- "id": 0,
- "name": "string"
}, - "hasSeats": true,
- "manufacturer": {
- "id": 0,
- "name": "string"
}, - "model": {
- "id": 0,
- "name": "string"
}, - "variant": {
- "id": 0,
- "name": "string"
}, - "config": {
- "id": 0
}, - "service": {
- "aircraft": 0,
- "seats": 0,
- "payload": 0,
- "ages": [
- 0
], - "owned": {
- "aircraft": 0,
- "seats": 0,
- "payload": 0,
- "ages": [
- 0
]
}, - "leased": {
- "aircraft": 0,
- "seats": 0,
- "payload": 0,
- "ages": [
- 0
]
}
}, - "order": {
- "aircraft": 0,
- "dates": true,
- "seats": 0,
- "payload": 0,
- "owned": {
- "aircraft": 0,
- "seats": 0,
- "payload": 0
}, - "leased": {
- "aircraft": 0,
- "seats": 0,
- "payload": 0
}
}, - "storage": {
- "aircraft": 0,
- "seats": 0,
- "payload": 0,
- "ages": [
- 0
], - "owned": {
- "aircraft": 0,
- "seats": 0,
- "payload": 0,
- "ages": [
- 0
]
}, - "leased": {
- "aircraft": 0,
- "seats": 0,
- "payload": 0,
- "ages": [
- 0
]
}
}, - "age": 0
}
]
}
This returns a list of basic information for an aircraft for a profile.
type required | integer Profile type ID. |
id required | integer Profile ID. |
date | string <date> ISO8601 date that the aircraft have to be active on to be included in the list. If blank, it defaults to the current date. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "models": [
- {
- "size": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "variants": [
- {
- "id": 0,
- "name": "string",
- "config": {
- "id": 0
}, - "aircraft": [
- {
- "id": 0,
- "tail": "string",
- "serial": "string",
- "delivery": {
- "date": null,
- "year": null,
- "month": null
}, - "manufactured": {
- "date": null,
- "year": null,
- "month": null,
- "day": null
}, - "engine": {
- "name": null,
- "manufacturer": null
}, - "event": {
- "id": null,
- "name": null
}, - "status": {
- "id": null
}, - "seats": {
- "fclass": null,
- "bclass": null,
- "peclass": null,
- "eclass": null
}, - "payload": 0,
- "lessor": {
- "id": null,
- "name": null,
- "airline": null,
- "url": null,
- "iata": null,
- "icao": null
}, - "sublessor": {
- "id": null,
- "airline": null
}, - "olessor": {
- "id": null,
- "name": null,
- "url": null,
- "hidden": null,
- "country": { }
}, - "avweek": {
- "id": null,
- "name": null,
- "country": { }
}, - "airline": {
- "id": null,
- "name": null,
- "iata": null,
- "icao": null,
- "url": null,
- "hidden": null,
- "country": { }
}
}
], - "valuation": {
- "year": 0,
- "month": 0,
- "market": 0,
- "base": 0,
- "lease": 0
}
}
]
}
]
}
]
}
Returns a list of possible departures for a given week.
type required | integer Profile type ID. |
id required | integer Profile ID. |
week | string <date> ISO8601 date string representing the first day of the week. Note that weeks are treated as starting on a Monday. Defaults to the current week. |
required | Array of objects | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string"
}
]
}
Returns a list of possible destinations for a given week.
type required | integer Profile type ID. |
id required | integer Profile ID. |
week | string <date> ISO8601 date string representing the first day of the week. Note that weeks are treated as starting on a Monday. Defaults to the current week. |
required | Array of objects | ||||||||
Array
| |||||||||
object | |||||||||
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string"
}
], - "meta": {
- "max": 0
}
}
Returns a list of possible destinations for a given week.
type required | integer Profile type ID. |
id required | integer Profile ID. |
dep | integer ID of a departure airport to filter the resulting destinations by |
week | string <date> ISO8601 date string representing the first day of the week. Note that weeks are treated as starting on a Monday. Defaults to the current week. |
required | Array of objects | ||||||||
Array
| |||||||||
object | |||||||||
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string"
}
], - "meta": {
- "max": 0
}
}
This will return a list of aircraft that are operating on schedules.
type required | integer Profile type ID. |
id required | integer Profile ID. |
airport | integer If you're looking up schedules for an airline or country, add an airport ID to filter for aircraft that only operate on routes departing/arriving at that airport. |
week | string <date> ISO8601 date specifying the week that this applies to. Must be a Monday. If omitted, defaults to the current week. |
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string"
}
]
}
Look up schedules for airlines/airports. Schedules are provided by OAG and are subject to separate licensing agreements. Contact CAPA for more information.
At this point in time, schedules can be searched 2 weeks in the past up to 26 weeks in the future - accuracy lessens the further into the future you go. Beyond 23 weeks things get murky.
type required | integer Profile type ID. |
id required | integer Profile ID. |
dep | integer Filter results for a given departure airport ID. Only applies to airline schedules. |
arr | integer Filter results for a given arrival airport ID. Only applies to airline schedules. |
airline | integer Filter results by airline ID. Only applies to airport schedules. |
codeshare | integer Filter results to show only flights running the selected airline ID as a codeshare. |
airport | integer Filter results so schedules either depart or arrive from this airport ID. Only applies to airport schedules. |
week | string <date> ISO8601 string of the week to look up schedules for. The date sent needs to be a Monday. This will override the |
from | string <date> ISO8601 string of the date to look up schedules from. |
to | string <date> ISO8601 string of the date to look up schedules to. |
ftype | string Flight type. |
page | integer Zero-based page number of results to return. |
num | integer Number of results to return per page. If this is not sent, all results are returned (can be huge). |
sort | string Enum: "arriving" "dftime" "aftime" "atime" "dtime" Schedules sorting. Can be one of the following values:
|
stype | string Service type. |
atype | integer Aircraft ID to filter schedules by. These are different IDs to what are in the CAPA Fleet Database. Use IDs returned from --- |
peak | string Enum: "peak" "nonpeak" "arrpeak" "arrnonpeak" Filter by peak/offpeak schedules. Possible values:
If filtering by peak/offpeak, you need to send values through that define when peak/offpeak is - see below. |
mfrom | integer The hour that morning peak starts. |
mto | integer The hour that morning peak ends. Note that whatever value is given, 59 minutes past the hour is treated as the "end." So if you give a value of 8, then 8:59 is treated as the time that peak hour ends. |
afrom | integer The hour that afternoon peak starts. |
ato | integer The hour that afternoon peak ends. Note that whatever value is given, 59 minutes past the hour is treated as the "end." So if you give a value of 18, then 18:59 is treated as the time that peak hour ends. |
required | Array of objects (Schedule) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "flight": 0,
- "includedSchedule": true,
- "airline": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "alliance": {
- "id": 0,
- "name": "string"
}, - "wetlease": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
}, - "dep": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "terminal": "string",
- "time": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string"
}
}, - "arr": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "terminal": "string",
- "time": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string"
}
}, - "aircraft": {
- "id": 0,
- "type": "string",
- "name": "string"
}, - "effective": {
- "from": "2019-08-24",
- "to": "2019-08-24"
}, - "days": 0,
- "day": 0,
- "type": "string",
- "restrictions": "string",
- "seats": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0
}, - "times": {
- "air": 0,
- "ground": 0
}, - "length": {
- "route": 0,
- "flight": 0
}, - "payload": 0,
- "codeshares": [
- {
- "id": 0,
- "flight": 0,
- "airline": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
}
], - "stops": [
- { }
]
}
]
}
This will return a list of airlines currently serving a country, as well as any codeshare partners under those routes.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": "string",
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "codeshares": [
- {
- "id": 0,
- "type": 1,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
]
}
]
}
This will return a list of airlines with codeshare flights, grouped by the airline running the flight, the departing airport or the countries of either.
type | string Enum: "airline" "airlinecountry" "airport" "country" Identifies the profile type to group codeshares by
|
required | Array of objects | ||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": "string",
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "codeshares": [
- {
- "id": 0,
- "type": 1,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
]
}
]
}
This returns a list of all destinations that are being served by the specified airline/airport for the given week.
type required | integer Profile type ID. |
id required | integer Profile ID. |
week required | string <date> ISO8601 date of the week start. Must be a Monday. |
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "scheduled": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "regions": [
- {
- "id": "string",
- "name": "string",
- "url": "string",
- "countries": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "airports": [
- {
- "id": null,
- "name": null,
- "url": null,
- "iata": null,
- "icao": null,
- "types": [ ]
}
]
}
]
}
]
}
], - "codeshare": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "regions": [
- {
- "id": "string",
- "name": "string",
- "url": "string",
- "countries": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "airports": [
- {
- "id": null,
- "name": null,
- "url": null,
- "iata": null,
- "icao": null,
- "types": [ ]
}
]
}
]
}
]
}
]
}
}
This will return capacity data for a given profile.
type required | integer Profile type ID. |
id required | integer Profile ID. |
week required | string <date> ISO8601 date of a week to get capacity for. Date must be a Monday. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "capacity": [
- {
- "seats": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0,
- "total": 0,
- "asks": 0
}, - "freight": {
- "belly": 0,
- "cargo": 0,
- "total": 0,
- "aftks": 0
}, - "freq": {
- "dep": 0,
- "arr": 0
}, - "dep": 0,
- "arr": 0,
- "airline": 0
}
], - "airlines": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "bizmodel": {
- "id": 0,
- "name": "string"
}, - "alliance": {
- "id": 0,
- "name": "string"
}, - "country": {
- "id": 0
}
}
], - "airports": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "city": {
- "id": 0,
- "name": "string"
}, - "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "region": {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "metaregion": {
- "id": 0,
- "name": "string",
- "url": "string"
}
}
}
}
]
}
}
This will return basic cargo capacity values for the week given. Cargo payloads are estimated based on the size of an aircraft.
type required | integer Profile type ID. |
id required | integer Profile ID. |
week required | string <date> ISO8601 date of the week start. Must be a Monday. |
required | object Cargo capacity details. | ||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "international": {
- "passenger": {
- "aftks": 0,
- "payload": 0
}, - "freighter": {
- "aftks": 0,
- "payload": 0
}
}, - "domestic": {
- "passenger": {
- "aftks": 0,
- "payload": 0
}, - "freighter": {
- "aftks": 0,
- "payload": 0
}
}
}
}
This will return capacity values for an airport, grouped by the length (as in time, not distance) of the flight. The values returned are totals for the current week, beginning on Monday.
type required | integer Profile type ID. |
id required | integer Profile ID. |
week required | string <date> ISO8601 date of the week start. Must be a Monday. |
required | Array of objects | ||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "ftime": 0,
- "time": "string",
- "domestic": {
- "seats": 0,
- "asks": 0,
- "freq": 0
}, - "international": {
- "seats": 0,
- "asks": 0,
- "freq": 0
}
}
]
}
For airline and airport profiles, this will return a list of all valid routes for the current week. Note that this only counts routes flown by the airline itself, not codeshares.
type required | integer Profile type ID. |
id required | integer Profile ID. |
week required | string <date> ISO8601 date of the week start. Must be a Monday. If not set, it defaults to the Monday of the current week. |
required | object Departure airport. | ||||||||||||||||
| |||||||||||||||||
required | object Arrival airport. | ||||||||||||||||
| |||||||||||||||||
required | Array of objects Aircraft types. | ||||||||||||||||
Array
| |||||||||||||||||
airlineid required | integer Airline ID. |
[- {
- "dep": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "url": "string",
- "location": {
- "latitude": 0,
- "longitude": 0
}
}, - "arr": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "url": "string",
- "location": {
- "latitude": 0,
- "longitude": 0
}
}, - "types": [
- {
- "id": 0,
- "type": "string"
}
], - "airlineid": 0
}
]
This will return a list of contact data for the specified profile.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "position": "string",
- "updated": 0
}
]
}
This returns a list of the number of departures/arrivals per hour an airport for a given day.
type required | integer Profile type ID. |
id required | integer Profile ID. |
date | string <date> ISO8601 date specifying a day that you want slots for. Defaults to the Monday at the start of the current week. |
airport required | integer An airport ID that you want to receive slots for. |
required | Array of objects | ||||||
Array
|
{- "data": [
- {
- "hour": 23,
- "dep": 0,
- "arr": 0
}
]
}
This will return capacity data for a given profile.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "week": "2019-08-24",
- "international": {
- "seats": 0,
- "asks": 0,
- "payload": 0,
- "aftks": 0,
- "depfreq": 0,
- "arrfreq": 0
}, - "domestic": {
- "seats": 0,
- "asks": 0,
- "payload": 0,
- "aftks": 0,
- "depfreq": 0,
- "arrfreq": 0
}
}
]
}
Returns a list of an airline's codeshare partners (for the current week). Note that the output for this will change soon.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||
Array
| |||||||
required | object | ||||||
|
{- "data": [
- {
- "name": "string",
- "code": "string",
- "url": "string"
}
], - "meta": {
- "max": 0
}
}
Get ranking values for a profile for the current week.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "system": {
- "seats": 0,
- "asks": 0,
- "freight": 0,
- "aftks": 0,
- "frequency": 0,
- "total": 0,
- "values": {
- "seats": 0,
- "asks": 0,
- "freight": 0,
- "aftks": 0,
- "frequency": 0
}
}, - "domestic": {
- "seats": 0,
- "asks": 0,
- "freight": 0,
- "aftks": 0,
- "frequency": 0,
- "total": 0,
- "values": {
- "seats": 0,
- "asks": 0,
- "freight": 0,
- "aftks": 0,
- "frequency": 0
}
}, - "international": {
- "seats": 0,
- "asks": 0,
- "freight": 0,
- "aftks": 0,
- "frequency": 0,
- "total": 0,
- "values": {
- "seats": 0,
- "asks": 0,
- "freight": 0,
- "aftks": 0,
- "frequency": 0
}
}
}
}
Returns seat and cargo capacity values for a given week and 12 weeks in the future.
type required | integer Profile type ID. |
id required | integer Profile ID. |
week required | string <date> ISO8601 date of the week start. Must be a Monday. |
required | Array of objects | ||||||
Array
|
{- "data": [
- {
- "week": 0,
- "seats": 0,
- "cargo": 0
}
]
}
This will return a list of airlines serving an airport/country directly and via codeshare.
type required | integer Profile type ID. |
id required | integer Profile ID. |
airport | integer Filters the results to airlines that arrive to/depart from the airport ID. |
required | object | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||
|
{- "data": {
- "direct": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
], - "codeshare": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
]
}, - "meta": {
- "max": {
- "direct": 0,
- "codeshare": 0
}
}
}
This will return a list of airlines that are based within a country/region (for the current week).
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||||||
Array
|
{- "data": [
- {
- "id": "string",
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
]
}
Get basic ownership data for an airport.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||||||
Array
|
{- "data": [
- {
- "owner": "string",
- "percentage": 100,
- "efrom": "2019-08-24",
- "eto": "2019-08-24",
- "comment": "string"
}
]
}
This returns a list of all current customers for a lessor.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||||||||||
Array
| |||||||||||||||
object | |||||||||||||||
|
{- "data": [
- {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "hidden": true
}
], - "meta": {
- "max": 0
}
}
The "market share" resource counts the number of flights going to/from a country (on country profiles) for the current week.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects A list of countries that have services to/from the given country (aka. "paired countries"). | ||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "data": {
- "local": 0,
- "paired": 0,
- "other": 0
}
}
]
}
Return details of alliance members.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "current": {
- "members": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "year": 0,
- "url": "string"
}
], - "affliates": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "year": 0,
- "url": "string"
}
]
}, - "pending": {
- "members": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "year": 0,
- "url": "string"
}
], - "affiliates": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "year": 0,
- "url": "string"
}
]
}, - "former": [
- {
- "name": "string",
- "joined": 0,
- "exited": 0,
- "reason": "string"
}
]
}
}
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string"
}
]
}
This will return some HTML strings detailing investments that an investor has.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | object | ||||||
|
{- "data": {
- "current": "string",
- "previous": "string",
- "future": "string"
}
}
This will return an array detailing the various airports that the company is invested in.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects Airports the investor has an interest in. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "countries": {
- "code": "string",
- "id": 0,
- "name": "string",
- "region": {
- "id": 0,
- "name": "string",
- "metaregion": {
- "id": 0,
- "name": "string",
- "url": "string"
}, - "url": "string"
}, - "url": "string"
}, - "id": 0,
- "type": 0,
- "iata": "string",
- "icao": "string",
- "name": "string",
- "url": "string",
- "location": {
- "latitude": 0,
- "longitude": 0
}
}
]
}
This will return some HTML strings detailing an investor's financial results.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | object | ||||
|
{- "data": {
- "results": "string",
- "comment": "string"
}
}
This will list all variants of an aircraft model and the airlines that operate them.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "variants": [
- {
- "id": 0,
- "name": "string",
- "manufacturer": "string",
- "variants": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "config": {
- "id": "string",
- "name": "string"
}, - "winglets": true,
- "engines": "string",
- "maxpax": "string",
- "maxcargo": "string",
- "mtow": "string",
- "mincrew": "string",
- "wingspan": "string",
- "wingarea": "string",
- "length": "string",
- "height": "string",
- "belly": "string",
- "maxseats": "string",
- "cdoorheight": "string",
- "cdoorwidth": "string",
- "deckvolume": "string",
- "maxfuel": "string",
- "payload": "string",
- "empty": "string",
- "landing": "string",
- "zfuel": "string",
- "range": "string",
- "introduced": "string",
- "aircraft": [
- {
- "id": 0,
- "status": 0,
- "manufactured": {
- "year": 0,
- "month": 0
}, - "updated": {
- "year": 0,
- "month": 0
}, - "market": 0,
- "base": 0,
- "lease": 0,
- "leased": true
}
], - "airlines": [
- {
- "id": 0,
- "country": 0,
- "statuses": [
- {
- "id": null,
- "name": null,
- "count": null
}
]
}
]
}
]
}
], - "airlines": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": 0
}
], - "regions": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "regions": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "countries": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string"
}
]
}
]
}
]
}
}
This will return the current fleet valuations for the given aircraft, airline, airline group or lessor profile.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects List of variant series. | ||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "manufacturer": "string",
- "variants": [
- {
- "id": 0,
- "name": "string",
- "aircraft": [
- {
- "id": 0,
- "status": 0,
- "manufactured": {
- "year": 0,
- "month": 0
}, - "updated": {
- "year": 0,
- "month": 0
}, - "market": 0,
- "base": 0,
- "lease": 0,
- "leased": true
}
]
}
]
}
]
}
This will return the predicted future fleet valuations for the given aircraft, airline, airline group or lessor profile.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects Dates of valuations. | ||||||||||||||||||||||
Array
| |||||||||||||||||||||||
required | object Date range of Valuations. | ||||||||||||||||||||||
|
{- "data": [
- {
- "date": 0,
- "year": 0,
- "month": 0,
- "data": [
- {
- "id": 0,
- "valuations": [
- {
- "year": 0,
- "bv": 0,
- "lr": 0
}
]
}
]
}
], - "meta": {
- "years": [
- {
- "year": 0,
- "months": [
- 0
]
}
]
}
}
This will return a list of documents related to a profile, like annual reports or investor presentations.
type required | integer Profile type ID. |
id required | integer Profile ID. |
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "file": "string",
- "timestamp": 0
}
]
}
This will return a list of both free and paid reports. Note that pulling down more detailed info on a paid report requires using its ID as a shop item ID and getting info from there.
num | integer Maximum number of results to return. |
page | integer Zero-based page index of results. |
required | Array of objects (Report) | ||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "shortdesc": "string",
- "description": "string",
- "price": 0,
- "currency": "USD",
- "type": 0,
- "image": "string",
- "url": "string",
- "filename": 0,
- "timestamp": 0
}
]
}
This gives back info on a free report. If you want to retrieve details for a paid report, you need to get it from the shop. Using a paid ID to retrieve data from here will result in a mismatch.
id required | integer Report ID. |
required | object (Report) | ||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "shortdesc": "string",
- "description": "string",
- "price": 0,
- "currency": "USD",
- "type": 0,
- "image": "string",
- "url": "string",
- "filename": 0,
- "timestamp": 0
}
}
This returns a free report. Paid reports cannot be downloaded in this way - they need to be downloaded as a shop item.
id required | integer Report ID. |
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
data required | Array of strings This will always be an empty array. | ||||
required | object | ||||
|
{- "data": [
- "string"
], - "meta": {
- "min": 2012,
- "max": 2015
}
}
year required | integer The year of CASK data requested. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "region": 0,
- "name": "string",
- "id": 0,
- "type": 0,
- "country": {
- "name": "string"
}, - "bizmodel": {
- "id": 0,
- "name": "string"
}, - "currency": "USD",
- "year": 0,
- "latest": 0,
- "seats": 0,
- "fyend": 0,
- "conversion": 0,
- "opcosts": 0,
- "pax": 0,
- "ask": 0,
- "rpk": 0,
- "asl": 0,
- "uscask": 0,
- "revenue": 0,
- "profit": 0,
- "notes": "string",
- "source": "string"
}
]
}
Get a list of possible airports flights are departing from for a given search term.
This requires either a search string or an IATA/ICAO code to search by.
code required | string Finds airports that equals the given IATA/ICAO code. |
search required | string Finds airports that contain the given string within their name, city, country or region. |
Array of objects (ProfileSearchResult) | |||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "rank": 0,
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": "string",
- "name": "string",
- "code": "string"
}
}
]
}
id | integer Departure profile ID. |
integer or string Departure profile type. This can be an airport, country, region, metaregion or city ID. For all types that are not a city, use their profile type ID. If it is a city, use "city" as the value here. | |
profiles | string Example: profiles=2-1343,2-2538 List of departure profiles. This is used when requiring the destinations for multiple possible departure points and is discarded if the type and id parameters are set. It must take the format of a string listing each profile as |
Array of objects (ProfileSearchResult) | |||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "rank": 0,
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": "string",
- "name": "string",
- "code": "string"
}
}
]
}
dep required | integer Route departure profile ID. This can be an airport, country, region, metaregion or city ID. |
required | integer or string The profile type of the departing ID. This can be an airport, country, region, metaregion or city ID. For all types that are not a city, use their profile type ID. If it is a city, use "city" as the value here. |
arr required | integer Route arrival profile ID. This can be an airport, country, region, metaregion or city ID or left as 0 for global data. |
required | integer or string The profile type of the arriving ID. This can be an airport, country, region, metaregion or city ID or left as 0 for global data. For all types that are not a city, use their profile type ID. If it is a city, use "city" as the value here. |
direction | string Enum: "oneway" "twoway" Indicates if the flights direction is one-way, only from departing profile to arrival profile, or if it is to be two-way in both directions. By default, it displays as one-way unles the value 'twoway' is passed in the query. |
from | integer The Unix timestamp that the capacity data starts from. It must be a Monday.. |
to | integer The Unix timestamp that the capacity data ends on. It must be a Monday.. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "alliance": {
- "id": 0,
- "name": "string"
}, - "bizmodel": {
- "id": 0,
- "name": "string"
}, - "country": {
- "id": 0,
- "name": "string"
}, - "weeks": [
- {
- "week": "2019-08-24",
- "freq": {
- "dep": 0,
- "arr": 0
}, - "freight": {
- "aftks": 0,
- "belly": 0,
- "cargo": 0,
- "total": 0
}, - "seats": {
- "asks": 0,
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0,
- "total": 0
}, - "departures": {
- "freq": {
- "dep": 0,
- "arr": 0
}, - "freight": {
- "aftks": 0,
- "belly": 0,
- "cargo": 0,
- "total": 0
}, - "seats": {
- "asks": 0,
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0,
- "total": 0
}, - "country": {
- "id": 0,
- "name": "string",
- "region": {
- "id": 0,
- "name": "string"
}
}
}, - "destinations": {
- "freq": {
- "dep": 0,
- "arr": 0
}, - "freight": {
- "aftks": 0,
- "belly": 0,
- "cargo": 0,
- "total": 0
}, - "seats": {
- "asks": 0,
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0,
- "total": 0
}, - "country": {
- "id": 0,
- "name": "string",
- "region": {
- "id": 0,
- "name": "string"
}
}
}
}
]
}
], - "meta": {
- "min": "2019-08-24",
- "max": "2019-08-24"
}
}
id required | integer Operator profile ID. This can be an airline, airline group or alliance ID. |
type required | integer The profile type of the Operator profile ID. This can be an airline, airline group or alliance ID using their profile type ID. |
from | string This identifies the first day of the first week that the capacity data is pulled from. If it is not used, the function will start with the earliest date in the capacity data. |
to | string This identifies the first day of the last week that the capacity data is pulled from. If it is not used, the function will end with the latest date in the capacity data. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "alliance": {
- "id": 0,
- "name": "string"
}, - "bizmodel": {
- "id": 0,
- "name": "string"
}, - "country": {
- "id": 0,
- "name": "string"
}, - "weeks": [
- {
- "week": "2019-08-24",
- "freq": {
- "dep": 0,
- "arr": 0
}, - "freight": {
- "aftks": 0,
- "belly": 0,
- "cargo": 0,
- "total": 0
}, - "seats": {
- "asks": 0,
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0,
- "total": 0
}, - "routes": {
- "freq": {
- "dep": 0,
- "arr": 0
}, - "freight": {
- "aftks": 0,
- "belly": 0,
- "cargo": 0,
- "total": 0
}, - "seats": {
- "asks": 0,
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0,
- "total": 0
}, - "departures": {
- "id": 0,
- "name": "string",
- "region": {
- "id": 0,
- "name": "string"
}
}, - "destinations": {
- "id": 0,
- "name": "string",
- "region": {
- "id": 0,
- "name": "string"
}
}
}
}
]
}
]
}
Get the maximum date range for recorded route changes.
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "from": "string",
- "to": "string"
}
]
}
Provides a list of airlines with capacity data for the given parameters.
country required | integer Country ID for the airline or departure airport depending on the value of the countrytype parameter. |
countrytype required | string If this is set to 'airline', the 'country' parameter counts as the ID of the country the airline(s) is based in. If it is set to 'route' the 'country' parameter counts as the ID of the country the departing airport(s) is located in. |
rangetype required | string If this is set to 'comp', the dates provided by the 'datestart' and 'dateend' parameters count as the two weeks the list of airlines is extracted from. If this is set to 'weekly', the weeks of the dates provided are used as the start and end dates and all airlines valid for the entire range are returned. |
datestart | string This identifies the first day of the first week that the airline data is pulled from, either as the start of a date range, or as a comparison with the week defined by the 'dateend' parameter, depending on the value of the 'rangetype' parameter. If it is not used, the function will use the current week as the default date. |
dateend | string This identifies the first day of the last week that the airline data is pulled from, either as the end of a date range, or as a comparison with the week defined by the 'datestart' parameter, depending on the value of the 'rangetype' parameter. If it is not used or the 'datestart' is not defined, the function will use the current week as the default date. |
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string"
}
]
}
Provides a list of airports with capacity data for the given parameters.
country required | integer Country ID for the airline or departure airport depending on the value of the countrytype parameter. |
countrytype required | string If this is set to 'airline', the 'country' parameter counts as the ID of the country the airline(s) is based in. If it is set to 'route' the 'country' parameter counts as the ID of the country the departing or arriving (depending on the 'airporttype' parameter) airport(s) is located in. |
airporttype required | string If this is set to 'dep' the listed airports are those flights depart from. If it is set to 'arr' the listed airports are those flights arrive to when leaving the airport defined by the 'depid' parameter. |
depid | integer Departure airport ID used for identifying airports with flights arriving from this airport. Used only if the 'airporttype' parameter is set to 'arr' |
rangetype required | string If this is set to 'comp', the dates provided by the 'datestart' and 'dateend' parameters count as the two weeks the list of airlines is extracted from. If this is set to 'weekly', the weeks of the dates provided are used as the start and end dates and all airlines valid for the entire range are returned. |
datestart | string This identifies the first day of the first week that the airline data is pulled from, either as the start of a date range, or as a comparison with the week defined by the 'dateend' parameter, depending on the value of the 'rangetype' parameter. If it is not used, the function will use the current week as the default date. |
dateend | string This identifies the first day of the last week that the airline data is pulled from, either as the end of a date range, or as a comparison with the week defined by the 'datestart' parameter, depending on the value of the 'rangetype' parameter. If it is not used or the 'datestart' is not defined, the function will use the current week as the default date. |
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string"
}
]
}
Provides a list of changes in route(s) for the given parameters, including started routes, ended routes and changed frequency of flights on route on a weekly basis.
countrytype required | string If this is set to 'airline', the 'country' parameter counts as the ID of the country the airline(s) is based in. If it is set to 'route' the 'country' parameter counts as the ID of the country the departing or arriving (depending on the 'airporttype' parameter) airport(s) is located in. |
rangetype required | string If this is set to 'comp', the returned data shows the route changes between the weeks starting with the selected 'datestart' and 'dateend' parameters. If this is set to 'weekly', the returned data lists all route changes for the entire range between and including the weeks starting with the selected 'datestart' and 'dateend' parameters. |
country required | integer Filters the output route changes by the country ID for the airline or departure airport depending on the value of the countrytype parameter. |
depid | integer Limits the route changes to those departing the selected airport ID. |
arrid | integer Limits the route changes to those arriving at the selected airport ID. |
airline | integer Limits the route changes to those to those flown by the selected airline ID. |
datestart | string This identifies the first day of the first week that the route changes data is pulled from, either as the start of a date range, or as a comparison with the week defined by the 'dateend' parameter, depending on the value of the 'rangetype' parameter. If it is not used, the function will use the current week as the default date. |
dateend | string This identifies the first day of the last week that the route changes data is pulled from, either as the end of a date range, or as a comparison with the week defined by the 'datestart' parameter, depending on the value of the 'rangetype' parameter. If it is not used or the 'datestart' is not defined, the function will use the current week as the default date. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "aircraft": [
- {
- "id": 0,
- "type": "string",
- "name": "string",
- "routes": [
- {
- "dep": {
- "id": 0,
- "name": "string",
- "url": "string",
- "iata": "string",
- "location": {
- "latitude": "string",
- "longitude": "string"
}
}, - "arr": {
- "id": 0,
- "name": "string",
- "url": "string",
- "iata": "string",
- "location": {
- "latitude": "string",
- "longitude": "string"
}
}, - "weeks": [
- {
- "week": "string",
- "hasFlight": "string",
- "change": "string",
- "frequency": {
- "old": null,
- "new": null
}
}
]
}
]
}
]
}
]
}
code | string Search by IATA/ICAO code for an airport. This overrides the contents of the "search" parameter. |
search | string Search for any airports containing this string in the name. |
required | Array of objects (ProfileSearchResult) | ||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "rank": 0,
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": "string",
- "name": "string",
- "code": "string"
}
}
]
}
code | string IATA/ICAO code of the airline. This overrides the "search" parameter. |
search | string Search for all airlines where the name contains this string. |
required | Array of objects (ProfileSearchResult) | ||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "rank": 0,
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": "string",
- "name": "string",
- "code": "string"
}
}
]
}
This function returns the changes in projected schedules on a week by week basis, showing how predictions change and update between weeks.
type required | integer ID of the selected profile's type: 1: Airline 2: Airport |
id required | integer ID of the selected profile |
airportDirection | string Enum: "dep" "arr" "all" Only applies if the 'type' parameter is set to 2. If set to 'dep' the function returns data for flights departing the selected profile. If set to 'arr' the function returns data for flights arriving at the selected profile. If set to 'all' the function returns data for flights departing or arriving to the selected profile. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "proccessed": "string",
- "weeks": [
- {
- "date": "string",
- "international": {
- "seats": 0,
- "asks": 0,
- "payload": 0,
- "aftks": 0,
- "depfreq": 0,
- "arrfreq": 0
}, - "domestic": {
- "seats": 0,
- "asks": 0,
- "payload": 0,
- "aftks": 0,
- "depfreq": 0,
- "arrfreq": 0
}
}
]
}
]
}
This function creates a list of all airlines which have predicted future capacity data, both for the current week and in data calculated in previous weeks.
required | Array of objects | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string"
}
]
}
This function creates a list of all airports which have predicted future capacity data, both for the current week and in data calculated in previous weeks.
required | Array of objects | ||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "airports": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string"
}
]
}
]
}
required | Array of objects An array of airports we have charges data for. | ||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "url": "string",
- "name": "string",
- "iata": "string",
- "icao": "string",
- "min": 0,
- "max": 0
}
]
}
Get a list of airports based off of a provided ID, IATA/ICAO code or search string.
Only one variable is used, with a priority of ID, code and finally search term.
id | integer Finds airport has the given ID. |
code | string Finds airports that equals the given IATA/ICAO code. |
search | string Finds airports that contain the given string within their name. |
required | Array of objects | ||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "min": "string",
- "max": "string"
}
]
}
required | Array of objects | ||||||
Array
| |||||||
required | object | ||||||
|
{- "data": [
- {
- "id": 0,
- "name": "string"
}
], - "meta": {
- "years": {
- "max": "string"
}
}
}
id required | integer Airport ID. |
year required | integer Year of charges you want returned. |
required | Array of objects | ||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "aircraft": [
- {
- "aircraft": "string",
- "value": 0
}
]
}
]
}
required | Array of objects Metaregion content. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "regions": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "countries": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "airports": [
- {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "city": {
- "id": null,
- "name": null
}, - "url": "string",
- "info": "string",
- "investment": 0,
- "completion": "2019-08-24",
- "established": "2019-08-24",
- "construction": true
}
]
}
]
}
]
}
]
}
This returns a summary of the US dollar spend on airport construction for each year we have data for. The data is split by new and existing airports, then for existing airports it is further split into runway, terminal, or other.
required | object | ||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "new": [
- {
- "year": 0,
- "total": 0
}
], - "existing": {
- "runway": [
- {
- "year": 0,
- "total": 0
}
], - "terminal": [
- {
- "year": 0,
- "total": 0
}
], - "other": [
- {
- "year": 0,
- "total": 0
}
]
}
}
}
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "code": "string",
- "regions": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "countries": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "code": "string",
- "airports": [
- {
- "id": 0,
- "classification": "string",
- "completion": "2019-08-24",
- "investment": {
- "total": null,
- "estimated": null
}, - "pax": {
- "current": { },
- "future": { }
}, - "freight": {
- "current": { },
- "future": { }
}, - "trialSample": true,
- "airport": {
- "id": null,
- "name": null,
- "iata": null,
- "icao": null,
- "url": null
}
}
], - "projects": [
- {
- "id": 0,
- "classification": "string",
- "completion": "2019-08-24",
- "investment": {
- "total": null,
- "estimated": null
}, - "pax": {
- "current": { },
- "future": { }
}, - "freight": {
- "current": { },
- "future": { }
}, - "trialSample": true,
- "airport": {
- "id": null,
- "name": null,
- "iata": null,
- "icao": null,
- "url": null
}
}
]
}
]
}
]
}
]
}
id required | integer The project ID. |
data required | string A HTML description of the construction project. |
{- "data": "string"
}
This will return a list of upcoming events, excluding CAPA Live events, in ascending chronological order.
ctc | boolean When set to '1', this parameter filters the output to only those Events associated with the Corporate Travel Community (i.e. CTC only events or Aviation events with CTC components). If it is not set, the function defaults to using showing all Events. |
required | Array of objects (Event) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "info": "string",
- "url": "string",
- "livestream": {
- "id": 0,
- "start": 0,
- "end": 0,
- "url": "string",
- "embed": "string"
}, - "city": {
- "id": "string",
- "name": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "AU",
- "region": {
- "id": 0,
- "name": "string"
}
}
}, - "date": {
- "start": "2017-04-23",
- "end": "2017-04-25",
- "certain": true
}, - "tech": true,
- "finance": true,
- "ctc": 0,
- "corporate": true,
- "airline": true,
- "airport": true,
- "attendees": 0,
- "australasia": true,
- "splash": "string"
}
]
}
name required | string User's name. |
company required | string User's company. |
position required | string User's position/job title. |
email required | string User's email address. |
phone required | string User's phone number. |
data required | string Value: "Successfully posted form." |
{- "name": "string",
- "company": "string",
- "position": "string",
- "email": "string",
- "phone": "string"
}
{- "data": "Successfully posted form."
}
This function provides a list of all upcoming CAPA Live events, as opposed to regular CAPA events.
required | Array of objects | ||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": "string",
- "type": "string",
- "title": "string",
- "htmlDescription": "string",
- "beginsAt": "string",
- "endsAt": "string",
- "categories": [
- "string"
], - "speakers": [
- {
- "speaker": "string",
- "speakerName": "string",
- "firstName": "string",
- "lastName": "string",
- "photoUrl": "string",
- "speakerImage": "string",
- "jobTitle": "string",
- "organization": "string",
- "speakerPosition": "string"
}
]
}
]
}
This function provides a list of completed CAPA events.
num | integer This indicates how many events are returned in the current request. If it is not set, the function defaults to 50 results. |
page | integer This indicates which 'page' or results is being requested, using the total per page defined in the 'num' parameter. It starts using '0' for the first page and increases numerically per page. If it is not set, the function defaults to using '0' for the first page of results. |
ctc | boolean When set to '1', this parameter filters the output to only those Events associated with the Corporate Travel Community (i.e. CTC only events or Aviation events with CTC components). If it is not set, the function defaults to using showing all Events. |
required | Array of objects (Event) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "info": "string",
- "url": "string",
- "livestream": {
- "id": 0,
- "start": 0,
- "end": 0,
- "url": "string",
- "embed": "string"
}, - "city": {
- "id": "string",
- "name": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "AU",
- "region": {
- "id": 0,
- "name": "string"
}
}
}, - "date": {
- "start": "2017-04-23",
- "end": "2017-04-25",
- "certain": true
}, - "tech": true,
- "finance": true,
- "ctc": 0,
- "corporate": true,
- "airline": true,
- "airport": true,
- "attendees": 0,
- "australasia": true,
- "splash": "string"
}
]
}
id required | integer This is the ID of the requested event. |
code | integer A content specific access code used to unlock a restricted access component of an event. |
access | integer An overall access code used to unlock an event that has restricted access. |
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "url": "string",
- "australasia": true,
- "attendees": "string",
- "airline": 0,
- "tech": "string",
- "airport": "string",
- "corporate": "string",
- "finance": "string",
- "splash": "string",
- "review": {
- "id": 0,
- "url": "string",
- "tabs": [
- {
- "name": "string",
- "content": "string",
- "code": 0,
- "images": [
- "string"
]
}
], - "videos": [
- {
- "id": 0,
- "name": "string",
- "vimeoid": 0,
- "embed": "string",
- "description": 0,
- "premium": true,
- "url": 0,
- "date": 0,
- "certain": true,
- "event": {
- "id": 0,
- "name": "string",
- "url": "string",
- "date": {
- "start": "string",
- "end": "string",
- "certain": true
}
}, - "tags": [
- "string"
]
}
]
}, - "locationtbc": true,
- "city": {
- "id": 0,
- "name": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "region": {
- "id": 0,
- "name": "string"
}
}
}, - "date": {
- "start": "string",
- "end": "string",
- "certain": true
}, - "subevents": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "date": {
- "start": "string",
- "end": "string",
- "certain": true
}
}
]
}
}
This function creates a CSV from the provided data.
filename required | string The name of the file to be created. |
data | Array of strings[ items ] This is a two-level array that contains the data to be converted to an CSV file. The first level of the array lists the rows, and each value of the array must be a sub-array. Each sub-array contains the values of the individual cells of that array as strings. |
{- "filename": "string",
- "data": [
- [
- "string"
]
]
}
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
This function converts SVG data into a binary image.
filename required | string The name of the file to be created. |
type | string The type of file to be created. May be set to 'image/svg+xml' or 'image/png'. |
svg | string The content of the image, structured as an SVG map. |
width | integer The width of the image, measured in pixels. If not set, it defaults to 1024 |
{- "filename": "string",
- "type": "string",
- "svg": "string",
- "width": 0
}
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
This function creates a PDF file that contains the selected content of a chosen CAPA profile.
type | integer The profile type ID to be exported. |
id | integer The profile ID to be exported. |
charts | object The SVG content of the graphs to be converted into images. |
tables | object The HTML formatted tables to be added to the file. |
about | boolean If set to true, the profile's About information text is included in the export. |
news | boolean If set to true, the export includes the most recent news articles associated with the profile. |
newscount | integer This defines how many news articles are added to the export if the 'news' value is set to true. If not set, it defaults to 20. |
contacts | boolean If set to true, the export includes the contact details associated with the profile. |
return | boolean If set to true, the export is downloaded directly to the user, otherwise the generated file is emailed to the address provided by the 'email' parameter. |
string This contains the email that the file is sent to if the 'return' value is set to false. |
{- "type": 0,
- "id": 0,
- "charts": { },
- "tables": { },
- "about": true,
- "news": true,
- "newscount": 0,
- "contacts": true,
- "return": true,
- "email": "string"
}
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
required | Array of objects (ProfileSearchResult) | ||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "rank": 0,
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": "string",
- "name": "string",
- "code": "string"
}
}
]
}
This will return a financial calendar in HTML format. At the moment there's no way to retrieve this data in a more useful format.
data required | string HTML string of an upcoming financials calendar. |
{- "data": "string"
}
This function will take a provided currency and provide the conversion rate to convert it to a different currency for a given date range.
currencyFrom required | string[A-Z]{3} This is the three-letter code for the current currency. |
currencyTo required | string[A-Z]{3} This is the three-letter code for the currency to be converted to. |
from | integer The UNIX timesetamp of the start of the required date range for the conversion rate. If not set, this defaults to the current date |
to | integer The UNIX timesetamp of the end of the required date range for the conversion rate. If not set, this defaults to the current date |
data required | integer This is the conversion rate used to convert the 'currencyFrom' currency to the 'currencyTo' currency. |
{- "data": 0
}
This will return a list of the currencies that CAPA tracks for conversion rates.
required | Array of objects List of currencies. | ||||
Array
|
{- "data": [
- {
- "code": "string",
- "name": "string"
}
]
}
type required | integer Profile type ID. |
id required | integer Profile ID. |
range required | string Enum: "annual" "quarterly" The reporting type of financial data to return. This can be one of two values - |
required | Array of objects (FinancialFieldResult) | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "years": [
- 0
], - "children": [
- { }
]
}
]
}
type required | integer Profile type ID. |
id required | integer Profile ID. |
range required | string Value: "annual" The reporting type of sustainability data to return. This is currently only |
required | Array of objects (FinancialFieldResult) | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "years": [
- 0
], - "children": [
- { }
]
}
]
}
type required | integer Profile type ID. |
id required | integer Profile ID. |
range required | string Enum: "annual" "quarterly" The reporting type of financial data to return. This can be one of two values - |
field required | integer A field ID, if you're only interested in a single field. |
from | integer Year to get financial from. |
to | integer Year to get financial data to. |
required | object (FinancialResult) | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "isPercent": "string",
- "showGrowth": "string",
- "values": [
- {
- "year": "string",
- "periods": [
- {
- "period": 0,
- "note": "string",
- "grouping": "string",
- "local": 0,
- "usd": 0
}
], - "children": [
- { }
]
}
]
}, - "meta": {
- "source": "string",
- "note": [
- "string"
]
}
}
Returns a list of financial report IDs and profiles that have a new/updated report and the date it was updated.
since | integer Default: 1 Most recent number of days to search for. |
required | object (ReportUpdated) | ||||||||||||
|
{- "data": {
- "id": 0,
- "updated": 0,
- "profile": {
- "id": 0,
- "type": 0
}
}
}
type | string This is used to define if the data is to be returned with a different format to standard. The available paths are:
|
sort | string Column ID to sort results on. |
order | string Enum: "asc" "desc" Order to sort results in. |
group | string List the filters to group by for timeseries or aggregate reports. It takes the form of a string containing the filter ID words, separated by commas, e.g. 'airline,variant'. |
ignoreStatus | boolean This variable is only used when |
airlinegroup | Array of integers (IntArray) List of airline/operator group IDs to return results for. This will only return records that have an operator assigned to them. |
airline | Array of integers (IntArray) List of CAPA airline/operator IDs to return results for. These are equivalent to CAPA Profile IDs. This will only return records that have an operator assigned to them. |
awoperator | Array of integers (IntArray) List of Aviation Week operator IDs to return results for. These are not the same as CAPA Profile IDs. |
awclassification | Array of strings (StringArray) List of Aviation Week operator classification codes to return results for. |
country | Array of integers (IntArray) List of country IDs to return results for. This will only return records that have an operator assigned to them. |
region | Array of integers (IntArray) List of region IDs to return results for. This will only return records that have an operator assigned to them. |
bizmodel | Array of integers (IntArray) List of business model IDs to return results for. This will only return records that have an operator assigned to them. |
alliance | Array of integers (IntArray) List of alliance IDs to return results for. This will only return records that have an operator assigned to them. |
drange | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a delivery date range to search for. The format of the request is |
mrange | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a manufactured date range to search for. The format of the request is |
mtow | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of maximum take-off weight (kg) to search for. |
igalley | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of the number of galleys an aircraft has. |
itoilet | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of the number of lavatories an aircraft has. |
ltype | Array of integers (IntArray) List of lease type IDs to search for - 1: Operating, 2: Financial. |
ocountry | Array of integers (IntArray) List of country IDs of aircraft owners to return results for. |
oclassification | Array of strings (StringArray) List of Aviation Week aircraft owner classification codes to return results for. |
subclassification | Array of strings (StringArray) List of Aviation Week sub-lessor classification codes to return results for. |
lclassification | Array of strings (StringArray) List of Aviation Week lease manager classification codes to return results for. |
bowner | Array of integers (IntArray) List of Aviation Week beneficiary IDs to return results for. These are not the same as CAPA Profile IDs. |
cowner | Array of integers (IntArray) List of Aviation Week consolidated owner IDs to return results for. These are not the same as CAPA Profile IDs. |
coclassification | Array of strings (StringArray) List of Aviation Week consolidated owner classification codes to return results for. |
rowner | Array of integers (IntArray) List of Aviation Week registered owner IDs to return results for. These are not the same as CAPA Profile IDs. |
roclassification | Array of strings (StringArray) List of Aviation Week registered owner classification codes to return results for. |
maircraft | boolean If set to 1, only aircraft which have been manufactured are returned. |
iwma | Array of integers (IntArray) List of Wireless IFE Manufacturer IDs to return results for. |
iwm | Array of integers (IntArray) List of Wireless IFE Model IDs to return results for. |
iwifedate | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This sets a range for checking by the last wireless IFE instilation date. The format of the request is |
iifema | Array of integers (IntArray) List of IFE Manufacturer IDs to return results for. |
iifem | Array of integers (IntArray) List of IFE Model IDs to return results for. |
iifedate | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This sets a range for checking by the last IFE instilation date. The format of the request is |
ipedsync | boolean If set to 1, only aircraft with IFE PED sync capabilities are returned. |
ilivetv | boolean If set to 1, only aircraft with live TV capabilities are returned. |
iifcp | Array of integers (IntArray) List of IFC Provider IDs to return results for. |
iifcs | Array of integers (IntArray) List of IFC Service IDs to return results for. |
iifcdate | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This sets a range for checking by the last IFC instilation date. The format of the request is |
iisp | Array of integers (IntArray) List of Internet Service Provider IDs to return results for. |
iism | Array of integers (IntArray) List of Internet Service Model IDs to return results for. |
igsm | Array of integers (IntArray) List of GSM IDs to return results for. |
iband | Array of integers (IntArray) List of IFC Band IDs to return results for. |
igsma | Array of integers (IntArray) List of Seat Manufacturer IDs to return results for. |
ifdoor | boolean If set to 1, only aircraft with First Class doors installed are returned. |
ifconfig | string^\d{1}-\d{1}$ This is a range of possible First Class seat configurations an aircraft has. |
ifsma | Array of integers (IntArray) List of First Class Seat Manufacturer IDs to return results for. |
ifsm | Array of integers (IntArray) List of First Class Seat Model IDs to return results for. |
ifsd | Array of integers (IntArray) List of First Class Seat Designer IDs to return results for. |
ifpitch | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible First Class seat pitch ranges an aircraft has. |
ifwidth | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible First Class seat width ranges an aircraft has. |
ifrlength | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible First Class seat recline length ranges an aircraft has. |
ifrecline | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible First Class seat recline degrees ranges an aircraft has. |
ifscreen | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible First Class seat screen sizes an aircraft has. |
ifdate | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This sets a range for checking by the First Class seat instilation date. The format of the request is |
iftoilet | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of the number of First Class lavatories an aircraft has. |
ifbar | Array of integers (IntArray) List of First Class Bar Type IDs to return results for. |
ifinternet | Array of integers (IntArray) List of First Class Internet Type IDs to return results for. |
ifped | Array of integers (IntArray) List of First Class PED Support Device IDs to return results for. |
ibdoor | boolean If set to 1, only aircraft with Business Class doors installed are returned. |
ibconfig | string^\d{1}-\d{1}$ This is a range of possible Business Class seat configurations an aircraft has. |
ibsma | Array of integers (IntArray) List of Business Class Seat Manufacturer IDs to return results for. |
ibsm | Array of integers (IntArray) List of Business Class Seat Model IDs to return results for. |
ibsd | Array of integers (IntArray) List of Business Class Seat Designer IDs to return results for. |
ibpitch | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Business Class seat pitch ranges an aircraft has. |
ibwidth | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Business Class seat width ranges an aircraft has. |
ibrlength | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Business Class seat recline length ranges an aircraft has. |
ibrecline | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Business Class seat recline degrees ranges an aircraft has. |
ibscreen | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Business Class seat screen sizes an aircraft has. |
ibdate | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This sets a range for checking by the Business Class seat instilation date. The format of the request is |
ibtoilet | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of the number of Business Class lavatories an aircraft has. |
ibbar | Array of integers (IntArray) List of Business Class Bar Type IDs to return results for. |
ibinternet | Array of integers (IntArray) List of Business Class Internet Type IDs to return results for. |
ibped | Array of integers (IntArray) List of Business Class PED Support Device IDs to return results for. |
ipedoor | boolean If set to 1, only aircraft with Premium Economy Class doors installed are returned. |
ipeconfig | string^\d{1}-\d{1}$ This is a range of possible Premium Economy Class seat configurations an aircraft has. |
ipesma | Array of integers (IntArray) List of Premium Economy Class Seat Manufacturer IDs to return results for. |
ipesm | Array of integers (IntArray) List of Premium Economy Class Seat Model IDs to return results for. |
ipesd | Array of integers (IntArray) List of Premium Economy Class Seat Designer IDs to return results for. |
ipepitch | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Premium Economy Class seat pitch ranges an aircraft has. |
ipewidth | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Premium Economy Class seat width ranges an aircraft has. |
iperlength | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Premium Economy Class seat recline length ranges an aircraft has. |
iperecline | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Premium Economy Class seat recline degrees ranges an aircraft has. |
ipescreen | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Premium Economy Class seat screen sizes an aircraft has. |
ipedate | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This sets a range for checking by the Premium Economy Class seat instilation date. The format of the request is |
ipetoilet | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of the number of Premium Economy Class lavatories an aircraft has. |
ipebar | Array of integers (IntArray) List of Premium Economy Class Bar Type IDs to return results for. |
ipeinternet | Array of integers (IntArray) List of Premium Economy Class Internet Type IDs to return results for. |
ipeped | Array of integers (IntArray) List of Premium Economy Class PED Support Device IDs to return results for. |
iepdoor | boolean If set to 1, only aircraft with Economy Plus Class doors installed are returned. |
iepconfig | string^\d{1}-\d{1}$ This is a range of possible Economy Plus Class seat configurations an aircraft has. |
iepsma | Array of integers (IntArray) List of Economy Plus Class Seat Manufacturer IDs to return results for. |
iepsm | Array of integers (IntArray) List of Economy Plus Class Seat Model IDs to return results for. |
iepsd | Array of integers (IntArray) List of Economy Plus Class Seat Designer IDs to return results for. |
ieppitch | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Plus Class seat pitch ranges an aircraft has. |
iepwidth | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Plus Class seat width ranges an aircraft has. |
ieprlength | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Plus Class seat recline length ranges an aircraft has. |
ieprecline | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Plus Class seat recline degrees ranges an aircraft has. |
iepscreen | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Plus Class seat screen sizes an aircraft has. |
iepdate | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This sets a range for checking by the Economy Plus Class seat instilation date. The format of the request is |
ieptoilet | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of the number of Economy Plus Class lavatories an aircraft has. |
iepbar | Array of integers (IntArray) List of Economy Plus Class Bar Type IDs to return results for. |
iepinternet | Array of integers (IntArray) List of Economy Plus Class Internet Type IDs to return results for. |
iepped | Array of integers (IntArray) List of Economy Plus Class PED Support Device IDs to return results for. |
iedoor | boolean If set to 1, only aircraft with Economy Class doors installed are returned. |
ieconfig | string^\d{1}-\d{1}$ This is a range of possible Economy Class seat configurations an aircraft has. |
iesma | Array of integers (IntArray) List of Economy Class Seat Manufacturer IDs to return results for. |
iesm | Array of integers (IntArray) List of Economy Class Seat Model IDs to return results for. |
iesd | Array of integers (IntArray) List of Economy Class Seat Designer IDs to return results for. |
iepitch | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Class seat pitch ranges an aircraft has. |
iewidth | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Class seat width ranges an aircraft has. |
ierlength | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Class seat recline length ranges an aircraft has. |
ierecline | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Class seat recline degrees ranges an aircraft has. |
iescreen | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of possible Economy Class seat screen sizes an aircraft has. |
iedate | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This sets a range for checking by the Economy Class seat instilation date. The format of the request is |
ietoilet | string^\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}$ This is a range of the number of Economy Class lavatories an aircraft has. |
iebar | Array of integers (IntArray) List of Economy Class Bar Type IDs to return results for. |
ieinternet | Array of integers (IntArray) List of Economy Class Internet Type IDs to return results for. |
ieped | Array of integers (IntArray) List of Economy Class PED Support Device IDs to return results for. |
amanufacturer | Array of integers (IntArray) List of aircraft manufacturer IDs to search for. |
model | Array of integers (IntArray) List of aircraft model IDs to search for. |
series | Array of integers (IntArray) List of aircraft variant series IDs to search for. |
variant | Array of integers (IntArray) List of aircraft variant IDs to search for. |
type | Array of integers (IntArray) List of aircraft type IDs to search for. |
role | Array of integers (IntArray) List of aircraft role IDs to search for. |
parked | Array of integers (IntArray) List of airport IDs to search for, if looking for aircraft that are currently in storage. |
serial | Array of strings (StringArray) List of aircraft serial numbers to search for. |
tail | Array of strings (StringArray) List of aircraft tail numbers to search for. |
emanufacturer | Array of integers (IntArray) List of engine manufacturer IDs to search for. |
engine | Array of integers (IntArray) List of engine IDs to search for. |
emodel | Array of integers (IntArray) List of engine model IDs to search for. |
status | Array of integers (IntArray) List of record status IDs to search for. |
fstatus | Array of integers (IntArray) List of Aviation Week financial status IDs to search for. |
ostatus | Array of integers (IntArray) List of Aviation Week operating status IDs to search for. |
wetleased | integer Value: 1 True if we want to include aircraft that are subleased to an operator when doing a search by operator ID. |
myairlease | integer Value: 1 True if we only want to return records that we have myairlease data for. |
winglets | integer Value: 1 True if we only want aircraft that have winglets. |
relevant | integer Value: 1 When doing a date range search, set this to true to only return records that fall within the date range, for aircraft that have multiple records within the range. Otherwise all records from the date range start up until the present are returned for the aircraft. |
apumanufacturer | Array of integers (IntArray) List of APU manufacturer IDs to search for. |
apumodel | Array of integers (IntArray) List of APU model IDs to search for. |
apu | Array of integers (IntArray) List of APU IDs to search for. |
owned | integer Value: 1 True will only return aircraft that are owned by the operator. |
leased | integer Value: 1 True will only return aircraft that are leased by the operator. |
lessor | Array of strings (LessorArray) [^\d+-(0|1)$] List of CAPA lessor/owner IDs to search for. These are based on CAPA airline/lessor profiles. |
sublessor | Array of strings (LessorArray) [^\d+-(0|1)$] List of sublessor IDs to search for. |
lmanager | Array of strings (LessorArray) [^\d+-(0|1)$] List of aircraft manager IDs to search for. |
asat | string <date> Date to do point-in-time searches with. Overrides |
range | string Enum: "year" "last3" "decade" Date range to search. Overrides |
from | string <date> Date to search records from. |
to | string <date> Date to search records to. |
page | integer Zero-based page index of results. |
num | integer Number of results to return. |
required | Array of objects (FleetResult) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": [
- {
- "id": 0,
- "aircraft": {
- "id": 0,
- "subvariant": {
- "id": 0,
- "name": "string"
}, - "category": {
- "id": 0,
- "code": "string",
- "name": "string"
}, - "serial": "string",
- "tail": "string",
- "myairlease": true,
- "winglets": true,
- "installation": {
- "seats": {
- "fclass": "2019-08-24",
- "bclass": "2019-08-24",
- "peclass": "2019-08-24",
- "epclass": "2019-08-24",
- "eclass": "2019-08-24"
}, - "interiors": {
- "ife": "2019-08-24",
- "wife": "2019-08-24",
- "ifc": "2019-08-24"
}
}, - "variant": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "winglets": true,
- "mtow": 0,
- "engines": 0,
- "series": {
- "id": 0,
- "name": "string",
- "model": {
- "id": 0,
- "name": "string",
- "myairlease": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "manufacturer": {
- "id": 0,
- "name": "string"
}
}
}
}, - "seats": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0
}, - "mtow": 0,
- "engine": {
- "id": 0,
- "name": "string",
- "model": {
- "id": 0,
- "name": "string",
- "manufacturer": {
- "id": 0,
- "name": "string"
}
}
}, - "role": {
- "id": 0,
- "name": "string"
}, - "line": 0,
- "block": "string",
- "mro": {
- "year": 0,
- "month": 0,
- "hours": {
- "total": 0,
- "month": 0
}, - "cycles": {
- "total": 0,
- "month": 0
}
}, - "valuation": {
- "year": 0,
- "month": 0,
- "market": 0,
- "base": 0,
- "lease": 0
}, - "manufactured": {
- "year": 0,
- "month": 0
}, - "delivered": {
- "year": 0,
- "month": 0,
- "day": 0
}, - "apu": {
- "id": 0,
- "name": "string",
- "generic": true,
- "model": {
- "id": 0,
- "name": "string",
- "manufacturer": {
- "id": 0,
- "name": "string"
}
}
}
}, - "status": {
- "id": 0,
- "name": "string"
}, - "event": {
- "id": 0,
- "name": "string"
}, - "effective": {
- "from": "2019-08-24",
- "to": "2019-08-24"
}, - "note": "string",
- "multiple": "first",
- "operator": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "tcode": "string",
- "url": "string",
- "region": {
- "id": 0,
- "name": "string",
- "url": "string",
- "metaregion": {
- "id": 0,
- "name": "string",
- "url": "string"
}
}
}, - "alliance": {
- "id": 0,
- "name": "string",
- "url": "string"
}, - "bizmodel": {
- "id": 0,
- "name": "string"
}
}, - "owner": {
- "id": 0,
- "type": 1,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}, - "sublessor": {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}, - "manager": {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}, - "lease": {
- "from": "2019-08-24",
- "to": "2019-08-24",
- "type": 0,
- "name": "Operating"
}, - "storage": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}, - "avweek": {
- "ostatus": {
- "id": 0,
- "name": "string"
}, - "fstatus": {
- "id": 0,
- "name": "string"
}, - "operator": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "owner": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "registered": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "beneficiary": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string"
}, - "consolidated": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "sublessor": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}
}
}
], - "meta": {
- "count": 0,
- "total": 0,
- "page": 0
}
}
This runs a fleet search but returns the data as XLSX/CSV instead of JSON. NOTE: All request parameters are identical to what is listed under Search for fleet data, however the num
and page
parameters are ignored.
format required | string Enum: "excel" "csv" The format you want your data in. |
columns required | string This lists the columns to be used in the exported data as listed by the List the avalible export columns request. It takes the form of a string containing the column ID words, separated by commas, e.g. 'airline,variant'. |
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
This will return an array of columns and the ids that can be used when exporting fleet data with the Export fleet data request.
required | Array of objects An array of columns for fleet export. | ||||
Array
|
{- "data": [
- {
- "id": "string",
- "name": "string"
}
]
}
This will return an array of fleet results in reverse-chronological order detailing the history of the aircraft.
id required | integer Aircraft ID. |
required | Array of objects (FleetResult) An reverse-chronological array of fleet results, detailing the history of the aircraft. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "aircraft": {
- "id": 0,
- "subvariant": {
- "id": 0,
- "name": "string"
}, - "category": {
- "id": 0,
- "code": "string",
- "name": "string"
}, - "serial": "string",
- "tail": "string",
- "myairlease": true,
- "winglets": true,
- "installation": {
- "seats": {
- "fclass": "2019-08-24",
- "bclass": "2019-08-24",
- "peclass": "2019-08-24",
- "epclass": "2019-08-24",
- "eclass": "2019-08-24"
}, - "interiors": {
- "ife": "2019-08-24",
- "wife": "2019-08-24",
- "ifc": "2019-08-24"
}
}, - "variant": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "winglets": true,
- "mtow": 0,
- "engines": 0,
- "series": {
- "id": 0,
- "name": "string",
- "model": {
- "id": 0,
- "name": "string",
- "myairlease": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "manufacturer": {
- "id": 0,
- "name": "string"
}
}
}
}, - "seats": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0
}, - "mtow": 0,
- "engine": {
- "id": 0,
- "name": "string",
- "model": {
- "id": 0,
- "name": "string",
- "manufacturer": {
- "id": 0,
- "name": "string"
}
}
}, - "role": {
- "id": 0,
- "name": "string"
}, - "line": 0,
- "block": "string",
- "mro": {
- "year": 0,
- "month": 0,
- "hours": {
- "total": 0,
- "month": 0
}, - "cycles": {
- "total": 0,
- "month": 0
}
}, - "valuation": {
- "year": 0,
- "month": 0,
- "market": 0,
- "base": 0,
- "lease": 0
}, - "manufactured": {
- "year": 0,
- "month": 0
}, - "delivered": {
- "year": 0,
- "month": 0,
- "day": 0
}, - "apu": {
- "id": 0,
- "name": "string",
- "generic": true,
- "model": {
- "id": 0,
- "name": "string",
- "manufacturer": {
- "id": 0,
- "name": "string"
}
}
}
}, - "status": {
- "id": 0,
- "name": "string"
}, - "event": {
- "id": 0,
- "name": "string"
}, - "effective": {
- "from": "2019-08-24",
- "to": "2019-08-24"
}, - "note": "string",
- "multiple": "first",
- "operator": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "tcode": "string",
- "url": "string",
- "region": {
- "id": 0,
- "name": "string",
- "url": "string",
- "metaregion": {
- "id": 0,
- "name": "string",
- "url": "string"
}
}
}, - "alliance": {
- "id": 0,
- "name": "string",
- "url": "string"
}, - "bizmodel": {
- "id": 0,
- "name": "string"
}
}, - "owner": {
- "id": 0,
- "type": 1,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}, - "sublessor": {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}, - "manager": {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}, - "lease": {
- "from": "2019-08-24",
- "to": "2019-08-24",
- "type": 0,
- "name": "Operating"
}, - "storage": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}, - "avweek": {
- "ostatus": {
- "id": 0,
- "name": "string"
}, - "fstatus": {
- "id": 0,
- "name": "string"
}, - "operator": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "owner": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "registered": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "beneficiary": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string"
}, - "consolidated": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "sublessor": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "classification": {
- "code": "string",
- "name": "string"
}
}
}
}
]
}
Export history for an aircraft to CSV.
id required | integer Aircraft ID. |
format required | string Enum: "excel" "csv" Export format. |
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
This will return hours and cycles data (if available) for an aircraft, in chronological order.
id required | integer Aircraft ID. |
required | Array of objects | ||||||||||||
Array
|
{- "data": [
- {
- "year": 0,
- "months": [
- {
- "month": 0,
- "hours": 0,
- "cycles": 0
}
]
}
]
}
This will return a list of fleet totals (aircraft hulls & seats), organised by region, country, variant, type, configuration and status.
date | string <datetime> The Monday of the week the fleet data is to be pulled from. If not set, it defaults to the current day. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "regions": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "countries": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "airlines": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "profile": {
- "id": null,
- "name": null,
- "iata": null,
- "icao": null,
- "url": null
}, - "manufacturers": [
- { }
]
}
]
}
]
}
]
}
]
}
This returns any valuation data associated with an aircraft. Aircraft valuation data is provided by ICF Truebook and requires the Valuations Addon in order to be viewed.
id required | integer Aircraft ID. |
required | Array of objects An array of valuation data. Each entry corresponds to what the aircraft was worth at the time of valuation. So an entry for November 2014 would be what ICF considered that aircraft to be worth back then. | ||||||||||||||
Array
|
{- "data": [
- {
- "year": 0,
- "months": [
- {
- "month": 0,
- "lr": 0,
- "br": 0,
- "mr": 0
}
]
}
]
}
This returns any predicted future valuation data associated with an aircraft. Aircraft valuation data is provided by ICF Truebook and requires the Valuations Addon in order to be viewed.
id required | integer Aircraft ID. |
year | integer The year the future valuation data is to be pulled from. If not set this defaults to the maximum for the aircraft. |
month | integer The month the future valuation data is to be pulled from. If not set this defaults to the maximum for the aircraft. |
required | Array of objects An array of future valuation data. Each entry corresponds to what the aircraft is predicted to be worth at the requested time of valuation. | ||||||||
Array
| |||||||||
required | object | ||||||||
|
{- "data": [
- {
- "year": 0,
- "bv": 0,
- "lr": 0
}
], - "meta": {
- "max": {
- "year": 0,
- "month": 0
}
}
}
myairlease is a third-party website that tracks aircraft that are available for leasing. If an aircraft in the CAPA Fleet Database has a myairlease record associated with it, then data will be returned for this call.
id required | integer Aircraft ID. |
required | object myairlease data. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "engine": {
- "manufacturer": "string",
- "id": "string",
- "name": "string"
}, - "hours": 0,
- "cycles": 0,
- "olas": "OL/S",
- "ld": {
- "month": 0,
- "year": 0
}, - "ad": {
- "month": 0,
- "year": 0
}, - "seats": {
- "fclass": 0,
- "bclass": 0,
- "eclass": 0
}, - "link": "string",
- "lessor": {
- "id": "string",
- "name": "string",
- "url": "string"
}
}
}
This is used to get a list of possible options that can be used to filter fleet data in the Search for fleet data and Export fleet data requests.
type required | string The filter type. This can be set to:
|
page | integer Results page number (zero-based). |
search | string A search string to filter results by. |
code | string For airline searches, you can specify an IATA/ICAO code and it will search based on that. Sending a value for this causes the |
parent | integer For searches by variant or variant series, this parameter filters the result by the ID of the aircraft model or variant series respectively. This parameter is only used when the search parameter is not being used. |
inservice | integer Value: 1 If a value is sent for this and it's an airline search, then only airlines currently operating will be returned. |
required | Array of objects (FleetFilterResult) | ||||
Array
| |||||
required | object | ||||
|
{- "data": [
- {
- "id": 0,
- "name": "string"
}
], - "meta": {
- "total": 0,
- "perpage": 0
}
}
type required | string Filter type. |
id required | integer Filter ID. |
required | object (FleetFilterResult) | ||||
|
{- "data": {
- "id": 0,
- "name": "string"
}
}
required | Array of objects (FleetSavedSearch) | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "search": { },
- "columns": [
- "string"
]
}
]
}
name required | string Name of the saved search. |
search required | object Search parameters as an object. |
columns required | Array of strings Array of column IDs to display (currently ignored). |
type | string The type of sheet/tab. May be set to 'sheet', 'report', 'timeseries', 'graph', 'tsgraph' or 'aircraft'. |
uuid | string User ID. |
data required | integer Newly saved search ID. |
{- "name": "string",
- "search": { },
- "columns": [
- "string"
], - "type": "string",
- "uuid": "string"
}
{- "data": 0
}
id required | integer Fleet search ID. |
id required | integer Saved search ID. |
name required | string Saved search name. |
search required | object This will be an object of fleet search parameters. |
columns required | Array of strings An array of columns to display for the search. This is currently unused and subject to change. |
{- "id": 0,
- "name": "string",
- "search": { },
- "columns": [
- "string"
]
}
id required | integer Saved search ID. |
name required | string Name of saved search. |
search required | object Search parameters. |
columns required | Array of strings Column IDs to return. Currently ignored. |
type | string The type of sheet/tab. May be set to 'sheet', 'report', 'timeseries', 'graph', 'tsgraph' or 'aircraft'. |
uuid | string User ID. |
data required | boolean This will always be true. |
{- "name": "string",
- "search": { },
- "columns": [
- "string"
], - "type": "string",
- "uuid": "string"
}
{- "data": true
}
This returns a current global fleet summary as of today. Note that only results with a status of In Service, On Order, On Option or In Storage are returned. Cancelled etc statuses are omitted.
date | string <datetime> The Monday of the week the fleet data is to be pulled from. If not set, it defaults to the current day. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "regions": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "bizmodels": [
- {
- "id": 0,
- "name": "string",
- "configs": [
- {
- "id": 0,
- "name": "Passenger",
- "types": [
- { }
]
}
]
}
]
}
]
}
]
}
This returns a fleet summary of the past 6 years by year. Note that only results with a status of In Service, On Order, On Option or In Storage are returned. Cancelled etc statuses are omitted.
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "year": 0,
- "manufacturers": [
- {
- "id": 0,
- "name": "string",
- "regions": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "bizmodels": [
- {
- "id": 0,
- "name": "string",
- "configs": [
- { }
]
}
]
}
]
}
]
}
]
}
This returns the average age in days of aircraft that are currently in service, split by metaregion.
date | string <datetime> The Monday of the week the fleet data is to be pulled from. If not set, it defaults to the current day. |
required | Array of objects | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "avg": 0,
- "med": 0
}
]
}
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "aircraft": {
- "service": 0,
- "storage": 0,
- "order": 0,
- "option": 0
}, - "seats": {
- "service": 0,
- "storage": 0,
- "order": 0,
- "option": 0
}, - "managed": {
- "aircraft": {
- "service": 0,
- "storage": 0,
- "order": 0,
- "option": 0
}, - "seats": {
- "service": 0,
- "storage": 0,
- "order": 0,
- "option": 0
}
}
}
]
}
date | string <datetime> The Monday of the week the fleet data is to be pulled from. If not set, it defaults to the current day. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "regions": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "countries": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "airlines": [
- {
- "id": "string",
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "bizmodel": {
- "id": null,
- "name": null
}, - "configs": [
- { }
]
}
]
}
]
}
]
}
]
}
This returns a summary of aircraft deliveries, grouped by region and business model.
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "bizmodels": [
- {
- "id": 0,
- "name": "string",
- "configs": [
- {
- "id": 0,
- "name": "string",
- "types": [
- {
- "id": 0,
- "name": "string",
- "years": [
- { }
]
}
]
}
]
}
]
}
]
}
This returns a list of aircraft, aircraft locations and other associated data. Note: this is not available to third parties without prior arrangement.
since | integer The time range to pull data from, calculated as number of seconds in the past to the current moment. If not set, this defaults to 30. |
required | Array of objects (AircraftLocation) OK | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "adshex": "string",
- "lat": 0,
- "lon": 0,
- "mtime": 0,
- "altitude": 0,
- "speed": 0,
- "heading": 0,
- "vertRate": "string",
- "reg": "string",
- "callsign": "string",
- "flightNo": "string",
- "route": "string",
- "type": "string",
- "squawk": 0,
- "category": "string",
- "visFlag": true,
- "dep": 0,
- "arr": 0,
- "extendedAttributes": {
- "selectedAltitude": 0,
- "barometer": 0,
- "magneticHeading": 0,
- "rollAngle": 0,
- "groundSpeed": 0,
- "indicatedAirSpeed": 0,
- "trueAirSpeed": 0,
- "mach": 0,
- "trackAngle": 0,
- "targetHeading": 0,
- "windSpeed": 0,
- "windDirection": 0,
- "outsideAirTemperature": 0
}
}
]
}
This returns an aircraft's current location and other associated data. Note: this is not available to third parties.
id required | integer Aircraft ID. |
since | integer The time range to pull data from, calculated as number of seconds in the past to the current moment. If not set, this defaults to 30. |
required | object (AircraftLocation) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "adshex": "string",
- "lat": 0,
- "lon": 0,
- "mtime": 0,
- "altitude": 0,
- "speed": 0,
- "heading": 0,
- "vertRate": "string",
- "reg": "string",
- "callsign": "string",
- "flightNo": "string",
- "route": "string",
- "type": "string",
- "squawk": 0,
- "category": "string",
- "visFlag": true,
- "dep": 0,
- "arr": 0,
- "extendedAttributes": {
- "selectedAltitude": 0,
- "barometer": 0,
- "magneticHeading": 0,
- "rollAngle": 0,
- "groundSpeed": 0,
- "indicatedAirSpeed": 0,
- "trueAirSpeed": 0,
- "mach": 0,
- "trackAngle": 0,
- "targetHeading": 0,
- "windSpeed": 0,
- "windDirection": 0,
- "outsideAirTemperature": 0
}
}
}
This returns a route's seat and frequency data by aircraft variant for the current week, as well as the frequency data for a provided week in the past for comparison.
dep required | integer The ID of the selected departure CAPA profile. |
deptype required | integer The ID of the selected departure CAPA profile type. |
depprofiles | srring List of departure profiles. This is used when requiring the destinations for multiple possible departure points and is discarded if the deptype and dep parameters are set. It must take the format of a string listing each profiles as '[profile type ID]-[profile ID]' with each profile separated by ','. For example; '2-1343|2-2538'. |
arr required | integer The ID of the selected arrival CAPA profile. |
arrtype required | integer The ID of the selected arrival CAPA profile type. |
comparisionDate required | string <datetime> The Monday of the week the comparison frequency data is to be pulled from. |
ctype | string Enum: "system" "international" "domestic" Indicates if the routes should be International only, Domestic only or total. It defaults to total. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||
|
{- "data": [
- {
- "airline": {
- "name": "string",
- "code": "string",
- "url": "string"
}, - "aircraft": {
- "name": "string",
- "url": "string"
}, - "capacity": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0,
- "cargo": 0,
- "frequency": {
- "current": 0,
- "past": 0
}
}
}
], - "meta": {
- "min": "string"
}
}
This returns an aircraft's seat and frequency data by route for the current week, as well as the frequency data for a provided week in the past for comparison.
manufacturer required | integer The ID of the aircraft manufacturer. |
model required | integer The ID of the aircraft model. |
family required | integer The ID of the aircraft variant series. |
variant required | integer The ID of the aircraft variant. |
comparisionDate required | string <datetime> The Monday of the week the comparison frequency data is to be pulled from. |
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": [
- {
- "dep": {
- "name": "string",
- "code": "string",
- "url": "string"
}, - "arr": {
- "name": "string",
- "code": "string",
- "url": "string"
}, - "airline": {
- "name": "string",
- "code": "string",
- "url": "string"
}, - "capacity": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0,
- "cargo": 0,
- "frequency": {
- "current": 0,
- "past": 0
}
}, - "flightnumber": [
- {
- "": "string"
}
]
}
], - "meta": {
- "min": "string"
}
}
This returns saved settings for the Fleet interface.
required | Array of objects This is a list of the saved sheets/tabs. | ||||||||||||
Array
|
{- "data": [
- {
- "columns": [
- "string"
], - "exportColumns": [
- "string"
], - "name": "string",
- "search": { },
- "type": "string",
- "uuid": "string"
}
]
}
This saves the settings the user has chosen to the database, so that they will be preserved for the user to return to at a later date.
currentSheet required | string The ID of the currently selected sheet/tab on the Fleet Matrix page. | ||||||||||||
required | Array of objects A list of the sheets/tabs and their settings for the user. | ||||||||||||
Array
|
data required | boolean If the settings have been stored, the function returns a true response. |
{- "currentSheet": "string",
- "sheets": [
- {
- "columns": [
- "string"
], - "exportColumns": [
- "string"
], - "name": "string",
- "search": { },
- "type": "string",
- "uuid": "string"
}
]
}
{- "data": true
}
Returns a list of aircraft IDs and when they were last updated in the fleet database.
since | integer Default: 1 Most recent number of days to search for. |
required | Array of objects A list of IDs and when they were updated. | ||||
Array
|
{- "data": [
- {
- "id": 0,
- "updated": 0
}
]
}
type required | integer Value: 1 Profile type. This will always be 1 at the moment as Form 41 data is treated as airline-centric. |
id required | integer Profile ID. |
required | Array of objects | ||||||||||||
Array
|
{- "data": [
- {
- "id": "string",
- "name": "string",
- "children": [
- {
- "id": "string",
- "name": "string"
}
]
}
]
}
type required | integer Value: 1 Profile type ID. At the moment all Form 41 searches are airline-centric, so the profile ID is always going to be |
id required | integer Profile ID. |
field required | integer Form 41 field ID. |
from | integer The year to return data from. Defaults to the current year minus 4 years. |
to | integer The year to return data to. Defaults to the current year. |
region required | integer Form 41 region ID. |
required | Array of objects (Form41Result) | ||||||||||
Array
| |||||||||||
required | object | ||||||||||
|
{- "data": [
- {
- "year": 0,
- "values": [
- {
- "quarter": 0,
- "value": 0
}
]
}
], - "meta": {
- "years": {
- "min": 0,
- "max": 0
}
}
}
code | string Search for an airline with Form 41 data by IATA or ICAO code. This overrides anything in the |
search | string Search for an airline with Form 41 data by name. Either this or |
inservice | integer Value: 1 If this is set and is a non-zero value, then results returned will only be airlines that are currently considered to be operating. |
required | Array of objects | ||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string"
}
}
]
}
code | string Search for an airline by their IATA or ICAO code. |
search | string Search for an airline by their name. This parameter is discarded if the "code" parameter is set. |
required | Array of objects | ||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": 0,
- "code": "string",
- "name": "string"
}
}
]
}
id required | integer Search for an airline that matches the provided ID. |
code | string Search for an airline by their IATA or ICAO code. This parameter is discarded if the "id" parameter is set. |
search | string Search for an airline by their name. This parameter is discarded if the "id" or "code" parameter is set. |
required | Array of objects | ||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": 0,
- "code": "string",
- "name": "string"
}
}
]
}
id required | integer Airline ID. |
required | Array of objects A list of departing airports that we have data for (for this airline). | ||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string"
}
]
}
id required | integer Airline ID. |
dep required | integer Origin airport ID. |
required | Array of objects A list of destination airports that we have T100 data for. | ||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string"
}
]
}
id required | integer Airline ID. |
dep required | integer Origin airport ID. |
arr required | integer Destination airport ID. |
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "id": "string",
- "name": "string"
}
]
}
id required | integer Airline ID. |
dep required | integer Origin airport ID. |
arr required | integer Destination airport ID. |
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "id": "string",
- "name": "string"
}
]
}
id required | integer Airline ID. |
required | Array of objects A list of fields and their associated IDs. | ||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "loadfactor": true
}
]
}
id required | integer Airline ID. |
dep required | integer Origin airport ID. |
arr required | integer Destination airport ID. |
required | object | ||||
|
{- "data": {
- "id": 0,
- "name": "string"
}
}
id required | integer Airline profile ID. |
dep required | integer Departing airport ID. |
arr required | integer Arriving airport ID. |
field required | Array of integers (IntArray) Example: field=1 T100 field ID. Load factorsGetting load factor data has a bit of a quirk to it. If you wish to retrieve load factors, So if you do a call to /fields and it returns a list of fields, and two of those fields have |
aircraft | integer Aircraft ID. |
required | Array of objects (T100Result) Returns an unsorted list of T100 results. | ||||||||||||
Array
|
{- "data": [
- {
- "year": 0,
- "month": 0,
- "value": 0,
- "pax": 0,
- "seats": 0,
- "percent": true
}
]
}
required | Array of objects (AirportInvestorResult) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "type": 2,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "region": {
- "id": 0,
- "name": "string",
- "url": "string"
}
}, - "investors": [
- {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "iType": "string",
- "major": true,
- "url": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string"
}
}
]
}
]
}
type required | integer Airport type ID. |
id required | integer Airport ID. |
required | object (AirportInvestorResult) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "type": 2,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "region": {
- "id": 0,
- "name": "string",
- "url": "string"
}
}, - "investors": [
- {
- "id": 0,
- "type": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "iType": "string",
- "major": true,
- "url": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string"
}
}
]
}
}
year required | integer The year to get LCCs for. |
required | Array of objects (LCCAirlineResult) | ||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "type": 1,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "from": 0,
- "to": 0,
- "startup": true,
- "failedstartup": true,
- "hidden": true
}
]
}
type required | integer Enum: 4 5 6 Profile type ID. Can be countries, regions or metaregions. |
id required | integer Profile ID. |
year required | integer The year to get LCCs for. |
required | Array of objects (LCCAirlineResult) | ||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "type": 1,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "from": 0,
- "to": 0,
- "startup": true,
- "failedstartup": true,
- "hidden": true
}
]
}
from required | integer A year to search for data from. |
to required | integer A year to search for data to. |
required | Array of objects (LCCResult) | ||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
|
{- "data": [
- {
- "year": 0,
- "months": [
- {
- "month": 0,
- "type": {
- "internal": {
- "total": 0,
- "lcc": 0
}, - "Seats for flights between profiles.": {
- "total": 0,
- "lcc": 0
}
}
}
], - "incomplete": true
}
], - "meta": {
- "min": 0,
- "max": 0
}
}
type required | integer Enum: 4 5 6 Profile type ID. Can be countries, regions or metaregions. |
id required | integer Profile ID. |
from required | integer A year to search for data from. |
to required | integer A year to search for data to. |
required | Array of objects (LCCResult) | ||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
|
{- "data": [
- {
- "year": 0,
- "months": [
- {
- "month": 0,
- "type": {
- "internal": {
- "total": 0,
- "lcc": 0
}, - "Seats for flights between profiles.": {
- "total": 0,
- "lcc": 0
}
}
}
], - "incomplete": true
}
], - "meta": {
- "min": 0,
- "max": 0
}
}
Returns an array of articles in reverse-chronological order.
num | integer Maximum number of articles to return. | |||||||||||||||||||||||||||
page | integer Zero-based article page index. | |||||||||||||||||||||||||||
categories | Array of integers (IntArray) A comma-separated list of category IDs to filter by. This will do an intersect merge on the tags that feature within the categories, meaning that only tags included in all the categories listed will be used for filtering. IMPORTANT: If a categories parameter is included, any | |||||||||||||||||||||||||||
anycat | integer If this is set to a non-zero value, then the categories matched in the | |||||||||||||||||||||||||||
alert | string Either an Alert ID or unique identifier for an Alert to filter the results by. | |||||||||||||||||||||||||||
tags | Array of strings (StringArray) Any tags to filter results by. | |||||||||||||||||||||||||||
profileid | integer If you want to filter results by profile, then this will be the profile ID that you want to filter by. Both profile ID and profile type are required for profile filtering. | |||||||||||||||||||||||||||
profiletype | integer If you want to filter results by profile, then this will be the profile type that you want to filter by. Both profile ID and profile type are required for profile filtering. | |||||||||||||||||||||||||||
linked | integer Value: 1 If this is set, then the content returned will be automatically linked to CAPA profiles on relevant keywords. | |||||||||||||||||||||||||||
types | Array of integers (IntArray) Comma-separated list of news type IDs to return. This will override anything sent in the "type" parameter.
| |||||||||||||||||||||||||||
type | string Enum: "analysis" "direct-news-sources" "press-releases" "airline-leader" "ctc" The type of news to return. This is just an easier way of specifying news types than using the "types" parameter. | |||||||||||||||||||||||||||
from | string <date> Example: from=2019-01-01 If this is set, it will filter results to any articles published after this date. | |||||||||||||||||||||||||||
to | string <date> Example: to=2019-01-01 If this is set, it will filter results to any articles published before this date. |
required | Array of objects (Article) | ||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": [
- {
- "id": 0,
- "title": "string",
- "description": "string",
- "abstract": "string",
- "article": "string",
- "ad": true,
- "keypoints": "string",
- "featured": true,
- "image": "string",
- "premium": true,
- "price": 0,
- "tags": [
- "string"
], - "timestamp": 0,
- "url": "string",
- "source": "string",
- "words": 0,
- "type": {
- "id": "string",
- "name": "string"
}, - "files": [
- {
- "description": "string",
- "filename": "string"
}
], - "mro": [
- 0
]
}
], - "meta": {
- "total": 0
}
}
id required | integer Article ID. |
required | object (Article) | ||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects If the user hasn't got authorization to download the full version of a premium article, an error key will be returned along with the main data. | |||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": {
- "id": 0,
- "title": "string",
- "description": "string",
- "abstract": "string",
- "article": "string",
- "ad": true,
- "keypoints": "string",
- "featured": true,
- "image": "string",
- "premium": true,
- "price": 0,
- "tags": [
- "string"
], - "timestamp": 0,
- "url": "string",
- "source": "string",
- "words": 0,
- "type": {
- "id": "string",
- "name": "string"
}, - "files": [
- {
- "description": "string",
- "filename": "string"
}
], - "mro": [
- 0
]
}, - "errors": [
- {
- "message": "This is a premium article that requires CAPA Membership to view.",
- "status": 401
}
]
}
This function returns a list of news content, related to the article by matching tags.
id required | integer News brief ID. |
required | Array of objects (Article) List of articles. | ||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "title": "string",
- "description": "string",
- "abstract": "string",
- "article": "string",
- "ad": true,
- "keypoints": "string",
- "featured": true,
- "image": "string",
- "premium": true,
- "price": 0,
- "tags": [
- "string"
], - "timestamp": 0,
- "url": "string",
- "source": "string",
- "words": 0,
- "type": {
- "id": "string",
- "name": "string"
}, - "files": [
- {
- "description": "string",
- "filename": "string"
}
], - "mro": [
- 0
]
}
]
}
id required | integer Article ID. |
filename required | string Attached file to download. |
inline | integer Value: 1 If this is set, then the file will attempt to open in the browser if possible. This has no effect if the request is not called by a browser. |
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
Generate the current URL of an article from a legacy URL from an earlier site iteration.
type | string Enum: "analysis" "press-releases" "direct-news-sources" "insights" "sponsored" "airline-leader" "rar" "news" Article type. |
date required | string <date> Article creation date. |
shorturl required | string Article shorturl component. |
id required | integer Article ID. |
url required | string Current version of article URL. |
{- "id": 0,
- "url": "string"
}
id required | integer News brief ID. |
linked | integer Value: 1 If this flag is set, then the news brief content will be automatically linked to CAPA profiles on relevant keywords. |
required | object (NewsBrief) | ||||||||||||||||||
| |||||||||||||||||||
object (Error) This is an error response. It will be returned if there's any problems with the request. Note that is possible to have both data and errors returned in the one response, although it doesn't happen often. The errors array will always have at least one element. The errors are in the array in an unspecified order - none is seen as more severe than the other. | |||||||||||||||||||
|
{- "data": {
- "id": 0,
- "title": "string",
- "article": "string",
- "context": "string",
- "date": 0,
- "url": "string",
- "tags": [
- "string"
], - "mro": [
- 0
], - "premium": true
}, - "errors": {
- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
}
This function returns a list of news content, related to the daily brief by matching tags.
id required | integer News brief ID. |
linked | integer Value: 1 If this flag is set, then the news brief content will be automatically linked to CAPA profiles on relevant keywords. |
required | Array of objects List of news briefs. | ||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "title": "string",
- "date": 0,
- "article": "string",
- "url": "string",
- "tags": [
- "string"
]
}
]
}
Returns an array of news briefs in reverse-chronological order.
num | integer Maximum number of results to return. |
page | integer Zero-based page index number. |
categories | Array of integers (IntArray) Example: categories=23,5,20,85 A comma-separated list of category IDs to filter by. This will do an intersect merge on the tags that feature within the categories, meaning that only tags included in all the categories listed will be used for filtering. IMPORTANT: If a categories parameter is included, any |
anycat | integer If this is set to a non-zero value, then the categories matched in the |
integer or string Either an Alert ID or unique identifier for an Alert to filter the results by. | |
tags | Array of strings (StringArray) Any tags to filter results by. |
profileid | integer If you want to filter results by profile, then this will be the profile ID that you want to filter by. Both profile ID and profile type are required for profile filtering. |
profiletype | integer If you want to filter results by profile, then this will be the profile type that you want to filter by. Both profile ID and profile type are required for profile filtering. |
linked | integer Value: 1 If this is set, then the content returned will be automatically linked to CAPA profiles on relevant keywords. |
from | string <date> Example: from=2019-01-01 If this is set, it will filter results to any articles published after this date. |
to | string <date> Example: to=2019-01-01 If this is set, it will filter results to any articles published before this date. |
required | Array of objects (NewsBrief) | ||||||||||||||||||
Array
| |||||||||||||||||||
required | object | ||||||||||||||||||
|
{- "data": [
- {
- "id": 0,
- "title": "string",
- "article": "string",
- "context": "string",
- "date": 0,
- "url": "string",
- "tags": [
- "string"
], - "mro": [
- 0
], - "premium": true
}
], - "meta": {
- "total": 0
}
}
num | integer Maximum number of results to return. |
page | integer Zero-based page index number. |
categories | Array of integers (IntArray) Example: categories=23,5,20,85 A comma-separated list of category IDs to filter by. This will do an intersect merge on the tags that feature within the categories, meaning that only tags included in all the categories listed will be used for filtering. |
anycat | integer If this is set to a non-zero value, then the categories matched in the |
events | Array of integers (IntArray) Example: events=23,5,20,85 A comma-separated list of CAPA event IDs to filter by - the results will match at least one event ID. |
tags | Array of strings (StringArray) Any tags to filter results by. |
profileid | integer If you want to filter results by profile, then this will be the profile ID that you want to filter by. Both profile ID and profile type are required for profile filtering. |
profiletype | integer If you want to filter results by profile, then this will be the profile type that you want to filter by. Both profile ID and profile type are required for profile filtering. |
required | Array of objects (Video) | ||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "date": 0,
- "description": "string",
- "image": "string",
- "premium": true,
- "tags": [
- "string"
], - "event": {
- "id": 0,
- "name": "string",
- "date": {
- "start": "2019-08-24",
- "end": "2019-08-24",
- "certain": true
}, - "url": "string"
}, - "vimeoid": 0,
- "embed": "string",
- "transcript": "string"
}
], - "meta": {
- "total": 0
}
}
id required | integer Video ID. |
required | object (Video) | ||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "url": "string",
- "date": 0,
- "description": "string",
- "image": "string",
- "premium": true,
- "tags": [
- "string"
], - "event": {
- "id": 0,
- "name": "string",
- "date": {
- "start": "2019-08-24",
- "end": "2019-08-24",
- "certain": true
}, - "url": "string"
}, - "vimeoid": 0,
- "embed": "string",
- "transcript": "string"
}
}
This returns a simple object that lists all seats/ASKs for domestic and international routes worldwide, for the current week.
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "domestic": {
- "seats": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0
}, - "asks": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0
}
}, - "international": {
- "seats": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0
}, - "asks": {
- "fclass": 0,
- "bclass": 0,
- "peclass": 0,
- "eclass": 0
}
}
}
}
This returns a list of all available regions. Needs refactoring.
required | Array of objects | ||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "code": "AS",
- "url": "string",
- "regions": [
- {
- "id": 0,
- "name": "string",
- "code": "AF1",
- "url": "string"
}
]
}
]
}
Requests to OAG's mapping server need to be accompanied by a token, which proves that the request was coming from a CAPA user.
data required | string A map token. This will be appended to the OAG iframe, under a parameter called CAPAID. |
{- "data": "string"
}
Check if a user has access to maps, based on the token supplied. This is normally called from OAG's mapping server.
token required | string The user's map token. It expires as soon as it is validated. |
required | object | ||||||
|
{- "token": "string"
}
{- "data": {
- "id": 0,
- "access": true,
- "trial": true
}
}
This allows the user to perform a full-text search across CAPA's news, analysis, reports and profiles.
term required | string The search term to use. |
where | string Enum: "dist" "news" "analysis" "video" "briefs" "profiles" "report" "video" The collection of items to search in. This is slightly confusing. |
tags | Array of strings (StringArray) Results must match at least one tag in this comma-separated list. |
sort | string Enum: "date" "relevance" How to sort results.
|
page | integer Page number of results. 10 results are returned at a time. This cannot be overridden. |
from | string <date> If you want to search within a date range, include From and To. |
to | string <date> If you want to search within a date range, include From and To. |
required | Array of objects | ||||||||||||||||||||
Array
| |||||||||||||||||||||
object | |||||||||||||||||||||
|
{- "data": [
- {
- "id": 0,
- "premium": true,
- "url": "string",
- "timestamp": 0,
- "tags": "string",
- "title": "string",
- "snippet": "string",
- "type": "news",
- "image": "string",
- "isprofile": "string"
}
], - "meta": {
- "total": 0
}
}
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "type": "analysis",
- "title": "Latest Events",
- "items": [
- {
- "id": 0,
- "name": "string",
- "info": "string",
- "url": "string",
- "livestream": {
- "id": 0,
- "start": 0,
- "end": 0,
- "url": "string",
- "embed": "string"
}, - "city": {
- "id": "string",
- "name": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "AU",
- "region": {
- "id": 0,
- "name": "string"
}
}
}, - "date": {
- "start": "2017-04-23",
- "end": "2017-04-25",
- "certain": true
}, - "tech": true,
- "finance": true,
- "ctc": 0,
- "corporate": true,
- "airline": true,
- "airport": true,
- "attendees": 0,
- "australasia": true,
- "splash": "string"
}
]
}
]
}
Categories are groups of tags that are used to filter Alerts and categorise news and analysis articles, as well as profiles.
required | Array of objects | ||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "categories": [
- {
- "id": 0,
- "name": "string",
- "url": "string"
}
]
}
]
}
id required | integer Category ID. This parameter is ignored if "search" or "shortname" is set. |
search | string Used to filter for categories by a search term (only returns one result). |
shortname | string Show the category by shortname - a unique text abbreviation identifying the category. This parameter is ignored if "search" is set. |
required | object | ||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "parent": 0,
- "sortorder": 0,
- "url": "string"
}
}
Returns a list of countries and their corresponding IDs.
IMPORTANT: Note that there are two separate versions of the countries list - one is used for user accounts and shop items, and the other is used for all data-related URLs.
shop | integer Value: 1 Send a shop flag if you want to return countries from the shop instead of the main data database. If you're working with data, you want the main database. If you're working with user accounts, you want the shop database. |
required | Array of objects | ||||||||
Array
|
{- "data": [
- {
- "id": "string",
- "name": "string",
- "code": "st",
- "url": "string"
}
]
}
Get a list of industry sectors. Mostly useful when creating/updating accounts.
required | Array of objects Industry sectors. | ||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string"
}
]
}
This will return a huge list of cities, grouped by country.
required | Array of objects | ||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "cities": [
- {
- "id": 0,
- "name": "string",
- "state": "WA"
}
]
}
]
}
Return a huge array of all airports within our system.
required | Array of objects | ||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "airports": [
- {
- "id": 0,
- "name": "string",
- "iata": "SYD",
- "icao": "YSSY",
- "url": "string"
}
]
}
]
}
Return a huge array of all new airports (i.e. airports that are planned or undergoing construction) within our system.
required | Array of objects | ||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "airports": [
- {
- "id": 0,
- "name": "string",
- "iata": "SYD",
- "icao": "YSSY",
- "url": "string"
}
]
}
]
}
Get a list of all available airlines.
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "efrom": "2019-08-24",
- "eto": "2019-08-24",
- "bizmodel": 0,
- "startup": true,
- "failed": 0,
- "startupdate": "2017",
- "url": "string",
- "country": {
- "id": 0,
- "name": "string",
- "code": "AU",
- "url": "string",
- "region": {
- "id": 0,
- "name": "string",
- "url": "string",
- "metaregion": 0
}
}, - "hub": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
}
]
}
Get a list of all possible airline business models.
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string"
}
]
}
This allows a user to retrieve a tag and its corresponding ID based on a search.
term required | string Example: term=qan Search for any tags beginning with this string. |
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string"
}
]
}
Access this to download an individual XML sitemap. Generally this is not accessed directly, and is instead piped through the CAPA site.
filename required | string Example: sitemap-0.xml.gz A sitemap filename. |
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
This function is automatically triggered by the CAPA site when an error occurs. It generates an email to the CAPA development team, listing the error and associated details.
error required | string The provided JSX error message. |
info required | string A description of the component path the error was located in. |
userAgent required | string A string containing the User Agent request header. |
url required | string A string containing the URL the error occurred on. |
history | Array of any[ items ] An array containing the User history in this session. |
message | string A string containing the content of the error report text box that appears when an error on the CAPA site occurs, filled in by the user. |
userid | integer If the user is logged into a CAPA account, the account's ID is included here. |
{- "error": "string",
- "info": "string",
- "userAgent": "string",
- "url": "string",
- "history": [
- [
- null
]
], - "message": "string",
- "userid": 0
}
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
This function is used by the CAPA feedback system within the Fleet Matrix aircraft pages and MRO Matrix entry pages. It generates an email to the CAPA data team, allowing a user to submit feedback on the site.
feedback required | string The feedback data from the user. |
source required | string Enum: "fleet-record" "mro-record" Used to indicate whether the feedback originated from the Fleet or the MRO components. |
id required | integer This contains the id from the page URL for the aircraft/MRO entry the function was called from. |
{- "feedback": "string",
- "source": "fleet-record",
- "id": 0
}
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
This function blocks direct access to a stored file and instead routes it though a secure to generate and download the file indirectly.
filename required | string File name. |
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
Provides a list of products that can be received via email from CAPA.
required | Array of objects | ||||||||
Array
|
{- "data": [
- {
- "model": {
- "id": 0,
- "name": "string"
}
}
]
}
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "current": [
- {
- "id": 0,
- "shortname": "string",
- "name": "string",
- "description": "string",
- "hidden": true,
- "frequency": "Daily",
- "freqnum": 0,
- "latest": {
- "id": 0,
- "filename": "string",
- "date": 0,
- "title": "string",
- "description": "string",
- "issue": 0
}
}
], - "archived": [
- {
- "shortname": "string",
- "name": "string"
}
]
}
}
id required | integer Publication ID. |
num | integer Maximum number of results to return. |
page | integer Zero-based page index of results. |
required | Array of objects (Issue) An array of issues. | ||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "issue": 0,
- "title": "string",
- "date": 0,
- "shortname": "string",
- "description": "string",
- "password": "string",
- "filename": "string"
}
]
}
id required | integer Publication ID. |
issueid required | integer Issue ID. |
required | object (Issue) | ||||||||||||||||
|
{- "data": {
- "id": 0,
- "issue": 0,
- "title": "string",
- "date": 0,
- "shortname": "string",
- "description": "string",
- "password": "string",
- "filename": "string"
}
}
shortname required | string Publication shortname - a unique text abbreviation identifying the publication. |
filename required | string Publication filename. |
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
shortname required | string Publication shortname - a unique text abbreviation identifying the publication. |
data required | Array of strings A reverse-chronological array listing every filename for every issue of the archived publication. |
{- "data": [
- "string"
]
}
week required | string <date> The first day of the week of data being ranked. | ||||||||
month required | string The name and year of the month of data being ranked in the style of 'Jun-2021'. Note: if the 'week' parameter is set, this parameter is ignored. | ||||||||
direction required | string Enum: "both" "dep" "arr" This limits the direction of the flight data that is used for rankings. This applies only if the data is ranked by a location profile (airport, country, e.t.c.) or is being filtered by such a profile.
| ||||||||
type required | string Enum: "system" "international" "domestic" This indicates if the data displays only international flights ('international'), domestic flights ('domestic') or both ('system'). | ||||||||
bizmodel required | integer This filters flight data by the airlines' business model ID. | ||||||||
alliance required | integer This filters flight data by the airlines' alliance ID. | ||||||||
rfrom required | string This filters by flights departing/arriving at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This may be combined with the 'rto' and 'cto' parameters. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
rto required | string This filters by flights arriving/departing at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
region required | string This filters flight data by the ID of the region the flight airport(s) are based in. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" parameter is not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
regionlocal required | interger If this is set to 1, then the only flights shown are those where the airport(s) defined by the 'direction' parameter are based in the region. If it is set to 2, it shows only flights for airport(s) defined by the 'direction' parameter are not based in the region. This parameter only applies if the "region" parameter is set. | ||||||||
cfrom required | integer This filters by flights departing/arriving at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cto required | integer This filters by flights arriving/departing at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
country required | integer This filters flight data by the ID of the country/territory the flight airport(s) are based in. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
local required | boolean If this is set to 1, then the only flights shown are those where the airline is based in the country/territory. This parameter only applies if the "country" parameter is set. | ||||||||
cityfrom required | integer This filters by flights departing/arriving at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cityto required | integer This filters by flights arriving/departing at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
city required | integer This filters flight data by the ID of the city the flight airport(s) are based in. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
airport required | integer This filters flight data by the ID of the airport the flight connects to. The direction of flights for this parameter depends on the 'direction' parameter as below.
|
required | Array of objects | ||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "seats": 0,
- "asks": 0,
- "depfreq": 0,
- "cargo": 0,
- "aftks": 0,
- "connectivity": {
- "routes": 0,
- "airports": 0
}
}
]
}
week required | string <date> The first day of the week of data being ranked. | ||||||||
month required | string The name and year of the month of data being ranked in the style of 'Jun-2021'. Note: if the 'week' parameter is set, this parameter is ignored. | ||||||||
direction required | string Enum: "both" "dep" "arr" This limits the direction of the flight data that is used for rankings. This applies only if the data is ranked by a location profile (airport, country, e.t.c.) or is being filtered by such a profile.
| ||||||||
type required | string Enum: "system" "international" "domestic" This indicates if the data displays only international flights ('international'), domestic flights ('domestic') or both ('system'). | ||||||||
bizmodel required | integer This filters flight data by the airlines' business model ID. | ||||||||
rfrom required | string This filters by flights departing/arriving at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This may be combined with the 'rto' and 'cto' parameters. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
rto required | string This filters by flights arriving/departing at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cfrom required | integer This filters by flights departing/arriving at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cto required | integer This filters by flights arriving/departing at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
country required | integer This filters flight data by the ID of the country/territory the flight airport(s) are based in. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
local required | boolean If this is set to 1, then the only flights shown are those where the airline is based in the country/territory. This parameter only applies if the "country" parameter is set. | ||||||||
cityfrom required | integer This filters by flights departing/arriving at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cityto required | integer This filters by flights arriving/departing at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
city required | integer This filters flight data by the ID of the city the flight airport(s) are based in. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
showOnlyGroups required | boolean If set to 1, this forces the results to return only airline group rankings. If set to 0, then it also adds airlines that are not part of an airline group to the rankings list. |
required | Array of objects | ||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "seats": 0,
- "asks": 0,
- "depfreq": 0,
- "cargo": 0,
- "aftks": 0
}
]
}
week required | string <date> The first day of the week of data being ranked. | ||||||||
month required | string The name and year of the month of data being ranked in the style of 'Jun-2021'. Note: if the 'week' parameter is set, this parameter is ignored. | ||||||||
direction required | string Enum: "both" "dep" "arr" This limits the direction of the flight data that is used for rankings. This applies only if the data is ranked by a location profile (airport, country, e.t.c.) or is being filtered by such a profile.
| ||||||||
type required | string Enum: "system" "international" "domestic" This indicates if the data displays only international flights ('international'), domestic flights ('domestic') or both ('system'). | ||||||||
bizmodel required | integer This filters flight data by the airlines' business model ID. | ||||||||
airline required | integer This filters flight data by the airline IDs operating the flight. | ||||||||
investor required | integer This filters flight data by the ID of the investor profile investing in airports the flight connects to at either end. This parameter is not affected by the 'direction' parameter. | ||||||||
rfrom required | string This filters by flights departing/arriving at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This may be combined with the 'rto' and 'cto' parameters. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
rto required | string This filters by flights arriving/departing at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
region required | string This filters flight data by the ID of the region the flight airport(s) are based in. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" parameter is not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
regionlocal required | interger If this is set to 1, then the only flights shown are those where the airport(s) defined by the 'direction' parameter are based in the region. If it is set to 2, it shows only flights for airport(s) defined by the 'direction' parameter are not based in the region. This parameter only applies if the "region" parameter is set. | ||||||||
cfrom required | integer This filters by flights departing/arriving at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cto required | integer This filters by flights arriving/departing at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
country required | integer This filters flight data by the ID of the country/territory the flight airport(s) are based in. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
local required | boolean If this is set to 1, then the only flights shown are those where the airline is based in the country/territory. This parameter only applies if the "country" parameter is set. | ||||||||
cityfrom required | integer This filters by flights departing/arriving at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cityto required | integer This filters by flights arriving/departing at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
city required | integer This filters flight data by the ID of the city the flight airport(s) are based in. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
airport required | integer This filters flight data by the ID of the airport the flight connects to. The direction of flights for this parameter depends on the 'direction' parameter as below.
|
required | Array of objects | ||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "city": {
- "id": 0,
- "name": "string"
}, - "seats": 0,
- "asks": 0,
- "depfreq": 0,
- "cargo": 0,
- "aftks": 0,
- "connectivity": {
- "routes": 0,
- "airports": 0
}
}
]
}
week required | string <date> The first day of the week of data being ranked. | ||||||||
month required | string The name and year of the month of data being ranked in the style of 'Jun-2021'. Note: if the 'week' parameter is set, this parameter is ignored. | ||||||||
direction required | string Enum: "both" "dep" "arr" This limits the direction of the flight data that is used for rankings. This applies only if the data is ranked by a location profile (airport, country, e.t.c.) or is being filtered by such a profile.
| ||||||||
type required | string Enum: "system" "international" "domestic" This indicates if the data displays only international flights ('international'), domestic flights ('domestic') or both ('system'). | ||||||||
bizmodel required | integer This filters flight data by the airlines' business model ID. | ||||||||
airline required | integer This filters flight data by the airline IDs operating the flight. | ||||||||
rfrom required | string This filters by flights departing/arriving at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This may be combined with the 'rto' and 'cto' parameters. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
rto required | string This filters by flights arriving/departing at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
region required | string This filters flight data by the ID of the region the flight airport(s) are based in. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" parameter is not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cfrom required | integer This filters by flights departing/arriving at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cto required | integer This filters by flights arriving/departing at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
country required | integer This filters flight data by the ID of the country/territory the flight airport(s) are based in. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
local required | boolean If this is set to 1, then the only flights shown are those where the airline is based in the country/territory. This parameter only applies if the "country" parameter is set. | ||||||||
cityfrom required | integer This filters by flights departing/arriving at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cityto required | integer This filters by flights arriving/departing at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
city required | integer This filters flight data by the ID of the city the flight airport(s) are based in. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
airport required | integer This filters flight data by the ID of the airport the flight connects to. The direction of flights for this parameter depends on the 'direction' parameter as below.
|
required | Array of objects | ||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "seats": 0,
- "asks": 0,
- "depfreq": 0,
- "cargo": 0,
- "aftks": 0
}
]
}
week required | string <date> The first day of the week of data being ranked. | ||||||||
month required | string The name and year of the month of data being ranked in the style of 'Jun-2021'. Note: if the 'week' parameter is set, this parameter is ignored. | ||||||||
direction required | string Enum: "both" "dep" "arr" This limits the direction of the flight data that is used for rankings. This applies only if the data is ranked by a location profile (airport, country, e.t.c.) or is being filtered by such a profile.
| ||||||||
type required | string Enum: "system" "international" "domestic" This indicates if the data displays only international flights ('international'), domestic flights ('domestic') or both ('system'). | ||||||||
bizmodel required | integer This filters flight data by the airlines' business model ID. | ||||||||
rfrom required | string This filters by flights departing/arriving at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This may be combined with the 'rto' and 'cto' parameters. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
rto required | string This filters by flights arriving/departing at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cfrom required | integer This filters by flights departing/arriving at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cto required | integer This filters by flights arriving/departing at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
country required | integer This filters flight data by the ID of the country/territory the flight airport(s) are based in. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
local required | boolean If this is set to 1, then the only flights shown are those where the airline is based in the country/territory. This parameter only applies if the "country" parameter is set. | ||||||||
cityfrom required | integer This filters by flights departing/arriving at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cityto required | integer This filters by flights arriving/departing at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
city required | integer This filters flight data by the ID of the city the flight airport(s) are based in. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
|
required | Array of objects | ||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "seats": 0,
- "asks": 0,
- "depfreq": 0,
- "cargo": 0,
- "aftks": 0
}
]
}
week required | string <date> The first day of the week of data being ranked. | ||||||||
direction required | string Enum: "both" "dep" "arr" This limits the direction of the flight data that is used for rankings. This applies only if the data is ranked by a location profile (airport, country, e.t.c.) or is being filtered by such a profile.
| ||||||||
type required | string Enum: "system" "international" "domestic" This indicates if the data displays only international flights ('international'), domestic flights ('domestic') or both ('system'). | ||||||||
bizmodel required | integer This filters flight data by the airlines' business model ID. | ||||||||
airline required | integer This filters flight data by the airline IDs operating the flight. | ||||||||
rfrom required | string This filters by flights departing/arriving at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This may be combined with the 'rto' and 'cto' parameters. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
rto required | string This filters by flights arriving/departing at a selected metaregion/region. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cfrom required | integer This filters by flights departing/arriving at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cto required | integer This filters by flights arriving/departing at a selected country/territory ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
country required | integer This filters flight data by the ID of the country/territory the flight airport(s) are based in. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cityfrom required | integer This filters by flights departing/arriving at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
cityto required | integer This filters by flights arriving/departing at a selected city ID. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||
city required | integer This filters flight data by the ID of the city the flight airport(s) are based in. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
|
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "dep": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "city": {
- "id": 0,
- "name": "string",
- "country": {
- "id": 0,
- "name": "string",
- "url": "string"
}
}
}, - "arr": {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "city": {
- "id": 0,
- "name": "string",
- "country": {
- "id": 0,
- "name": "string",
- "url": "string"
}
}
}, - "seats": 0,
- "asks": 0,
- "depfreq": 0,
- "cargo": 0,
- "aftks": 0,
- "yoy": {
- "seats": 0,
- "asks": 0,
- "depfreq": 0,
- "cargo": 0,
- "aftks": 0
}
}
]
}
week required | string <date> The first day of the week of data being ranked. | ||||||||
direction required | string Enum: "both" "dep" "arr" This limits the direction of the flight data that is used for rankings. This applies only if the data is ranked by a location profile (airport, country, e.t.c.) or is being filtered by such a profile.
| ||||||||
type required | string Enum: "system" "international" "domestic" This indicates if the data displays only international flights ('international'), domestic flights ('domestic') or both ('system'). | ||||||||
airline required | integer This filters flight data by the airline IDs operating the flight. | ||||||||
region required | string This filters flight data by the ID of the region the flight airport(s) are based in. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" parameter is not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
|
required | Array of objects | ||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "seats": 0,
- "asks": 0,
- "depfreq": 0,
- "arrfreq": 0,
- "cargo": 0,
- "aftks": 0
}
]
}
week required | string <date> The first day of the week of data being ranked. | ||||||||
direction required | string Enum: "both" "dep" "arr" This limits the direction of the flight data that is used for rankings. This applies only if the data is ranked by a location profile (airport, country, e.t.c.) or is being filtered by such a profile.
| ||||||||
type required | string Enum: "system" "international" "domestic" This indicates if the data displays only international flights ('international'), domestic flights ('domestic') or both ('system'). | ||||||||
airline required | integer This filters flight data by the airline IDs operating the flight. |
required | Array of objects | ||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "url": "string",
- "seats": 0,
- "asks": 0,
- "depfreq": 0,
- "arrfreq": 0,
- "cargo": 0,
- "aftks": 0
}
]
}
week required | string <date> The first day of the week of data being ranked. | ||||||||||
bizmodel required | integer This filters flight data by the airlines' business model ID. | ||||||||||
status | integer Aircraft status ID. | ||||||||||
role | integer Aircraft role ID. | ||||||||||
region required | string This filters flight data by the ID of the region the flight airport(s) are based in. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" parameter is not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||||
country required | integer This filters flight data by the ID of the country/territory the flight airport(s) are based in. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||||
group | string Enum: "1" "10" "aagcombination" "4" Identifies the profile groupings for fleet data. The options are listed below.
|
required | Array of objects | ||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "type": {
- "id": 0
}, - "iata": "string",
- "icao": "string",
- "url": "string",
- "fleet": {
- "narrow": 0,
- "wide": 0,
- "other": 0
}, - "seats": {
- "narrow": 0,
- "wide": 0,
- "other": 0
}
}
]
}
datefrequency required | string Enum: "FY" "HY" "Q" "M" Defines the date period of traffic data used. If set to any value but 'FY', then the 'dateperiod' parameter is enabled.
| ||||||||||
dateyear required | string This indicates which year the data is pulled from. If the 'datefrequency' parameter is set to 'FY' then this can also be set to 'latest' to show the latest year of full data. If the year's data is incomplete it shows 'Year-to-Date' calculated from monthly data. | ||||||||||
dateperiod required | integer If the 'datefrequency' parameter is not set to 'FY' then this defines which year half/quarter/month the data is pulled from. | ||||||||||
bizmodel required | integer This filters flight data by the airlines' business model ID. | ||||||||||
alliance required | integer This filters flight data by the airlines' alliance ID. | ||||||||||
region required | string This filters flight data by the ID of the region the flight airport(s) are based in. If the profile is a metaregion, preface the ID with a 'm' otherwise use only the ID. This parameter only applies if the "country" parameter is not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||||
country required | integer This filters flight data by the ID of the country/territory the flight airport(s) are based in. The direction of flights for this parameter depends on the 'direction' parameter as below.
| ||||||||||
city required | integer This filters flight data by the ID of the city the flight airport(s) are based in. This parameter only applies if the "country" and "region" parameters are not set. The direction of flights for this parameter depends on the 'direction' parameter as below.
|
required | Array of objects (RankingReportResults) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "yearend": "string",
- "date": {
- "year": 0,
- "period": 0,
- "name": "string"
}, - "bizmodel": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "alliance": {
- "id": 0,
- "name": "string"
}, - "location": {
- "city": {
- "id": 0,
- "name": "string"
}, - "country": {
- "id": 0,
- "name": "string"
}, - "region": {
- "id": 0,
- "name": "string"
}, - "metaregion": {
- "id": 0,
- "name": "string"
}
}, - "url": "string",
- "values": [
- {
- "id": 0,
- "name": "string",
- "value": 0,
- "ispercent": true,
- "range": "string"
}
]
}
]
}
required | object (RankingReportOptions) A list of possible data indicators and profile groupings for the report type. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "indicatorrange": {
- "FY": [
- [
- {
- "id": 0,
- "name": 0,
- "fieldorder": 0,
- "children": [
- {
- "id": 0,
- "name": 0
}
]
}
]
], - "HY": [
- [
- {
- "id": 0,
- "name": 0,
- "fieldorder": 0,
- "children": [
- {
- "id": 0,
- "name": 0
}
]
}
]
], - "Q": [
- [
- {
- "id": 0,
- "name": 0,
- "fieldorder": 0,
- "children": [
- {
- "id": 0,
- "name": 0
}
]
}
]
], - "M": [
- [
- {
- "id": 0,
- "name": 0,
- "fieldorder": 0,
- "children": [
- {
- "id": 0,
- "name": 0
}
]
}
]
]
}, - "grouprange": {
- "FY": [
- 0
], - "HY": [
- 0
], - "Q": [
- 0
], - "M": [
- 0
]
}
}
}
datefrequency required | string Enum: "FY" "HY" "Q" "M" Defines the date period of traffic data used. If set to any value but 'FY', then the 'dateperiod' parameter is enabled.
| ||||||||||
dateyear required | string This indicates which year the data is pulled from. If the 'datefrequency' parameter is set to 'FY' then this can also be set to 'latest' to show the latest year of full data. If the year's data is incomplete it shows 'Year-to-Date' calculated from monthly data. | ||||||||||
dateperiod required | integer If the 'datefrequency' parameter is not set to 'FY' then this defines which year half/quarter/month the data is pulled from. |
required | Array of objects (RankingReportResults) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "yearend": "string",
- "date": {
- "year": 0,
- "period": 0,
- "name": "string"
}, - "bizmodel": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "alliance": {
- "id": 0,
- "name": "string"
}, - "location": {
- "city": {
- "id": 0,
- "name": "string"
}, - "country": {
- "id": 0,
- "name": "string"
}, - "region": {
- "id": 0,
- "name": "string"
}, - "metaregion": {
- "id": 0,
- "name": "string"
}
}, - "url": "string",
- "values": [
- {
- "id": 0,
- "name": "string",
- "value": 0,
- "ispercent": true,
- "range": "string"
}
]
}
]
}
required | object (RankingReportOptions) A list of possible data indicators and profile groupings for the report type. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "indicatorrange": {
- "FY": [
- [
- {
- "id": 0,
- "name": 0,
- "fieldorder": 0,
- "children": [
- {
- "id": 0,
- "name": 0
}
]
}
]
], - "HY": [
- [
- {
- "id": 0,
- "name": 0,
- "fieldorder": 0,
- "children": [
- {
- "id": 0,
- "name": 0
}
]
}
]
], - "Q": [
- [
- {
- "id": 0,
- "name": 0,
- "fieldorder": 0,
- "children": [
- {
- "id": 0,
- "name": 0
}
]
}
]
], - "M": [
- [
- {
- "id": 0,
- "name": 0,
- "fieldorder": 0,
- "children": [
- {
- "id": 0,
- "name": 0
}
]
}
]
]
}, - "grouprange": {
- "FY": [
- 0
], - "HY": [
- 0
], - "Q": [
- 0
], - "M": [
- 0
]
}
}
}
Given a profile ID, type and range type, this returns available traffic fields.
type required | integer Profile type ID. |
id required | integer Profile ID. |
rangeType required | string Enum: "annual" "quarterly" "monthly" "half" Traffic data range type. |
required | Array of objects (ReportField) | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "years": [
- 0
], - "children": [
- { }
]
}
]
}
required | Array of objects (ReportField) | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "years": [
- 0
], - "children": [
- { }
]
}
]
}
type required | integer Profile type ID. |
id required | integer Profile ID. |
rangeType required | string Enum: "annual" "quarterly" "monthly" "half" Traffic data range type. |
required | Array of objects (ReportField) | ||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "years": [
- 0
], - "children": [
- { }
]
}
]
}
Get the report fields for domestic data from the Australian Bureau of Infrastructure, Transport and Regional Economics (BITRE)
required | Array of objects | ||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "children": [
- {
- "id": 0,
- "name": "string"
}
]
}
]
}
Get the top level report fields for international data from the Australian Bureau of Infrastructure, Transport and Regional Economics (BITRE).
Note: due to the total number of fields, the memory and loading times required separating the data to separate functions.
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string"
}
]
}
Get the 2nd level (airline) children of a selected report field for international data from the Australian Bureau of Infrastructure, Transport and Regional Economics (BITRE).
Note: due to the total number of fields, the memory and loading times required separating the data to separate functions.
field required | integer Top level report filed ID from '/data/bitre/international/fields' function. |
required | Array of objects | ||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string",
- "children": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string",
- "children": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string"
}
]
}
]
}
]
}
Get the 2nd level (route) children of a selected report field for international data from the Australian Bureau of Infrastructure, Transport and Regional Economics (BITRE).
Note: due to the total number of fields, the memory and loading times required separating the data to separate functions.
field required | integer Top level report filed ID from '/data/bitre/international/fields' function. |
required | Array of objects | ||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string",
- "children": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string",
- "children": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string"
}
]
}
]
}
]
}
Get all 2nd level children of a selected report field for international data from the Australian Bureau of Infrastructure, Transport and Regional Economics (BITRE).
Note: Unlike the '/data/bitre/international/fields/airline/{field}' and '/data/bitre/international/fields/routes/{field}' functions, which only provide a list of sub-fields based on a specific grouping, this provides a list of all possible sub-fields including the content of both previous functions.
Note: due to the total number of fields, the memory and loading times required separating the data to separate functions.
field required | integer Top level report filed ID from '/data/bitre/international/fields' function. |
required | Array of objects | ||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string",
- "children": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string",
- "children": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string"
}
]
}
]
}
]
}
Returns a list of report IDs and profiles for domestic data from the Australian Bureau of Infrastructure, Transport and Regional Economics (BITRE) that have a new/updated report and the date it was updated.
since | integer Default: 1 Most recent number of days to search for. |
required | object (ReportUpdated) | ||||||||||||
|
{- "data": {
- "id": 0,
- "updated": 0,
- "profile": {
- "id": 0,
- "type": 0
}
}
}
Get all fields and break-downs for Australia On-time Performance reports from Australia reports.
required | Array of objects | ||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "children": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string",
- "children": [
- {
- "id": 0,
- "name": "string",
- "brokenBy": "string"
}
]
}
]
}
]
}
type required | integer Profile type ID. |
id required | integer Profile ID. |
rangeType required | string Enum: "annual" "quarterly" "monthly" "half" Traffic data range type. |
field required | integer Field ID. |
from | integer Example: from=2012 Start of year range to pull traffic data from. |
to | integer Example: to=2016 End of year range to pull traffic data from. |
required | object (TrafficData) | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "isPercent": true,
- "showGrowth": true,
- "values": [
- {
- "year": 0,
- "periods": [
- {
- "period": 0,
- "note": "string",
- "grouping": "string",
- "value": 0
}
]
}
], - "children": [
- { }
]
}, - "meta": {
- "source": "string",
- "note": [
- "string"
]
}
}
Returns a list of traffic report IDs and profiles that have a new/updated report and the date it was updated.
since | integer Default: 1 Most recent number of days to search for. |
required | object (ReportUpdated) | ||||||||||||
|
{- "data": {
- "id": 0,
- "updated": 0,
- "profile": {
- "id": 0,
- "type": 0
}
}
}
This returns IATA premium traffic data. Note that IATA stopped reporting this data in 2015.
field | integer Field ID requested. If this is omitted, all fields are returned. |
from | integer Example: from=2012 Start of year range to pull traffic data from. |
to | integer Example: to=2016 End of year range to pull traffic data from. |
required | object (TrafficData) | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "isPercent": true,
- "showGrowth": true,
- "values": [
- {
- "year": 0,
- "periods": [
- {
- "period": 0,
- "note": "string",
- "grouping": "string",
- "value": 0
}
]
}
], - "children": [
- { }
]
}, - "meta": {
- "source": "string",
- "note": [
- "string"
]
}
}
Get domestic Australian Bureau of Infrastructure, Transport and Regional Economics (BITRE) report data for a given field.
field required | integer A field ID, if you're only interested in a single field. |
required | object (ReportResult) | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "isPercent": "string",
- "showGrowth": "string",
- "values": [
- {
- "year": "string",
- "periods": [
- {
- "period": 0,
- "note": "string",
- "grouping": "string",
- "value": 0
}
], - "children": [
- { }
]
}
], - "children": [
- { }
], - "unit": "string"
}, - "meta": {
- "source": "string",
- "note": [
- "string"
]
}
}
Get international Australian Bureau of Infrastructure, Transport and Regional Economics (BITRE) report data for a given field.
field required | integer A field ID, if you're only interested in a single field. |
required | object (ReportResult) | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "isPercent": "string",
- "showGrowth": "string",
- "values": [
- {
- "year": "string",
- "periods": [
- {
- "period": 0,
- "note": "string",
- "grouping": "string",
- "value": 0
}
], - "children": [
- { }
]
}
], - "children": [
- { }
], - "unit": "string"
}, - "meta": {
- "source": "string",
- "note": [
- "string"
]
}
}
Get Australian On-time Performance report data for a given field.
field required | integer A field ID, if you're only interested in a single field. |
required | object (ReportResult) | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "isPercent": "string",
- "showGrowth": "string",
- "values": [
- {
- "year": "string",
- "periods": [
- {
- "period": 0,
- "note": "string",
- "grouping": "string",
- "value": 0
}
], - "children": [
- { }
]
}
], - "children": [
- { }
], - "unit": "string"
}, - "meta": {
- "source": "string",
- "note": [
- "string"
]
}
}
Returns a list of on-time performace report IDs and profiles that have a new/updated report and the date it was updated.
since | integer Default: 1 Most recent number of days to search for. |
required | object (ReportUpdated) | ||||||||||||
|
{- "data": {
- "id": 0,
- "updated": 0,
- "profile": {
- "id": 0,
- "type": 0
}
}
}
search | string Company name to search for. A substring search will be performed. Either this or the |
code | string IATA/ICAO code of the company to search for. Overrides anything in the |
required | Array of objects | ||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "frequencies": [
- "M"
], - "country": {
- "id": 0,
- "name": "string",
- "code": "AU"
}
}
]
}
type required | integer Profile type ID. |
id required | integer Profile ID. |
range required | string Enum: "annual" "quarterly" "monthly" "half" Tourism result reporting range type. |
field required | integer Field ID. |
required | object (TourismResult) | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "isPercent": "string",
- "showGrowth": "string",
- "values": [
- {
- "year": "string",
- "periods": [
- {
- "period": 0,
- "note": "string",
- "grouping": "string",
- "value": 0
}
], - "children": [
- { }
]
}
]
}, - "meta": {
- "source": "string",
- "note": [
- "string"
]
}
}
Returns a list of tourism report IDs and profiles that have a new/updated report and the date it was updated.
since | integer Default: 1 Most recent number of days to search for. |
required | object (ReportUpdated) | ||||||||||||
|
{- "data": {
- "id": 0,
- "updated": 0,
- "profile": {
- "id": 0,
- "type": 0
}
}
}
type required | integer Profile type ID. |
id required | integer Profile ID. |
field | integer A field ID, if you're only interested in a single field. |
from | integer Year to get sustainability from. |
to | integer Year to get sustainability data to. |
required | object (FinancialResult) | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "isPercent": "string",
- "showGrowth": "string",
- "values": [
- {
- "year": "string",
- "periods": [
- {
- "period": 0,
- "note": "string",
- "grouping": "string",
- "local": 0,
- "usd": 0
}
], - "children": [
- { }
]
}
]
}, - "meta": {
- "source": "string",
- "note": [
- "string"
]
}
}
Returns a list of sustainability report IDs and profiles that have a new/updated report and the date it was updated.
since | integer Default: 1 Most recent number of days to search for. |
required | object (ReportUpdated) | ||||||||||||
|
{- "data": {
- "id": 0,
- "updated": 0,
- "profile": {
- "id": 0,
- "type": 0
}
}
}
search | string Company name to search for. A substring search will be performed. Either this or the |
code | string IATA/ICAO code of the company to search for. Overrides anything in the |
required | Array of objects | ||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string",
- "frequencies": [
- "M"
], - "country": {
- "id": 0,
- "name": "string",
- "code": "AU"
}
}
]
}
Use this resource to pull down a list of items available for purchase/subscription. The list returned will be alphabetically ordered by product name.
num | integer Number of results to return. |
page | integer Zero-based index of the result page number. |
required | Array of objects (ShopItem) | ||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "shortdesc": "string",
- "description": "string",
- "price": 0,
- "currency": {
- "id": 0,
- "symbol": "USD"
}, - "mailout": true,
- "type": 0,
- "filename": "string",
- "sub": [
- {
- "id": 0,
- "period": 0,
- "price": 0
}
], - "files": [
- "string"
], - "image": "string",
- "convertedprice": 0,
- "url": "string",
- "requires": { }
}
]
}
Returns a single shop item based on the ID provided.
itemid required | integer Example: 39 Shop item ID. This is a bit of a weird situation. You can either use the shop item ID, or the shortname value for the shop item. Both will return the same result. Note that this only applies to this resource and not file downloads. |
required | object (ShopItem) | ||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "id": 0,
- "name": "string",
- "shortdesc": "string",
- "description": "string",
- "price": 0,
- "currency": {
- "id": 0,
- "symbol": "USD"
}, - "mailout": true,
- "type": 0,
- "filename": "string",
- "sub": [
- {
- "id": 0,
- "period": 0,
- "price": 0
}
], - "files": [
- "string"
], - "image": "string",
- "convertedprice": 0,
- "url": "string",
- "requires": { }
}
}
Given a list of items and a user's country and payment method, this will calculate what the total charged to the user will be.
cart required | Array of any Example: cart=39/1/30 The cart parameter should contain a comma separated list of cart items, of which the parameters themselves are separated by slashes. There should always be three parameters. A cart item looks like this:
| ||||||||
coupon | string If the user has a discount code, this will be it. | ||||||||
country required | integer This is the user's country ID and it is used to calculate whether tax should be applied to the order or not. A list of country IDs can be pulled down at /site/countries. | ||||||||
method | integer The payment method selected.
|
required | Array of objects | ||||
Array
|
{- "data": [
- {
- "name": "Subtotal",
- "value": 0
}
]
}
required | Array of objects Array of items to purchase. | ||||||||
Array
| |||||||||
coupon | string Discount coupon code for the order. | ||||||||
method required | integer The payment method. These are:
| ||||||||
name required | string The user's name. This can be the same as the user's name, or a different name. It is used for invoicing. | ||||||||
email required | string The user's email address. If this is not the same as the account's email address, then the invoice will be sent to both the account's email address and the email address listed here. | ||||||||
suburb required | string The user's suburb, for invoicing purposes. | ||||||||
postcode | string The user's postcode, for invoicing. | ||||||||
country required | integer The user's country ID. Get a list of countries from /site/countries. | ||||||||
ccNumber | integer The user's credit card number. | ||||||||
ccExpiry | string^\d{2}\/\d{2}$ The user's credit card expiry date. It is in MM/YY format. | ||||||||
ccCVV | integer The card verification value. This is normally a three-digit number on the back of the user's credit card. |
required | object | ||||
|
{- "items": [
- {
- "id": 0,
- "quantity": 1,
- "period": 0
}
], - "coupon": "string",
- "method": 0,
- "name": "string",
- "email": "string",
- "suburb": "string",
- "postcode": "string",
- "country": 0,
- "ccNumber": 0,
- "ccExpiry": "05/17",
- "ccCVV": 0
}
{- "data": {
- "id": 0,
- "paid": true
}
}
If a shop item had files available for download, make a get request to this URL and it will respond with the file contents.
itemid required | integer |
filename required | string |
{- "errors": [
- {
- "message": "string",
- "status": 400
}
]
}
This lists all profiles that provides airports with Ground Handling or Fuel & Oil services.
required | Array of objects | ||||||||||||||||||||||||||||||||||||||||
Array
|
{- "data": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "type": 0,
- "sector": {
- "id": 0,
- "name": "string"
}, - "country": {
- "id": 0,
- "name": "string",
- "url": "string"
}, - "items": [
- {
- "id": 0,
- "name": "string",
- "iata": "string",
- "icao": "string",
- "url": "string"
}
]
}
]
}