{
  "openapi": "3.0.1",
  "info": {
    "title": "Vessel Sanctions Screening API: Maritime Risk, Owners, IMO",
    "description": "Vessel sanctions screening and maritime compliance risk from the Windward API: screen ships by IMO or MMSI for sanctions, risk level, dark activity, owners and managers, screen shipping companies and their fleets, and search vessels by name. Bring your own key.",
    "version": "0.1",
    "x-build-id": "ajh389i8SUlLHG9Qx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~vessel-risk-sanctions-screening-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-vessel-risk-sanctions-screening-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nabeelbaghoor~vessel-risk-sanctions-screening-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-vessel-risk-sanctions-screening-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nabeelbaghoor~vessel-risk-sanctions-screening-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-vessel-risk-sanctions-screening-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to run",
            "enum": [
              "vesselScreening",
              "companyScreening",
              "vesselSearch"
            ],
            "type": "string",
            "description": "Vessel screening checks each IMO number or MMSI for sanctions and compliance risk: risk level, sanction programs, risk indicators such as dark activity, sanctions list entries and the current owner, beneficial owner, managers and operator with their own risk. Company screening searches shipping companies by name and returns their risk, sanctions and fleet. Vessel search finds vessels by name, IMO, MMSI or former name, for when you do not have the IMO number yet.",
            "default": "vesselScreening"
          },
          "imos": {
            "title": "IMO numbers",
            "type": "array",
            "description": "Vessel screening only. One seven digit IMO number per line, such as 9515539 (an IMO prefix is fine). Up to 1000 per run together with MMSIs; duplicates are screened once.",
            "items": {
              "type": "string"
            }
          },
          "mmsis": {
            "title": "MMSIs",
            "type": "array",
            "description": "Vessel screening only. One nine digit MMSI per line, such as 273292290. Windward matches each MMSI to the vessels that used it, so one MMSI can return more than one vessel when it was reused.",
            "items": {
              "type": "string"
            }
          },
          "includeOwnershipHistory": {
            "title": "Include ownership history",
            "type": "boolean",
            "description": "Vessel screening only. Adds every registered owner, beneficial owner, commercial manager, operator, commercial controller, technical manager and ISM manager of the past year, with each company's risk level.",
            "default": false
          },
          "includePortCalls": {
            "title": "Include last port call and destination",
            "type": "boolean",
            "description": "Vessel screening only. Adds the most recent port call (port, country, start and end) and the transmitted destination.",
            "default": false
          },
          "includePscInspections": {
            "title": "Include port state control inspections",
            "type": "boolean",
            "description": "Vessel screening only. Adds the port state control inspections on record: date, port, MOU, inspection type, result and number of deficiencies.",
            "default": false
          },
          "includeAiSummary": {
            "title": "Include MAI Expert vessel summary",
            "type": "boolean",
            "description": "Vessel screening only. Adds Windward's generative AI risk summary of the vessel. Needs the MAI Expert permission on your Windward project and counts against its monthly per vessel quota.",
            "default": false
          },
          "includeAdverseMedia": {
            "title": "Include MAI Expert adverse media",
            "type": "boolean",
            "description": "Vessel screening only. Adds Windward's adverse media answer for the vessel with its source links. Needs the MAI Expert permission on your Windward project and counts against its monthly per vessel quota.",
            "default": false
          },
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "Company screening only. One shipping company name per line, such as Marine Trans Shipping. Up to 200 per run.",
            "items": {
              "type": "string"
            }
          },
          "companyMatchesPerName": {
            "title": "Companies per name",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Company screening only. How many matching companies Windward returns for each name (the limit argument).",
            "default": 5
          },
          "includeFleet": {
            "title": "Include fleet",
            "type": "boolean",
            "description": "Company screening only. Adds the company's fleet as vessel, role, start and end date entries, with each vessel's risk level and sanctioned flag, and counts the fleet and its sanctioned vessels.",
            "default": true
          },
          "fleetRoles": {
            "title": "Fleet roles",
            "type": "array",
            "description": "Company screening only. Which relationships between the company and a vessel count as its fleet. All seven roles by default.",
            "items": {
              "type": "string",
              "enum": [
                "BENEFICIAL_OWNER",
                "OWNER",
                "MANAGEMENT",
                "OPERATOR",
                "COMMERCIAL_CONTROLLER",
                "TECHNICAL_MANAGER",
                "ISM_MANAGER"
              ],
              "enumTitles": [
                "Beneficial owner",
                "Registered owner",
                "Commercial manager",
                "Operator",
                "Commercial controller",
                "Technical manager",
                "ISM manager"
              ]
            },
            "default": [
              "BENEFICIAL_OWNER",
              "OWNER",
              "MANAGEMENT",
              "OPERATOR",
              "COMMERCIAL_CONTROLLER",
              "TECHNICAL_MANAGER",
              "ISM_MANAGER"
            ]
          },
          "includeHistoricalFleet": {
            "title": "Include former fleet",
            "type": "boolean",
            "description": "Company screening only. Also returns relationships that have ended, not just the active ones.",
            "default": false
          },
          "includeUltimateBeneficialOwners": {
            "title": "Include ultimate beneficial owners",
            "type": "boolean",
            "description": "Company screening only. Adds Dun and Bradstreet ultimate beneficial owner data: name, DUNS, country, address, ownership percentage and type. Needs that data on your Windward project.",
            "default": false
          },
          "searchTerms": {
            "title": "Vessel search terms",
            "type": "array",
            "description": "Vessel search only. One vessel name, IMO number, MMSI or former name per line, such as ATLANTIC. The match does not need to be exact. Up to 200 per run.",
            "items": {
              "type": "string"
            }
          },
          "matchesPerTerm": {
            "title": "Matches per term",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Vessel search only. How many suggested vessels Windward returns for each term, 1 to 50.",
            "default": 10
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most rows this run returns and charges for.",
            "default": 100
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Pacing. A rate limit answer is waited out and retried.",
            "default": 60
          },
          "clientId": {
            "title": "Client ID",
            "type": "string",
            "description": "Your own Windward API client ID, issued by Windward with the client secret. Stored as a secret. You can instead set the DATA_API_CLIENT_ID environment secret, or write clientId:clientSecret in the Client secret field."
          },
          "apiKey": {
            "title": "Client secret",
            "type": "string",
            "description": "The client secret that goes with the client ID. The pair is exchanged with the publicAPIToken mutation for an access token, reused for the whole run. You can paste a ready access token here instead and leave the client ID empty. Stored as a secret, sent only to graphql.wnwd.com, never logged. You can instead set the DATA_API_KEY environment secret."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}