> ## Documentation Index
> Fetch the complete documentation index at: https://docs.datadocked.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Port Calls By Vessel

> Retrieve historical port call data for a specific vessel including arrival/departure times and port information. Costs 5 credits per request. Rate limit: 15 requests/min.

Retrieve historical port call data for a specific vessel including arrival/departure times and port information.

<Info>
  **Credits:** 5 credits per request
</Info>

## Response Data

Returns the vessel's port call history with:

* **Port Name**: Full port name and country
* **Port Sign**: UN/LOCODE (e.g., ESBCN for Barcelona)
* **Arrived**: Arrival date and time
* **Departed**: Departure date and time

## Use Cases

* Track vessel voyage history
* Verify port calls for compliance
* Analyze trade routes and patterns
* Calculate port turnaround times


## OpenAPI

````yaml GET /port-calls-by-vessel
openapi: 3.1.0
info:
  title: Data Docked Maritime API
  description: >-
    A comprehensive maritime data API providing real-time vessel tracking, port
    operations, inspection data, and more. Access AIS data, vessel particulars,
    management information, and historical tracking data.
  version: 1.0.0
  contact:
    name: Data Docked Support
    url: https://datadocked.com/contact
servers:
  - url: https://datadocked.com/api/vessels_operations
    description: Production server
security:
  - apiKey: []
tags:
  - name: Account
    description: Account management endpoints
  - name: Vessel Operations
    description: Vessel data, location, and tracking endpoints
  - name: Port Operations
    description: Port calls and port data endpoints
paths:
  /port-calls-by-vessel:
    get:
      tags:
        - Port Operations
      summary: Port Calls By Vessel
      description: >-
        Retrieve historical port call data for a specific vessel including
        arrival/departure times and port information. Costs 5 credits per
        request. Rate limit: 15 requests/min.
      operationId: getPortCallsByVessel
      parameters:
        - name: imo_or_mmsi
          in: query
          required: true
          description: The IMO or MMSI number of the vessel you want to query.
          schema:
            type: string
          example: '9184419'
      responses:
        '200':
          description: Successful response with port calls
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortCallsByVesselResponse'
        '400':
          description: Bad request - Invalid IMO/MMSI format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PortCallsByVesselResponse:
      type: object
      properties:
        detail:
          type: object
          properties:
            name:
              type: string
            imo:
              type: string
            mmsi:
              type: string
            ports:
              type: array
              items:
                type: array
                items:
                  type: object
                  properties:
                    arrived:
                      type: string
                      description: Arrival date/time
                    departed:
                      type: string
                      description: Departure date/time
                    portName:
                      type: string
                      description: Port name and country
                    portSign:
                      type: string
                      description: UN/LOCODE
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error type
        message:
          type: string
          description: Error message
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your personal API key found in your profile dashboard at
        https://datadocked.com/dashboard/my_keys

````