{
  "openapi": "3.0.1",
  "info": {
    "title": "VesselFinder Scraper: Ship IMO, MMSI, Position & Fleet Monitor",
    "description": "Scrape VesselFinder by IMO, MMSI, vessel name or URL and get full public particulars plus live voyage data: type, flag, tonnage, dimensions, destination, ETA, speed, course and navigation status. Monitor a whole fleet on a schedule and get only what changed. Export to JSON, CSV or Excel. No API key.",
    "version": "0.1",
    "x-build-id": "E88fH8GUkNcxFjdBs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~vesselfinder-ship-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-vesselfinder-ship-tracker",
        "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/getascraper~vesselfinder-ship-tracker/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-vesselfinder-ship-tracker",
        "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/getascraper~vesselfinder-ship-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-vesselfinder-ship-tracker",
        "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 (IMO, MMSI or URL)",
            "type": "array",
            "description": "Vessels to look up directly, one per line: a 7-digit IMO number, a 9-digit MMSI number, or a VesselFinder vessel URL (https://www.vesselfinder.com/vessels/details/9839179). A value that is a name instead of a number is searched by name.",
            "default": [
              "9839179",
              "9928188"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search by vessel name",
            "type": "array",
            "description": "Vessel names to search for, one per line (for example MAERSK or Ever Given). Each name is resolved to matching vessels on VesselFinder, up to the per-term limit below. Unlike single-IMO lookups, this finds a ship when you only know its name.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max vessels to save",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "The most vessel records to save in one run. Kept low by default so a scheduled run stays fast and cheap; raise it for a larger fleet.",
            "default": 10
          },
          "maxSearchResultsPerTerm": {
            "title": "Max matches per search name",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "For each name in Search by vessel name, how many matching vessels to take from the results list before reading their details.",
            "default": 10
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name a watchlist to turn this run into a fleet monitor: the next run with the same name reports each vessel as NEW, UPDATED (with the fields that changed and their previous values) or UNCHANGED. Leave blank for a one-off lookup. This is the recurring fleet-tracking mode the single-lookup scrapers do not offer."
          },
          "onlyChanged": {
            "title": "Save only changed vessels",
            "type": "boolean",
            "description": "When monitoring, save only the vessels that are new or whose tracked fields changed since the last run, and skip the unchanged ones. Turns a scheduled run into a change feed for your fleet.",
            "default": false
          },
          "trackedChanges": {
            "title": "What counts as a change",
            "type": "array",
            "description": "Which groups of fields make a vessel count as changed: voyage (destination, route, ETA, navigation status), position (speed, course, draught, last port) or particulars (name, type, flag, tonnage, dimensions). Voyage is the default because raw speed and position move on every report.",
            "items": {
              "type": "string",
              "enum": [
                "voyage",
                "position",
                "particulars"
              ],
              "enumTitles": [
                "Voyage (destination, route, ETA, status)",
                "Position (speed, course, draught, last port)",
                "Particulars (name, type, flag, tonnage, size)"
              ]
            },
            "default": [
              "voyage"
            ]
          },
          "notifyOnNoChanges": {
            "title": "Notify even when nothing changed",
            "type": "boolean",
            "description": "Send the notification webhook on every run, including runs where no vessel changed. Off by default so you are only pinged when your fleet actually moves.",
            "default": false
          },
          "notificationWebhookUrl": {
            "title": "Notification webhook URL",
            "type": "string",
            "description": "An HTTPS URL that receives a small JSON summary (run id, saved count, monitor counts) when a run finishes. Must be a public HTTPS address; local and private addresses are refused."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy used to reach VesselFinder. Datacenter Apify Proxy is the default and is enough for this site; only switch to residential if datacenter requests start getting blocked.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}