Documents

API Test Results

🐟 Fiskeridir API Test

Testing fish farm data from Norwegian Directorate of Fisheries

✅ Check the server console for detailed Fiskeridir test results

Testing various API formats to debug the Fiskeridir API response

🚢 Barentswatch AIS API Test

Testing real-time vessel tracking data from Barentswatch

Success

Successfully connected to Barentswatch AIS API

🚢 Found 4292 vessels in test area (Lofoten Islands)

⚙️ Environment Configuration

Required environment variables for API integration

Required in .env.local:

# Barentswatch API Configuration
BARENTSWATCH_CLIENT_ID=Christer@codenord.no:codenord-v1
BARENTSWATCH_CLIENT_SECRET=your-client-secret-here
BARENTSWATCH_AUTH_URL=https://id.barentswatch.no/connect/token

# AIS API Configuration  
AIS_API_BASE_URL=https://live.ais.barentswatch.no/live
AIS_API_SCOPE=ais

Next Steps:

  1. Add a client secret in the Barentswatch developer portal
  2. Copy the client secret to your .env.local file
  3. Restart the development server
  4. Refresh this page to test the connection