> ## 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 Details by Name

> Search for vessels by name and retrieve their IMO, MMSI, and basic specifications. Costs 1 credit per request. Rate limit: 50 requests/min.

Search for vessels by name and retrieve their IMO, MMSI, and basic specifications.

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

## Name Formatting

Spaces in vessel names must be URL encoded as underscores (`_`).

| Vessel Name | Query Parameter   |
| ----------- | ----------------- |
| DL ACACIA   | `name=DL_ACACIA`  |
| EVER GIVEN  | `name=EVER_GIVEN` |
| MSC OSCAR   | `name=MSC_OSCAR`  |

## Pagination

When multiple vessels share the same name, use the `page_number` parameter to paginate through results.


## OpenAPI

````yaml GET /vessels-by-vessel-name
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:
  /vessels-by-vessel-name:
    get:
      tags:
        - Vessel Operations
      summary: Vessel Details by Name
      description: >-
        Search for vessels by name and retrieve their IMO, MMSI, and basic
        specifications. Costs 1 credit per request. Rate limit: 50 requests/min.
      operationId: getVesselsByName
      parameters:
        - name: name
          in: query
          required: true
          description: >-
            The name of the vessel you want to query. Spaces in vessel names
            must be URL encoded as _ (e.g., "DL ACACIA" becomes "DL_ACACIA").
          schema:
            type: string
          example: DL_ACACIA
        - name: page_number
          in: query
          required: false
          description: >-
            Page number for pagination when multiple vessels share the same
            name. Defaults to 1.
          schema:
            type: integer
            default: 1
      responses:
        '200':
          description: Successful response with matching vessels
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VesselsByNameResponse'
        '400':
          description: Bad request - Invalid name 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:
    VesselsByNameResponse:
      type: object
      properties:
        total:
          type: integer
          description: Total matching vessels
        items:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              mmsi:
                type: string
              imo:
                type: string
              country:
                type: string
              type:
                type: string
              callsign:
                type: string
              typespecific:
                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

````