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).
| # | Video | Length |
|---|---|---|
| 1 | Getting started | 8:30 |
| 2 | Vessel screening | 6:12 |
| 3 | Company screening | 1:36 |
| 4 | Vessel activity | 2:36 |
| 5 | Area monitoring | 3:30 |
| 6 | Watchlist management | 3:48 |
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:
- 0:00 Welcome
- 0:44 Meet the playground
- 2:04 Queries and mutations
- 2:35 Getting access: the token
- 4:02 How to build a query, step by step
- 5:56 Long lists, page by page
- 6:45 When something goes wrong
- 7:50 Tips
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
}
}