XML FLIGHT DATA
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 | Mandatory. IATA code that indicates what airport you receive data for. | airport=OSL |
TimeFrom | Optional, default value 1 hour. Indicates how far back in time flights | TimeFrom=2 |
TimeTo | Optional, default value 7 hours. Indicates how far forward in time flights | TimeTo=5 |
direction | Optional. Indicates direction of flight: A = "Arrivals", D = "Departures". | direction=D |
lastUpdate | Optional. Only 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, | ”2024-08-09T07:05:00Z” |
uniqueId | Always included. Attribute for the element flight, | "1617049968" |
flightId | Always included. Sub-element of ”flight”, | "SK4167" |
dom_int | Always included. Shows whether the flight | "D" |
schedule_time | Always included. Arrival/departure date/time. | "2024-08-09T07:05:00Z" |
arr_dep | Always included. Indicates arrival or departure. | "D" |
airport | Always included. Indicates IATA code for arrival | "BGO" |
airline | Always included. Indicates IATA code for airline. | "VF" |
via_airport | Conditional. Indicates any stops during the flight | "SVG, BOO" |
check_in | Conditional. Indicates check-in area when set. | "1 2 3" |
gate | Conditional. Indicates gate number. | "B32" |
status code | Conditional. Attribute "code" in element status | A = " Arrived" C = " Cancelled" D = " Departed" E = " New time" N = " New info" |
status time | Conditional. Attribute "time" in element status | "2024-08-09T07:05:00Z" |
belt_number | Conditional. Indicates what carousel is in use | "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 |