Sea areas

Get a sea area

GET
/api/v1/sea-areas/{code}

Look up one sea area by its S-23 code, e.g. 4 for the North Sea.

Case matters: 28A is the Western Basin of the Mediterranean, 28a the Strait of Gibraltar. When no sea area has the code, the response is 204 No Content, with an empty body.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: a secret key (wk_sk_) from servers, or a publishable key (wk_pk_) from the origins listed on it. A workload can send its token in place of a secret key. See Authentication.

Path Parameters

code*string

The sea area's S-23 code, e.g. 4.

Length1 <= length

Response Body

The sea area.

application/json
  1. response

An S-23 sea area.

code*string

Its number in S-23. Case matters: 28A is the Western Basin of the Mediterranean, 28a the Strait of Gibraltar.

name*string

Its name, as S-23 gives it.

Example Request
curl -X GET 'https://waykite.com/api/v1/sea-areas/string'
Example Response
{
  "code": "4",
  "name": "North Sea"
}