SuperYacht Times API

Endpoints

All endpoints are GET, need an access token and return JSON. Paths are relative to https://api.superyachttimes.com.

Endpoint Returns
/partner/api/v1/id/list The ids of every yacht you can read
/partner/api/v1/imo/list IMO number to yacht id, for those yachts
/partner/api/v1/mmsi/list MMSI to yacht id, for those yachts
/partner/api/v1/yachts/find/imo/{imo} The id of the yacht with this IMO number
/partner/api/v1/yachts/find/mmsi/{mmsi} The id of the yacht with this MMSI
/partner/api/v1/yachts/{id} One yacht's record, in your product's layout

Yacht ids

Every yacht has a SuperYacht Times id, a string such as Y02800001. The lists and the find endpoints return these ids, and /yachts/{id} takes them.

Lists

Every list contains only the yachts your product lets you read.

GET /partner/api/v1/id/list

A JSON array of yacht ids:

["Y02800001", "Y02800050"]

Not available with the Standard product: a Standard key gets 404 with {}. Use the IMO or MMSI list instead.

GET /partner/api/v1/imo/list and GET /partner/api/v1/mmsi/list

A JSON object from IMO number (or MMSI) to yacht id. The keys are strings of digits.

{ "11111": "Y02800001", "55555": "Y02800050" }

Yachts without an IMO number (or MMSI) are left out. Where two yachts share one, the object holds only one of them.

Find a yacht

GET /partner/api/v1/yachts/find/imo/{imo} and GET /partner/api/v1/yachts/find/mmsi/{mmsi}

The id of the matching yacht, as a one-element array:

["Y02800001"]

404 with {} when no yacht you can read has that number, or when the value is not made of digits.

Read a yacht

GET /partner/api/v1/yachts/{id}

The yacht's record. Its layout depends on your product and is the same for every yacht you read; the payload has no field that names the layout. See the product pages under Products, and the API reference.

404 with {"message":"Yacht not found"} when the yacht does not exist or is not in your product.

The response carries an ETag; see Caching and compression.

A typical sync

  1. Get a token.
  2. Learn which yachts you can read: pull /id/list, or with Standard, which has no /id/list, pull /imo/list and /mmsi/list and take the yacht ids from both. Sync on the yacht id: it never changes, while a yacht can gain, lose or change its IMO number or MMSI. With Standard, a yacht that has neither an IMO number nor an MMSI is in neither list, so you cannot find it.
  3. Fetch each yacht with /yachts/{id}. Store the record and its ETag.
  4. On the next run, build the set of ids the same way. Fetch new ids. For an id you hold that is no longer in the set, fetch its record: a 404 means it has left your product or is no longer published, so remove it. With Standard a yacht can also drop out of both lists because it lost its IMO number and MMSI while you can still read it, which is why you check the record rather than delete on absence.
  5. Re-fetch the yachts you already hold with If-None-Match: <stored ETag>. A 304 means the record is unchanged.

Changes reach the API within about ten minutes. Polling more often than every ten minutes gains nothing.

Use the find endpoints when you start from an IMO number or MMSI and need one yacht, rather than for a full sync.