Updates to our APIs (2023-07-03)
New AIS endpoint to search for vessels by name:
See API documentation for details: https://historic.ais.barentswatch.no/index.html
New AIS endpoint to search for vessels by name:
See API documentation for details: https://historic.ais.barentswatch.no/index.html
Sustainability in Aquaculture API:
/v1/geodata/bki/dataset/valueslaughteredFishhealth API:
/v1/geodata/fishhealth/locality/diseasezonehistory/{localityNo}/{year}/{week} replaces the endpoint /v1/geodata/fishhealth/locality/diseasezonehistory/{localityNo}, which will be removed after 15th June 2023.See API documentation for details.
We have released a new API for AIS tracks. You can get the tracks for a vessel the last 24 hours, or for a specified time period. This API is an addition to the AIS Live API, which has the lastest position of vessels.
https://historic.ais.barentswatch.no/
You can see the API in action in the new NAIS application: https://nais.kystverket.no
New streaming AIS API have been released. Documentation and more information can be found here: AIS .
Announcement in Norwegian: https://www.barentswatch.no/artikler/tilbyr-apne-ais-data/
The new API will continue to be developed with additional endpoints. At the same time the old AIS API is now deprecated, and we encourage everyone to migrate to the new API.
New endpoint in the Fishhealth API:
We have updated the documentation for application registration and authentication. It is now possible to log in with your own client_id to the OpenAPI documentation. Read more here: Application registration and authentication.
Updated endpoints:
Added new property 'isSlaughterHoldingCage' to these endpoints:
Added municipality info to this endpoint:
Changed when downloading Fishhealth Excel/CSV:
'Brakklagt' column is now called 'Trolig uten fisk'
New Fishhealth APIs
VesselTrackWeek apis replace the WellBoatWeek apis. VesselTrackWeek tracks all wellboats as before, but also other vessels that have been at an aquaculture site.
Endpoints:
The WellBoatWeek API is marked as obsolete, and will be removed after 4. May 2021.
New Waveforecast APIs
Get wind forecast along a fairway:
Along a predefined fairway: https://www.barentswatch.no/bwapi/openapi/index.html?urls.primaryName=Waveforecast%20API#/FairwayWeather/get_v1_geodata_fairway_wind__modelName___fairwayId___time_
Along a custom fairway: https://www.barentswatch.no/bwapi/openapi/index.html?urls.primaryName=Waveforecast%20API#/FairwayWeather/post_v1_geodata_fairway_custom_wind
To access the BarentsWatch API it is mandatory to register and use a token, as documented here: Application registration and authentication .
Today this policy is enforced, and unauthenticated requests will recieve a 401 HTTP status code. If you get this error, you need to self-register a client, and pass an access token with your requests.
Due to a new data source for ISA and PD diseases, there will be changes in this endpoint:
/v1/geodata/fishhealth/locality/{localityId:int}/{year:int}/{week:int}
The "ilaPd" property will be null for all localities from week 45, 2020. The new property "ilaPdCase" will have the information about diseases.
This endpoint has a new data model:
"ilaPdCase": [
{
"id": "PD2020-67",
"localityNo": 20815,
"disease": "PD",
"subtype": "SAV3",
"disproved": false,
"suspectedDate": "2020-05-05T02:00:00+02:00",
"confirmedDate": null,
"emptiedDate": null,
"closedDate": null,
"disprovedDate": null,
"createdDate": null,
"changedDate": "2020-05-05T02:00:00+02:00"
}
]
The change of the API will take effect 7 th January 2021. The API documentation will also be updated this date. If you need documentation earlier, please contact us.
As previously announced, the old apis at /api have been removed today. Use /bwapi as described here: The old API will be removed 1st October 2020. The exception is chart plotter APIs, which are still open.
The ports API is also removed, as announced here: The Ports API will be removed 1st October 2020 .
New endpoints Fishhealth:
V2 version of these endpoints with epsg:4326 coodinate system.
Corresponding V1-endpoints are deprecated, and will be removed after 1. january 2021.
New endpoint FiskInfo:
Download Andøya Firing Range data to chart plotter format: https://www.barentswatch.no/bwapi/openapi/index.html?urls.primaryName=FishInfo%20API#/Download/get_v1_geodata_download_andoya_firing_range_danger_zone
Modified nedpoint FiskInfo:
These endpoints would previously return an empty object if the request was not authorized. It will now return 401 if the request is not authorized:
New endpoints AIS:
V2 version of these endpoints, where more of the model is nullable:
Corresponding V1-endpoints are deprecated, and will be removed after 1. january 2021.