{
  "openapi": "3.0.1",
  "info": {
    "title": "Vessel Tracker & Watchlist Alerts: ETA, Destination, Departures",
    "description": "Watch a list of ships by IMO or MMSI and get only what changed since the last run: new destination, ETA slips, departures, arrivals, draught up/down (loaded or discharged), renames and reflags, each with the previous value. From VesselFinder, no login.",
    "version": "0.1",
    "x-build-id": "sC0cQLNFeTAwKa9Qc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~vessel-watchlist-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-vessel-watchlist-monitor",
        "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/yugenox~vessel-watchlist-monitor/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-vessel-watchlist-monitor",
        "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/yugenox~vessel-watchlist-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-vessel-watchlist-monitor",
        "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": {
          "vessels": {
            "title": "Vessels to watch (IMO, MMSI or VesselFinder links)",
            "type": "array",
            "description": "Your watchlist: IMO numbers (7 digits), ship MMSI numbers (9 digits) or VesselFinder vessel page links, one per line. Invalid numbers are skipped and never charged.",
            "default": [
              "9524231",
              "9342516",
              "9811000"
            ],
            "items": {
              "type": "string"
            }
          },
          "watchName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "The actor remembers each vessel between runs under this name. Use a different name for each separate watchlist; keep the same name on a schedule.",
            "default": "default"
          },
          "includeUnchanged": {
            "title": "Include unchanged vessels",
            "type": "boolean",
            "description": "Also save one UNCHANGED row per vessel that did not change, for a full status table every run. Off = only changes (and BASELINE rows the first time a vessel is seen).",
            "default": false
          },
          "events": {
            "title": "Change types to report",
            "type": "array",
            "description": "Leave empty for all of: NEW_DESTINATION, ETA_CHANGED, DEPARTED, ARRIVED, DRAUGHT_UP, DRAUGHT_DOWN, RENAMED, REFLAGGED. Add NOT_HEARD to also flag ships whose free AIS position went quiet.",
            "items": {
              "type": "string"
            }
          },
          "etaHours": {
            "title": "ETA change threshold (hours)",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "Report ETA_CHANGED when the ETA moves by at least this many hours.",
            "default": 6
          },
          "draughtMeters": {
            "title": "Draught change threshold (metres)",
            "type": "string",
            "description": "Report DRAUGHT_UP / DRAUGHT_DOWN when the reported draught moves by at least this many metres (e.g. 0.5).",
            "default": "0.5"
          },
          "notHeard": {
            "title": "Report NOT_HEARD",
            "type": "boolean",
            "description": "Flag ships that had a fresh position last run but none for the hours below. Free positions come from land-based receivers, so ships crossing an ocean also go quiet: treat this as a coverage signal.",
            "default": false
          },
          "notHeardHours": {
            "title": "NOT_HEARD after (hours)",
            "minimum": 3,
            "maximum": 1440,
            "type": "integer",
            "description": "Hours without a position before NOT_HEARD is reported.",
            "default": 48
          },
          "seedShipType": {
            "title": "Seed: ship type",
            "type": "string",
            "description": "Optional: add vessels from a VesselFinder search, e.g. 'Crude Oil Tanker', 'Container Ship', 'LNG Tanker' or a type code like 601. Combine with a flag."
          },
          "seedFlag": {
            "title": "Seed: flag",
            "type": "string",
            "description": "Optional: two-letter flag code or country name for the seed search, e.g. MT or Malta."
          },
          "seedMinYear": {
            "title": "Seed: built from year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional: only seed vessels built in or after this year."
          },
          "maxSeed": {
            "title": "Seed: max vessels",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many vessels the seed search adds to the watchlist (20 per search page).",
            "default": 200
          },
          "maxVessels": {
            "title": "Max vessels to check",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety cap on vessels checked per run (each check is charged).",
            "default": 1000
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after saving this many rows. 0 = no limit.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}