Port State Control inspections and detentions
Changed onReturns PSC inspection records: authority, port, type, detention flag, deficiency count, and full deficiency descriptions.
Credit cost: 1 per record returned. Requires an Add-Ons plan tier.
For a bulk export, POST to /api/v0/report with report_type: inspections. Bulk reports cost 2,000 credits each.
Request
- Base URLhttps://api.datalastic.com
- Auth
- API key in header x-api-key
- or API key in query parameter api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
IMO vessel number.
Vessel name.
Start of inspection date range (yyyy-mm-dd).
End of inspection date range (yyyy-mm-dd).
Response
Matching inspection records.
Example response
{
"data": [
{
"id": 10,
"imo": "9362126",
"vessel_name": "ESVAGT CASSIOPEIA",
"vessel_type_code": "Stan",
"flag_code": "DEN",
"inspection_date": "2023-09-05",
"inspection_authority": "Norway",
"inspection_port": "Tananger",
"inspection_type": "Detailed",
"detention": "FALSE",
"ship_deficiencies": "4",
"deficiency_description": "Structural Conditions; 02109 - Permanent means of access; Not properly maintained",
"technical_ism_manager": "Esvagt A/S",
"country_code": "DEN",
"company_imo": "0792139",
"modified_at": "2023-09-05T00:00:00Z"
}
],
"meta": {
"duration": 0.012,
"endpoint": "/api/v0/vessel",
"success": true,
"next": "00e32b7a-4067-d6b2-8d73-2bdda4fe72bb"
}
}Changes
- warning
deleted the
queryrequest parameterapi-key - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status
- warning