Skip to main content

Live AIS API

The Norwegian Coastal Administration's open AIS-data is collected from:

  • The Norwegian Coastal Administration's terrestrial stations in Norway and on Svalbard
  • Offshore stations organized by Equinor
  • Norwegian satellites

The purpose of collecting and sharing AIS data is to improve maritime safety, and to strengthen maritime traffic services and monitoring.

The following limitations on the open AIS data apply:

  • Geographic area within Norwegian economical zone, fiskerivernsonen ved Svalbard and vernesonen ved Jan Mayen (as shown in the map below)
  • No fishing vessels under 15 meters
  • No leisure crafts or sailing vessels under 45 meters
  • No data older than 14 days

Open AIS Area

Documentation

Start using the dataset

Before you start you have to register a user at barentswatch.no, and create an API client on MyPage.

It is easiest to start with curl.

To access the service, you need an access token:

linux
curl -X POST https://id.barentswatch.no/connect/token \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=YOUR CLIENT ID' \
--data-urlencode 'client_secret=YOUR CLIENT SECRET' \
--data-urlencode 'scope=ais' \
--data-urlencode 'grant_type=client_credentials'
windows
curl -X POST https://id.barentswatch.no/connect/token -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "client_id=YOUR CLIENT ID" --data-urlencode "client_secret=YOUR CLIENT SECRET" --data-urlencode "scope=ais" --data-urlencode "grant_type=client_credentials"

Then you may access the api endpoints with the access token in the header:

linux
curl 'https://historic.ais.barentswatch.no/v1/historic/trackslast24hours/257111020' -H 'Authorization: bearer YOUR ACCESS TOKEN'
windows
curl "https://historic.ais.barentswatch.no/v1/historic/trackslast24hours/257111020" -H "Authorization: bearer YOUR ACCESS TOKEN"