Global Fishing Watch API
Examples4Wings Reports

Generate report with total fishing hours per vessel using existing regions (MPA Dorsal de Nasca) in JSON format and buffer of 4 nautical miles

Example 4Wings report of total fishing hours per vessel in the Dorsal de Nasca MPA with a 4 nautical mile buffer, as JSON.

To get details of existing regions, check Regions in the Reference data section

GET

Query parameters

ParameterValueDescription
spatial-resolutionLOWLow spatial resolution
temporal-resolutionENTIREAggregate over the entire date range
spatial-aggregationtrueAggregate over the whole region (no lat/lon)
group-byVESSEL_IDGroup results by vessel
datasets[0]public-global-fishing-effort:latestAIS apparent fishing activity dataset
date-range2022-05-01,2022-12-01Filter to this time period
formatJSONResponse format
region-id555745302MPA Dorsal de Nasca region id
region-datasetpublic-mpa-allExisting region dataset
buffer-value4Buffer distance around the region
buffer-unitNAUTICALMILESUnit for the region buffer

Request

# Make sure to replace [TOKEN] with your API Access Token.
curl --location -g --request GET 'https://gateway.api.globalfishingwatch.org/v3/4wings/report?spatial-resolution=LOW&temporal-resolution=ENTIRE&spatial-aggregation=true&group-by=VESSEL_ID&datasets[0]=public-global-fishing-effort:latest&date-range=2022-05-01,2022-12-01&format=JSON&region-id=555745302&region-dataset=public-mpa-all&buffer-value=4&buffer-unit=NAUTICALMILES'\
--header 'Authorization: Bearer [TOKEN]' \
--header 'Content-Type: application/json' \
--output 'report-grouped.json'

POST

Query parameters

ParameterValueDescription
spatial-resolutionLOWLow spatial resolution
temporal-resolutionENTIREAggregate over the entire date range
spatial-aggregationtrueAggregate over the whole region (no lat/lon)
group-byVESSEL_IDGroup results by vessel
datasets[0]public-global-fishing-effort:latestAIS apparent fishing activity dataset
date-range2022-05-01,2022-12-01Filter to this time period
formatJSONResponse format

Request body

FieldValueDescription
region.datasetpublic-mpa-allExisting region dataset
region.id555745302MPA Dorsal de Nasca region id
region.bufferUnitNAUTICALMILESUnit for the region buffer
region.bufferValue4Buffer distance around the region

Request

# Make sure to replace [TOKEN] with your API Access Token.
curl --location -g --request POST 'https://gateway.api.globalfishingwatch.org/v3/4wings/report?spatial-resolution=LOW&temporal-resolution=ENTIRE&spatial-aggregation=true&group-by=VESSEL_ID&datasets[0]=public-global-fishing-effort:latest&date-range=2022-05-01,2022-12-01&format=JSON'\
--header 'Authorization: Bearer [TOKEN]' \
--header 'Content-Type: application/json' \
--output 'report-grouped.json' \
--data-raw '{
    "region": {
        "dataset": "public-mpa-all",
        "id": 555745302,
        "bufferUnit": "NAUTICALMILES",
        "bufferValue": 4
    }
}'

Response

Abridged to the first two vessels.

{
  "total": 1,
  "limit": null,
  "offset": null,
  "nextOffset": null,
  "metadata": {},
  "entries": [
    {
      "public-global-fishing-effort:v5.0": [
        {
          "callsign": "UBVW3",
          "dataset": "public-global-vessel-identity:v5.0",
          "date": "2022-05-01,2022-12-01",
          "entryTimestamp": "2022-09-29T06:00:00Z",
          "exitTimestamp": "2022-11-27T15:00:00Z",
          "firstTransmissionDate": "2021-12-27T14:28:49Z",
          "flag": "RUS",
          "geartype": "TRAWLERS",
          "hours": 78.81083333333335,
          "imo": "9139610",
          "lastTransmissionDate": "2026-11-01T23:27:42Z",
          "mmsi": "273299680",
          "shipName": "KOMANDOR",
          "vesselId": "add950d75-564c-5ba7-bb0c-50bff028cca6",
          "vesselType": "FISHING"
        },
        {
          "callsign": "UBAW",
          "dataset": "public-global-vessel-identity:v5.0",
          "date": "2022-05-01,2022-12-01",
          "entryTimestamp": "2022-08-16T18:00:00Z",
          "exitTimestamp": "2022-11-23T10:00:00Z",
          "firstTransmissionDate": "2012-01-13T17:28:36Z",
          "flag": "RUS",
          "geartype": "TRAWLERS",
          "hours": 79.80380833333332,
          "imo": "8607165",
          "lastTransmissionDate": "2026-11-01T23:59:45Z",
          "mmsi": "273524300",
          "shipName": "ADMIRAL SHABALIN",
          "vesselId": "1f8f0c096-63f0-cbdc-4d05-7643c9ffc330",
          "vesselType": "FISHING"
        }
      ]
    }
  ]
}

On this page