Current Version
By default, all requests will receive the v1 of the API. We encourage you to explicitly request this version via the Accept
header.
Versions
Currently, there exists one version of the Norwegian Routes API: the v1 version.
By default, all requests receive the v1 version. We encourage you to explicitly request this version via Accept
header.
Media Types
Custom media types are used in the API to let consumers choose the format of the data they wish to receive. This is done by adding one or more of the following types to the
header when you make a request. Media types are specific to resources, allowing them to change independently and support formats that other resources don’t.Accept
All Norwegian Routes media types look like this:
application/vnd.nas.routes[.version].param[+json]
The most basic media types the API supports are:
application/json application/vnd.nas.routes.v1+json
Important
|
the default version of the API may change in the future. If you’re building an application and care about the stability of the API, be sure to request a specific version in the Accept header as shown in the examples below.
|
You can specify a version like so:
application/vnd.nas.routes.v1+json
You can check the current version through every response’s contentType header:
Routes
GET
|
|
Routes information.
Routes - exclude transits
The routes endpoint does not include transits by default.
Request
Response
Name | Type | Required | Default | Description |
---|---|---|---|---|
|
|
Yes |
None |
Routes information |
|
|
Yes |
None |
Departure (origin) airport code |
|
|
Yes |
None |
Arrival (destination) airport code |
Routes - include transits
The routes
endpoint does not include transits by default. If you want transits to be included you have to set the includeTransit
flag to true
.
Request
Response
Name | Type | Required | Default | Description |
---|---|---|---|---|
|
|
Yes |
None |
Routes information |
|
|
Yes |
None |
Departure (origin) airport code |
|
|
Yes |
None |
Arrival (destination) airport code |
|
|
No |
None |
Flight segment - departure (origin) airport code |
|
|
No |
None |
Flight segment - arrival (destination) airport code |