> ## 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.

# Get Vessel Location

> Retrieve real-time vessel position including coordinates, speed, course, destination, and navigational status. Costs 1 credit per request. Rate limit: 100 requests/min.

Retrieve real-time vessel position including coordinates, speed, course, destination, and navigational status.

<Info>
  **Credits:** 1 credit per request
</Info>

## Response Fields

* **Position**: Latitude, longitude, course, heading, speed
* **Navigation**: Navigational status, draught, destination
* **Timing**: ETA, ATD, position received timestamp
* **Port Info**: Last port, destination UN/LOCODE
* **Source**: Data source (Terrestrial or Satellite)

<Note>
  Position data is updated in real-time from AIS signals. The `dataSource` field indicates whether the position was received via terrestrial or satellite AIS.
</Note>


## OpenAPI

````yaml GET /get-vessel-location
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:
  /get-vessel-location:
    get:
      tags:
        - Vessel Operations
      summary: Get Vessel Location
      description: >-
        Retrieve real-time vessel position including coordinates, speed, course,
        destination, and navigational status. Costs 1 credit per request. Rate
        limit: 100 requests/min.
      operationId: getVesselLocation
      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: '9247431'
      responses:
        '200':
          description: Successful response with vessel location
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VesselLocationResponse'
        '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:
    VesselLocationResponse:
      type: object
      properties:
        detail:
          type: object
          properties:
            name:
              type: string
            imo:
              type: string
            mmsi:
              type: string
            latitude:
              type: string
            longitude:
              type: string
            etaUtc:
              type: string
            atdUtc:
              type: string
            course:
              type: string
            heading:
              type: string
            speed:
              type: string
            draught:
              type: string
            navigationalStatus:
              type: string
            destination:
              type: string
            lastPort:
              type: string
            callsign:
              type: string
            positionReceived:
              type: string
            updateTime:
              type: string
            unlocodeDestination:
              type: string
            unlocodeLastport:
              type: string
            typeSpecific:
              type: string
            dataSource:
              type: string
    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

````