Flight data

You can use some of the content on the Avinor website for your own services without having to pay for it.

XML FLIGHT DATA

Disclaimer change in url and xml

 

Changes in url and parameters for the xml feeds:

  • Description of differences URL and parameters for the new XMLFeeds are case sensitive. If the URL contain incorrect capitalization, the query will fail.
    • If the parameters are not correctly capitalized, the parameter will not be evaluated, and its default value will be used.
  • Estimated times will be updated earlier and more frequently.

 

 

 

Technical Description

The source data for these services is the same as that used for our own internet solutions, on information screens at airports and with partners such as the Airport Express Train and NRK. The services do not contain data from private airports such as Sandefjord Airport, Torp.

The technical specifications of the data services we offer are laid out below. Note that the descriptions are aimed at people familiar with XML files. You will find descriptions of the following xmlfeeds

xmlfeed

Description

asrv.avinor.no/XmlFeed/v1.0

Flights to and from Avinor operated airports

asrv.avinor.no/flightStatuses/v1.0

Status of flights

asrv.avinor.no/airlineNames/v1.0

Name and IATA code for airlines

asrv.avinor.no/airportNames/v1.0

Name and IATA code for airports

 

NB: Please be aware that the links and parameters are all Case Sensitive. If you fail to use the correct UPPER/lower case, the link will fail and the parameters will not be evaluated.

 

Flight information (including updated traffic status) - asrv.avinor.no/XmlFeed/v1.0

This service provides you with access to the flight schedules for Avinor’s 43 airports, as well as continuously updated traffic status.

To ensure that you are offering your end users accurate/up-to-date flight data, you should retrieve flight schedules every three minutes. It is not necessary to retrieve data more frequently than this. We urge all those using data from Avinor to cache the data on their own service and not let the client (end user) go directly to our service. 

Input parameters

Parameter

Description

Examples

airport

MandatoryIATA code that indicates what airport you receive data for.

airport=OSL

TimeFrom

Optionaldefault value 1 hour. Indicates how far back in time flights
are retrieved for, rounded down to closest hour.

TimeFrom=2

TimeTo

Optionaldefault value 7 hours. Indicates how far forward in time flights
are retrieved for, rounded down to closest hour
.

TimeTo=5

direction

OptionalIndicates direction of flight: A = "Arrivals", D = "Departures".
No value gives both arrival and departure.

direction=D

lastUpdate

OptionalOnly retrieve flighs updated after the set date/time.

lastUpdate=2024-08-08T09:30:00Z

 codeshare  

Optional. If set then codeshare info is added to flight. Codeshare info consists of codeshareAirlineDesignators, codeshareAirlineNames, codeshareFlightNumbers and codeshareOperationalSuffixs.

codeshare=Y

  serviceType  

Optional. Possibility to add helicopter flights with servicetype (“E”) parameter. Helicopter flights will be included in the result, in addition to schedule flights with servicetype ‘J’ (Schedule passenger) and ‘C’ (Charter passenger).

serviceType=E

Query example: 

asrv.avinor.no/XmlFeed/v1.0?TimeFrom=1&TimeTo=7&airport=OSL&direction=D&lastUpdate=2024-08-08T09:30:00Z

The query retrieves changes to departures at Oslo Airport for the previous hour and up to seven hours ahead and only flights updated after the specified date/time.

Description of attributes:

The parent element of the XML document is named “airport”. This element has a child element named “flights”, which itself contains elements of the type named ‘flight’.

Attribute

Description

Examples

lastUpdate

Always included. Attribute for the element flight,
indicates time for last change of flight data for
selected airport.

”2024-08-09T07:05:00Z”

uniqueId

Always included. Attribute for the element flight,
indicates a unik ID for a flight, max 12 characters

"1617049968"

flightId

Always included. Sub-element of ”flight”,
indicates ID for a flight.

"SK4167"

dom_int

Always included. Shows whether the flight
is Domestic (D), International (I) or Schengen (S).

"D"

schedule_time

Always included. Arrival/departure date/time.

"2024-08-09T07:05:00Z"

arr_dep

Always included. Indicates arrival or departure.
A = "Arrival", D = "Departure".

"D"

airport

Always included. Indicates IATA code for arrival
or departure airport, dependent on arr_dep
attribute. See also separate service for airport
codes/names below.

"BGO"

airline

Always included. Indicates IATA code for airline.
See also separate service for airline
codes/names below.

"VF"

via_airport

Conditional. Indicates any stops during the flight
to the final destination, max. 10 IATA codes
separated by a comma «,».

"SVG, BOO"

check_in

Conditional. Indicates check-in area when set.

"1 2 3"

gate

Conditional. Indicates gate number.
Can contain both letters and numbers.

"B32"

status code

Conditional. Attribute "code" in element status
indicates the status text for a flight. Please note
that status text can be changed without prior notice.
See separate service for flight status below.

A = " Arrived"

C = " Cancelled"

D = " Departed"

E = " New time"

N = " New info"

status time

Conditional. Attribute "time" in element status
indicates the time for when the current status
was set.

"2024-08-09T07:05:00Z"

belt_number

Conditional. Indicates what carousel is in use
for the flight.

"9"

 

Time data
All time data are given in UTC (Wikipedia: UTC, CET) and are in ISO 8601 (Wikipedia: ISO 8601 format) [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]Z. Please remember to correct for our time zone, as well as for daylight savings.

E.g.: 2009-12-31T16:00:00 corresponds to 31 December 2009, 17:00 local time Norway (CET), while 2009-06-23T16:00:00 corresponds to 23 June 2009, 18:00 local time in Norway (DST).

 

 

 

 

Flight Statuses - asrv.avinor.no/flightStatuses/v1.0

The service provides you with status text for the status codes associated with a flight.

It should not be necessary to send a query to the service more frequently than every 24 hours to guarantee up-to-date information. 

Input parameters

Parameter

Description

Examples

code

Show only selected code

code=N

Query example:

asrv.avinor.no/flightStatuses/v1.0?code=D

 

 

 

Airport name - asrv.avinor.no/airportNames/v1.0

This service provides access to the names and IATA codes of Norwegian and international airports.

It should not be necessary to send a query to the service more frequently than every 24 hours to guarantee up-to-date information.

Input parameters

Parameter

Description

Examples

airport

Optional – Show only selected airport

airport=OSL

shortname

Optional – Include a short name for the airport in the result

shortname=Y

 Query example:

asrv.avinor.no/airportNames/v1.0?airport=BGO&shortname=Y

 

 

 

Airline name - asrv.avinor.no/airlineNames/v1.0

This service provides you access to the names and IATA codes of Norwegian and international airlines.

It should not be necessary to send a query to the service more frequently than every 24 hours to guarantee up-to-date information. 

Input parameters

Parameter

Description

Examples

 

There are no parameters available for this xmlfeed