Skip to main content

Endpoint Reference

Endpoints: Get Data · Get Metadata Records · Get Platforms · Get Vessels · Get Positions


All endpoints are available at the base URL:

https://covedigitalharbour.com/public-api/v1/

All requests require the following headers:

x-api-key: YOUR_API_KEY
Accept: application/vnd.api+json

Get Data​

Retrieve time-series environmental data from a platform or metadata record over a specified time range.

Use this endpoint when: you want to pull sensor or instrument readings (e.g. water temperature, salinity, wind speed) for analysis or integration into your own application.

GET /public-api/v1/getData

Query Parameters​

ParameterTypeRequiredDescriptionWhere to Get
metadata_record_idstringRequired if platform_id not providedID of the metadata recordGet Metadata Records response — use the id field
platform_idstringRequired if metadata_record_id not providedID of the platformGet Platforms response — use the id field
start_timestringRequiredStart of the time range (ISO 8601 format)Provide your own (e.g. 2024-11-01T00:00:00Z)
end_timestringRequiredEnd of the time range (ISO 8601 format)Provide your own (e.g. 2024-11-05T23:59:59Z)
variablestringOptionalStandard name of the variable to filter byGet Metadata Records response — see the variables listed per record
intervalintegerOptionalAggregation interval in minutesProvide your own (e.g. 60 for hourly)
next_tokenstringOptionalToken for retrieving the next page of resultsReturned in the previous getData response
note

Exactly one of metadata_record_id or platform_id must be provided.

Example Request​

curl -X GET 'https://covedigitalharbour.com/public-api/v1/getData?metadata_record_id=YOUR_METADATA_RECORD_ID&start_time=2024-11-01T00:00:00Z&end_time=2024-11-05T23:59:59Z' \
-H "Accept: application/vnd.api+json" \
-H "x-api-key: YOUR_API_KEY"

Example Response​

{
"data": [
{
"metadata_record_id": "a40cf6ae-e339-4410-9b30-a0f5072f6ee2",
"platform_id": "fb4ff605-fcd9-45e6-9b45-277eb1094101",
"altitude": -10,
"time": "2024-11-05T23:09:47",
"variables": [
{
"standard_name": "sea_water_temperature",
"value": 15.6,
"unit": "degree_Celsius"
},
{
"standard_name": "sea_water_salinity",
"value": 35.1,
"unit": "psu"
}
]
}
],
"next_token": "NEXT_TOKEN_IF_AVAILABLE"
}

Get Metadata Records​

Retrieve a list of metadata records accessible to your account. Metadata records describe the datasets available in Digital Harbour, including their source, location, and associated organizations.

Use this endpoint when: you want to discover what datasets are available to you before querying data, or to look up the metadata_record_id needed for the getData endpoint.

GET /public-api/v1/getMetadataRecords

Example Request​

curl -X GET 'https://covedigitalharbour.com/public-api/v1/getMetadataRecords' \
-H "Accept: application/vnd.api+json" \
-H "x-api-key: YOUR_API_KEY"

Example Response​

[
{
"id": "a40cf6ae-e339-4410-9b30-a0f5072f6ee2",
"language": "en",
"country": "US",
"creation": "2023-10-01T12:00:00Z",
"title": "Ocean Temperature Data",
"abstract": "Data collected from ocean temperature sensors.",
"organizations": [
{
"name": "Ocean Research Institute",
"email": "info@ori.org",
"type": "Research",
"link": "https://ori.org"
}
],
"contacts": [
{
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@ori.org",
"phone": "+1-555-1234"
}
]
}
]

Get Platforms​

Retrieve a list of platforms associated with your account. Platforms are the physical devices or stations (e.g. buoys, weather stations, vessels) that collect and contribute data to Digital Harbour.

Use this endpoint when: you want to list all platforms available to your account, or look up a platform_id to use with the getData endpoint.

GET /public-api/v1/getPlatforms

Example Request​

curl -X GET 'https://covedigitalharbour.com/public-api/v1/getPlatforms' \
-H "Accept: application/vnd.api+json" \
-H "x-api-key: YOUR_API_KEY"

Get Vessels​

Retrieve static information for all vessels stored in Digital Harbour. This includes vessel identity data sourced from AIS (Automatic Identification System) transmissions.

Use this endpoint when: you want a list of known vessels and their static details (name, type, flag, dimensions), or to look up a Maritime Mobile Service Identity (MMSI) number for use with the getPositions endpoint.

GET /public-api/v1/getVessels

Example Request​

curl -X GET 'https://covedigitalharbour.com/public-api/v1/getVessels' \
-H "Accept: application/vnd.api+json" \
-H "x-api-key: YOUR_API_KEY"

Get Positions​

Retrieve historical AIS positional and dynamic data for a specific vessel, identified by its MMSI (Maritime Mobile Service Identity).

Use this endpoint when: you want to track a vessel's movements over time, including its location, speed, heading, and navigational status.

GET /public-api/v1/getPositions

Query Parameters​

ParameterTypeRequiredDescription
mmsistringRequiredThe vessel's MMSI (Maritime Mobile Service Identity)
start_timestringOptionalStart of time range (ISO 8601). Must be used with end_time
end_timestringOptionalEnd of time range (ISO 8601). Must be used with start_time
laststringOptionalRelative time range (e.g. 30s, 5m, 2h, 7d). Cannot be used with start_time/end_time
next_tokenstringOptionalToken for retrieving the next page of results
note

start_time and end_time must be used together. They cannot be combined with last.

Example Request​

curl -X GET 'https://covedigitalharbour.com/public-api/v1/getPositions?mmsi=316001640&start_time=2024-11-20T00:00:00Z&end_time=2024-11-20T18:00:00Z' \
-H "Accept: application/vnd.api+json" \
-H "x-api-key: YOUR_API_KEY"

Example Response​

{
"mmsi": "316001640",
"positions": [
{
"time": "2024-11-22 05:07:26.000000000",
"eta": "10-01 09:00",
"draught": "5.8",
"heading": "27.0",
"rot": "0.0",
"latitude": "44.68134",
"cog": "197.7",
"sog": "0.0",
"longitude": "-63.61404",
"navstat": "moored",
"dest": "BIO"
}
],
"nextToken": "NEXT_TOKEN_IF_AVAILABLE"
}