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

# Vessel Weather Data

> Retrieve current weather conditions at the vessel's location including temperature, wind speed, and wave height. Costs 2 credits per request. Rate limit: 15 requests/min.

Retrieve current weather conditions at the vessel's location including temperature, wind speed, and wave height.

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

## Response Fields

* **Temperature**: Current air temperature at vessel location
* **Wind Speed**: Current wind speed in m/s
* **Waves**: Current wave height in meters

<Note>
  This endpoint requires an **IMO number** (not MMSI).
</Note>

<Tip>
  Combine with the vessel location endpoint to understand both the vessel's position and the weather conditions it's experiencing.
</Tip>


## OpenAPI

````yaml GET /get-vessel-weather
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-weather:
    get:
      tags:
        - Vessel Operations
      summary: Vessel Weather Data
      description: >-
        Retrieve current weather conditions at the vessel's location including
        temperature, wind speed, and wave height. Costs 2 credits per request.
        Rate limit: 15 requests/min.
      operationId: getVesselWeather
      parameters:
        - name: imo
          in: query
          required: true
          description: The IMO number of the vessel you want to query.
          schema:
            type: string
          example: '8909070'
      responses:
        '200':
          description: Successful response with weather data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VesselWeatherResponse'
        '400':
          description: Bad request - Invalid IMO 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:
    VesselWeatherResponse:
      type: object
      properties:
        status_code:
          type: integer
        detail:
          type: object
          properties:
            name:
              type: string
            MMSI:
              type: string
            IMO:
              type: string
            temperature:
              type: string
              description: Temperature at vessel location
            windSpeed:
              type: string
              description: Wind speed at vessel location
            waves:
              type: string
              description: Wave height at vessel location
    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

````