Skip to main content
GET
Port Search
Search ports by UN/LOCODE or name to look up coordinates and the canonical port_call code used by other endpoints.
Credits: 1 credit per request, only charged when ports are found.

Usage

Matching is case-insensitive and uses a “contains” match against both the UN/LOCODE and the port name. The query must be at least 3 characters long.

Pagination

Results are paginated at 50 ports per page. The response includes total, page, and limit so you can walk through all matches.

Rate limit

50 requests per minute

Response Fields

  • total: Total ports matching the query across all pages
  • page: Current page number
  • limit: Maximum ports per page (50)
  • items[]:
    • port_call: UN/LOCODE identifier, or null for anchorages and terminals without a code
    • port_address: Port name with country
    • latitude: Latitude in decimal degrees
    • longitude: Longitude in decimal degrees
Use the returned port_call code with the Port Calls By Port endpoint to pull vessel traffic for that port.

Authorizations

x-api-key
string
header
required

Your personal API key found in your profile dashboard at https://datadocked.com/dashboard/my_keys

Query Parameters

query
string
required

Search term matched against port UN/LOCODE and name. Case-insensitive contains match. Minimum 3 characters.

Minimum string length: 3
page
integer
required

Page number for pagination. Starts at 1.

Required range: x >= 1

Response

Successful response with matching ports

total
integer

Total number of ports matching the query across all pages.

page
integer

Current page number.

limit
integer

Maximum ports per page (50).

items
object[]

List of matching ports.