Global Fishing Watch API
ExamplesInsights

Get insights for a vessel related to being listed in IUU list

Example Insights request returning IUU list indicators for one vessel over a date range.

Request body

FieldValueDescription
includes["VESSEL-IDENTITY-IUU-VESSEL-LIST"]Insight type to include: presence on an RFMO IUU vessel list
confidences[]Confidence levels to filter by
startDate2020-01-01Start of the period to analyze
endDate2024-04-10End of the period to analyze
vessels[0].datasetIdpublic-global-vessel-identity:latestVessel identity dataset
vessels[0].vesselId2d26aa452-2d4f-4cae-2ec4-377f85e88dcbVessel id to get insights for

Request

# Make sure to replace [TOKEN] with your API Access Token.
curl --location --request POST 'https://gateway.api.globalfishingwatch.org/v3/insights/vessels' \
--header 'Authorization: Bearer [TOKEN]' \
--header 'Content-Type: application/json' \
--data-raw '{
    "includes": [ "VESSEL-IDENTITY-IUU-VESSEL-LIST"],
    "confidences": [],
    "startDate": "2020-01-01",
    "endDate": "2024-04-10",
    "vessels": [
          {"datasetId":"public-global-vessel-identity:latest","vesselId":"2d26aa452-2d4f-4cae-2ec4-377f85e88dcb"}
    ]
}'

Response

{
  "period": {
    "startDate": "2020-01-01",
    "endDate": "2024-04-10"
  },
  "vesselIdentity": {
    "datasets": ["public-global-vessel-identity:v3.0"],
    "iuuVesselList": {
      "valuesInThePeriod": [
        {
          "from": "2020-01-01T00:00:00Z",
          "to": "2024-03-01T00:00:00Z"
        }
      ],
      "totalTimesListed": 1,
      "totalTimesListedInThePeriod": 1
    }
  }
}