{
  "openapi": "3.0.1",
  "info": {
    "title": "VesselFinder Vessel Scraper - Positions, Voyages, Tracks",
    "description": "Live AIS positions in 18 sea areas from Dover to Singapore; search by name, MMSI or IMO; vessel detail, port calls, registry fields and 24-hour tracks. Six row kinds (position, vessel, voyage, registry, livePosition, trackPoint) with scrapedAt and provenance on every row. No account or API key.",
    "version": "0.1",
    "x-build-id": "EnRPhCj3bobzY6CeN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rl1987~vesselfinder-api-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rl1987-vesselfinder-api-scraper",
        "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/rl1987~vesselfinder-api-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rl1987-vesselfinder-api-scraper",
        "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/rl1987~vesselfinder-api-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rl1987-vesselfinder-api-scraper",
        "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 scrape",
            "enum": [
              "area",
              "search",
              "vessels"
            ],
            "type": "string",
            "description": "Live positions: every vessel currently inside one named sea area (one row per vessel, cheapest per run). Search: vessels matching a name, MMSI or IMO, one row each. Vessels: full detail for specific vessels, plus voyage, registry, live position and optional 24-hour track history as separate row kinds, billed separately.",
            "default": "area"
          },
          "areas": {
            "title": "Sea areas (live positions mode)",
            "type": "array",
            "description": "One row per vessel inside each selected area, at the moment of the run. The boxes are drawn around the world's busy straits, ports and approaches; they are fixed, so two runs over the same area are directly comparable. Measured in one hour at the default zoom: Singapore Strait 2,419 vessels, Taiwan Strait 1,716, Malacca Strait 1,445, Hong Kong 1,412, Rotterdam 1,329, Antwerp 729, Los Angeles 648, Dubai 568, Bosphorus 556, Busan 538, Gibraltar 464, Panama 431, Hamburg 358, New York 301, Santos 151, Suez 141, Western approaches 63, Dover 42. Counts move with the tide and the hour, so treat them as scale, not as a fixed capacity.",
            "items": {
              "type": "string",
              "enum": [
                "dover-strait",
                "west-approaches",
                "north-sea-rotterdam",
                "hamburg-elbe",
                "antwerp-scheldt",
                "gibraltar-strait",
                "bosphorus",
                "suez-canal",
                "dubai-jebel-ali",
                "singapore-strait",
                "malacca-strait",
                "hong-kong",
                "taiwan-strait",
                "busan",
                "panama-canal",
                "new-york-approach",
                "los-angeles",
                "santos"
              ],
              "enumTitles": [
                "Strait of Dover (1.00-1.60E, 50.80-51.20N)",
                "Western Channel approaches (-6.50--5.00E, 48.50-50.00N)",
                "North Sea / Rotterdam approach (3.80-4.60E, 51.80-52.10N)",
                "Hamburg / Elbe approach (9.65-10.15E, 53.42-53.65N)",
                "Antwerp / Scheldt approach (4.10-4.55E, 51.20-51.45N)",
                "Strait of Gibraltar (-6.00--4.80E, 35.60-36.30N)",
                "Bosphorus / Istanbul (28.85-29.20E, 40.95-41.35N)",
                "Suez Canal (32.20-32.70E, 29.80-31.40N)",
                "Dubai / Jebel Ali (54.85-55.45E, 24.85-25.35N)",
                "Singapore Strait (103.40-104.20E, 1.10-1.40N)",
                "Malacca Strait (99.00-104.00E, 2.00-6.00N)",
                "Hong Kong / Pearl River estuary (113.75-114.45E, 22.10-22.50N)",
                "Taiwan Strait (118.00-121.00E, 23.00-26.00N)",
                "Busan / Korea Strait (128.85-129.25E, 34.95-35.25N)",
                "Panama Canal (-80.00--79.20E, 8.60-9.60N)",
                "New York / Ambrose approach (-74.30--73.60E, 40.30-40.80N)",
                "Los Angeles / Long Beach (-118.60--117.80E, 33.50-34.00N)",
                "Santos / Sao Paulo coast (-46.55--46.05E, -24.20--23.85N)"
              ]
            },
            "default": [
              "dover-strait"
            ]
          },
          "mapZoom": {
            "title": "Map zoom",
            "minimum": 2,
            "maximum": 18,
            "type": "integer",
            "description": "How finely the target samples the area. Coverage is NOT monotonic in zoom - the target answers per map tile, so a wide box at a high zoom can come back almost empty. Measured over all 18 areas in one hour: 2,636 rows in total at zoom 8, 5,419 at 10, 8,951 at 11, 5,801 at 12, and 75 at 14 (Singapore Strait: 154 / 865 / 2,419 / 3 at zooms 8 / 10 / 11 / 14). Zoom 14 is the only setting that also carries a heading in whole degrees, so raise it to 14 only for a small box where you want headings more than coverage.",
            "default": 11
          },
          "searchQueries": {
            "title": "Vessel search terms (search mode)",
            "type": "array",
            "description": "Each term is matched against vessel names, and a bare MMSI or IMO also resolves the vessel it belongs to. The target filters rather than ranks: a term that matches nothing returns zero rows, not a page of near matches. Up to 20 vessels come back per term.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "vesselIds": {
            "title": "MMSI or IMO numbers (vessels mode)",
            "type": "array",
            "description": "One vessel per line: a 9-digit MMSI or a 7-digit IMO, both of which appear on the vessel's VesselFinder page. Each vessel costs one request to identify it, one for its detail, and then one per enrichment enabled below.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeVoyage": {
            "title": "Include last and next port call",
            "type": "boolean",
            "description": "One extra request per vessel, delivered as a separate voyage row: departure port, port event and time, next port and its ETA. Billed per row, so a run that does not want port calls saves the charge by unticking it.",
            "default": true
          },
          "includeRegistry": {
            "title": "Include registry master data",
            "type": "boolean",
            "description": "One extra request per vessel for the static registry record. Expect most of it to come back withheld: the target answers about 28 of its 48 fields with a literal 'locked' or 'lockedSat' for an anonymous client, and this Actor reports which ones by name rather than dropping them.",
            "default": true
          },
          "includeLivePosition": {
            "title": "Include a timestamped live position",
            "type": "boolean",
            "description": "One extra request per vessel for its position with a speed and a timestamp - the detail row already carries a position, but not a per-vessel timestamp of its own. Billed as its own row kind.",
            "default": true
          },
          "includeTrack": {
            "title": "Include 24-hour track history",
            "type": "boolean",
            "description": "One extra request per vessel for its track, delivered as 200-300 rows (one per five-minute report over the last 24 hours). Off by default because it is the only option here that costs hundreds of rows per vessel instead of one; a 20-vessel run with this on delivers about 5,000 rows.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows have been DELIVERED (0 = no limit). Counted by the billing ledger after de-duplication and after rows the target answered with nothing were dropped, so it limits what you receive and pay for, not what the target returned. In vessels mode with track history on, this is the setting that stops the run.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Max number of requests processed in parallel.",
            "default": 5
          },
          "maxRequestsPerCrawl": {
            "title": "Max requests per run",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on total requests, including the ones the enrichments queue. 0 = unlimited. One vessel costs 2 requests plus one per enrichment; a 14-area run costs 14.",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "type": "integer",
            "description": "Retries per request before it is marked failed. Does NOT bound retries caused by a blocked or rate-limited status code (401/403/429) - see maxSessionRotations for that.",
            "default": 5
          },
          "maxSessionRotations": {
            "title": "Max session rotations",
            "minimum": 0,
            "type": "integer",
            "description": "Retries for a blocked or rate-limited status code, each with a fresh session/proxy. The target answers a plain request with HTTP 403, so this budget is the one that matters when it starts refusing.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy or your own proxies. The target refuses this datacenter IP with a bare request but serves a browser-like one; use residential proxies if a run starts seeing 403s.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}