---
title: "Ocean Metrics Locations"
method: GET
path: "/Ocean/locations"
tags: ["Ocean"]
---

# Ocean Metrics Locations

`GET /Ocean/locations`

This endpoint allows permissioned users to get all available ocean route locations that can be origins and/or destinations to request data on ocean lanes.

For more information about getting access to this endpoint or using this endpoint, please reach out to our Customer Success team (cs@gosonar.com).

Returns a collection of all supported ocean route origin/destination locations including specific ports, all ports in a given country or even all ports wordlwide.

Here are the output fields returned in a successful call:

*   code: a unique code to identify any ocean data location
*   port: a unique code to identify a specific port, when the location type is port, this will be the same as the code
*   port\_name: a human readable port name
*   country: the country for the location
*   type: the type of location, may be Port, Country or AllPorts

## Headers

- `x-api-version` string

## Response `200`

OK

- OceanBookingLocation[]
  - `code` string
  - `port` string
  - `port_name` string
  - `country` string
  - `type` string

---

[API](https://skmtc.net/freightwaves/apis/sonar-api.md) · [All operations](https://skmtc.net/freightwaves/apis/sonar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freightwaves/sonar-api/revisions/3a995f316cda/schema)
