Airlines / Operators

An Airline represents an operator of aviation transport services.

Entry point
https://www.avdelphi.com/api/1.0/airlines.svc
Parameter Type Values
api_key
mandatory Your API Key
api_password
mandatory Your API Password. Send this OR an access_token
api_access_token
mandatory Your API access token which can be used instead of sending your password.
cmd
mandatory API Command
itemlist
optional List of fields to return. Each command has a specific list of items that can be returned.
format
optional Data return type XML,JSON,CSV or CSV-
  • JSON is the default when no format parameter is specified
  • CSV output starts with a series of comment lines - starting with the # character. You may need to remove these before importing the CSV data.
  • CSV- output omits the comment lines - including any error messages.
search parameter
see note below Each command has a set of parameters that can be specified to identify the target data, such as registration, serial number etc.

Examples

Note When using the TEST credentials (TESTAPIKEY & TESTAPIKEYPASSWORD) the result airline will always be 'Qantas'.

Get a specific set of fields for an Airline by operator_icao code
https://www.avdelphi.com/api/1.0/airlines.svc?api_key=TESTAPIKEY&api_password=TESTAPIKEYPASSWORD&cmd=info&code=qfa&itemlist=code_iata;title


Result (JSON)
{
	"api":"airline",
	"version":1,
	"command":"info",
	"num_results":1,
	"result_type":"valid",
	"results_limit":5,
	"rate_limit":
	{
		"airlines":
		{
			"current":11,
			"maximum":5
		}
	},"result":
		[
			{
				"code_iata":"QF",
				"title":"Qantas"
			}
		]
	}
}


https://www.avdelphi.com/api/1.0/airlines.svc?api_key=TESTAPIKEY&api_password=TESTAPIKEYPASSWORD&cmd=info&code=qfa&itemlist=code_iata;title&format=csv


Result (CSV)
#api=airline
#version=1
#command=id
#result_type=valid
#code,code_iata,operator_icao,flight_codes
QFA,QF,QFA,QF



https://www.avdelphi.com/api/1.0/airlines.svc?api_key=TESTAPIKEY&api_password=TESTAPIKEYPASSWORD&cmd=info&code=qfa&itemlist=code_iata;title&format=xml


Result (XML)
<?xml version="1.0"?>
  <data>
     <api>airline</api>
     <version>1</version>
     <command>info</command>
     <num_results>1</num_results>
     <result_type>valid</result_type>
     <results_limit>5</results_limit>
     <rate_limit>
     	<airlines>
     		<current>3</current>
     		<maximum>5</maximum>
     	</airlines>
     </rate_limit>
     <result>
     	<item0>
     		<code_iata>QF</code_iata>
     		<title>Qantas</title>
     	</item0>
     </result>
  </data>

Pricing

Access to this API is based on a per Operator per month pricing plan. Volume discounts apply. Contact your API team using the contact form below to create or edit your plan.

Mandatory Parameters

api_key

TypeMandatory
ContentHexadecimal value of your API key.
Get your API key here if you don't have one.
Case sensitiveYES
Example
api_key=NTlhZGUl7kZW

Back to top 

api_password

TypeMandatory (You must send either password or access token with each request)
ContentHexadecimal value of your API password.
Get your API key here if you don't have one.
Case sensitiveYES
Example
api_password=ciUyQmdPWTJaTGNQc2pkU05tRlVNaWZZ11NpdCUyRmVpVEF6THBm7SUzRA

Back to top 

api_access_token

TypeMandatory (You must send either password or access token with each request)
ContentHexadecimal value of your API access token.
Click on any API Key here to manage access tokens.
Case sensitiveYES
Example
api_access_token=2d1a099fd880c0fcfd6fd5e63a769e11b2c2db92

Back to top 

cmd

TypeMandatory
ContentAPI command to execute
Case sensitiveNo
Command Purpose
news Show any recent news items relating to this airline or operator.
info Retrieve information about a specific airline or operator. The list of data fields returned is specified using the itemlist parameter.
Example
cmd=news
cmd=info

Back to top 

news

FunctionShow any recent news items relating to this airline or operator.
Search ParameterUse any ONE of the following parameters to specify which airport to return data for.

ParameterDescription
codeOperators 3 letter code.
operator_icaoThe 3 letter ICAO allocated identification code for this operator.
Back to commands 

info

FunctionRetrieve information about a specific airline or operator. The list of data fields returned is specified using the itemlist parameter.
Search ParameterUse any ONE of the following parameters to specify which airport to return data for.

ParameterDescription
codeOperators 3 letter code.
code_iata2 letter IATA allocated identification code for this operator.
operator_icaoThe 3 letter ICAO allocated identification code for this operator.
operator_certNumOperators certificate number (short)
operator_certNum_longOperators certificate number (long)
iata_accounting_code_pax
iata_airline_prefix_codeThe IATA allocated accounting code for the operator. The same number can be used for cargo documentation and is known as an "airline prefix".
license_numberLicense Number
short_nameShort name for this operator. This is usually the name commonly used for the operator.
titleThe longer, more formal title of the operator.
aoc_idAir Operators Certificate ID
Back to commands 

Optional Parameters

format

TypeOptional
ContentSpecifies the data return format JSON,XML or CSV(-). By default, data is returned as JSON.
Case sensitiveNo
Example
format=xml
format=csv
format=csv-
format=json

Back to top 

itemlist

TypeOptional depending on command used. Some commands return default data, others allow you to specify which fields to return.
ContentList of fields to retrieve separated with semi-colons.
Case sensitiveNo
Fieldname Description
code Operators 3 letter code.
code_iata 2 letter IATA allocated identification code for this operator.
flight_codes The usual 2 letter code at the beginning of flights operated by this operator.
operator_icao The 3 letter ICAO allocated identification code for this operator.
iata_accounting_code_pax
iata_airline_prefix_code The IATA allocated accounting code for the operator. The same number can be used for cargo documentation and is known as an "airline prefix".
short_name Short name for this operator. This is usually the name commonly used for the operator.
title The longer, more formal title of the operator.
callsign The callsign normally used by ATC when referring to this operator.
country The country name where the operator is registered.
country_iso The 3 letter ISO country code for the country name where the operator is registered.
license_number License Number
operator_certnum Operators certificate number (short)
operator_certnum_long Operators certificate number (long)
aoc_id Air Operators Certificate ID
Example
itemlist=code;code_iata;flight_codes

Back to top