API Video Tutorials

Learn the Windward API in short videos. Getting started covers the basics, and each topic video shows one use case, step by step. All videos have English captions (CC).


Getting started

Start here. Meet the playground, learn the difference between a query and a mutation, and get your access token (valid for 30 minutes). Then build your first query by clicking in the documentation sidebar. The video also shows how to read long lists page by page, what to do when a request fails, and a few tips.

Jump to:

Show the queries

Get your token

mutation PublicAPIToken($clientId: String!, $clientSecret: String!) {
  publicAPIToken(clientId: $clientId, clientSecret: $clientSecret)
}

Variables:

{
  "clientId": "<your client ID>",
  "clientSecret": "<your client secret>"
}

Send the token in the header of every request. It's valid for 30 minutes.

{
  "Authorization": "Bearer <your token>"
}

Your first query

query VesselByIMO($imo: String!) {
  vesselByIMO(imo: $imo) {
    flag
    imo
    name
  }
}

Variables:

{
  "imo": "8749597"
}

Vessel screening

Is a vessel risky, is it sanctioned, and who owns it? Check one vessel by IMO, check a list of vessels in one request, find a vessel when you only have its MMSI, and list all vessels at a given risk level, page by page.

Show the queries

Check one vessel

query VesselByIMO($imo: String!) {
  vesselByIMO(imo: $imo) {
    flag
    imo
    name
    owner {
      company {
        countryEnum
        name
      }
    }
    riskAssessment {
      complianceRisk {
        isSanctioned
        level
        riskySince
      }
    }
  }
}

Variables:

{
  "imo": "9418494"
}

Check a list of vessels

query VesselsByIMOs($imos: [String!]!) {
  vesselsByIMOs(imos: $imos) {
    flag
    imo
    name
    riskAssessment {
      complianceRisk {
        isSanctioned
        level
      }
    }
  }
}

Variables:

{
  "imos": ["9418494", "8749597"]
}

Find a vessel by MMSI

query VesselsByMMSI($mmsi: String!) {
  vesselsByMMSI(mmsi: $mmsi) {
    flag
    imo
    name
  }
}

Variables:

{
  "mmsi": "416058700"
}

List vessels by risk level

query ComplianceRiskBy($input: ComplianceRiskByInput!) {
  complianceRiskBy(input: $input) {
    nodes {
      imo
      isSanctioned
      level
      riskySince
    }
    totalCount
  }
}

Variables:

{
  "input": {
    "filter": {
      "levels": ["Sanctioned"]
    },
    "limit": 3,
    "offset": 0
  }
}

Company screening

Search for a company by name and see its country, how many vessels it has, and its risk level.

Show the query
query SearchCompaniesByName($searchTerm: String, $limit: PositiveInt) {
  searchCompaniesByName(searchTerm: $searchTerm, limit: $limit) {
    complianceRisk {
      level
    }
    countryEnum
    id
    name
    vesselsCount
  }
}

Variables:

{
  "searchTerm": "Sovcomflot",
  "limit": 3
}

Vessel activity

See what a vessel did. Use the vessel timeline to list its port calls over a time range, and learn the date format the API uses (UTC). The timeline also holds other activities, such as meetings at sea and dark activity.

Show the query
query VesselTimeline($input: VesselTimelineInput!) {
  vesselTimeline(input: $input) {
    totalCount
    nodes {
      ... on Activity {
        endDate
        startDate
        type
      }
    }
  }
}

Variables:

{
  "input": {
    "vesselIdOrImo": "9418494",
    "types": [
      {
        "type": "PORT_CALL"
      }
    ],
    "timeRange": {
      "from": "2026-04-20T00:00:00Z",
      "to": "2026-10-20T00:00:00Z"
    },
    "includePropertyChanges": false,
    "limit": 3,
    "offset": 0
  }
}

Area monitoring

Draw an area, such as a port or a zone, and find which vessels were inside it during a time range. Then list the port calls in the same area.

Show the queries

Vessels in an area

query VesselsInArea($input: VesselsInAreaInput!) {
  vesselsInArea(input: $input) {
    totalCount
    nodes {
      class
      flag
      imo
      name
    }
  }
}

Variables:

{
  "input": {
    "area": {
      "type": "Polygon",
      "coordinates": [[[3.98, 51.9], [4.12, 51.9], [4.12, 51.99], [3.98, 51.99], [3.98, 51.9]]]
    },
    "timeRange": {
      "from": "2026-10-19T22:00:00Z",
      "to": "2026-10-20T06:00:00Z"
    },
    "limit": 5,
    "offset": 0
  }
}

Port calls in the area

query ActivitiesInPolygon($input: ActivitiesInPolygonInput!) {
  activitiesInPolygon(input: $input) {
    totalCount
    nodes {
      endDate
      startDate
      type
      vessel {
        imo
        name
      }
    }
  }
}

Variables:

{
  "input": {
    "type": "PORT_CALL",
    "polygon": {
      "type": "Polygon",
      "coordinates": [[[3.98, 51.9], [4.12, 51.9], [4.12, 51.99], [3.98, 51.99], [3.98, 51.9]]]
    },
    "timeRange": {
      "from": "2026-09-20T00:00:00Z",
      "to": "2026-10-20T00:00:00Z"
    },
    "limit": 3,
    "offset": 0
  }
}

Watchlist management

Manage your own list of vessels of interest (a VOI) with mutations: create a list, add and remove vessels, rename it, and read your lists. A list holds up to 4,000 vessels. Lists can't be deleted with the API.

Show the queries

Create a list

mutation CreateVoi($name: String!) {
  createVoi(name: $name) {
    id
    name
    totalVessels
  }
}

Variables:

{
  "name": "My watchlist"
}

Add vessels

mutation AddVesselsToVoiByImo($id: ObjectId!, $imos: [String!]!) {
  addVesselsToVoiByImo(id: $id, imos: $imos) {
    id
    name
    totalVessels
  }
}

Variables:

{
  "id": "<your list ID>",
  "imos": ["9418494", "8749597"]
}

Remove a vessel

mutation RemoveVesselsFromVOIByIMOs($voiId: ObjectId!, $imos: [String!]!) {
  removeVesselsFromVOIByIMOs(voiId: $voiId, imos: $imos) {
    id
    name
    totalVessels
  }
}

Variables:

{
  "voiId": "<your list ID>",
  "imos": ["8749597"]
}

Rename the list

mutation UpdateVoi($id: ObjectId!, $voi: VOIInput!) {
  updateVoi(id: $id, voi: $voi) {
    id
    name
    totalVessels
  }
}

Variables:

{
  "id": "<your list ID>",
  "voi": {
    "name": "My watchlist renamed"
  }
}

Read your lists

query ProjectVOIs {
  projectVOIs {
    id
    name
    totalVessels
  }
}